From 0d144bc050dd7f320768c6c92a1cf7ad20b0860d Mon Sep 17 00:00:00 2001
From: Nicolas Villanueva <1890113+MexicanAce@users.noreply.github.com>
Date: Thu, 28 Nov 2024 07:14:39 -0800
Subject: [PATCH 1/7] feat: add page size support for pagination (#336)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# What ❔
Add page size dropdown to show `10`, `20`, `50`, or `100` records in
paginated tables
## Why ❔
Allows users to see more data on a single page.
Closes #215
## Checklist
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
## Evidence
https://github.com/user-attachments/assets/77d0aefe-f4ba-4f22-b765-5b3e8872e1a7
---
.../app/src/components/common/Dropdown.vue | 8 +-
.../app/src/components/common/Pagination.vue | 186 ++++++++++++------
.../app/src/components/transactions/Table.vue | 27 ++-
.../composables/common/useFetchCollection.ts | 9 +-
packages/app/src/locales/en.json | 3 +
packages/app/src/locales/uk.json | 3 +
packages/app/src/views/BatchesView.vue | 14 +-
packages/app/tests/components/Account.spec.ts | 5 +-
.../components/common/Pagination.spec.ts | 30 ++-
.../components/transactions/Table.spec.ts | 14 +-
.../tests/components/transfers/Table.spec.ts | 5 +
.../common/useFetchCollection.spec.ts | 2 +-
.../tests/composables/useTransactions.spec.ts | 2 +-
packages/app/tests/e2e/src/pages/base.page.ts | 4 +
.../e2e/src/steps/blockexplorer.steps.ts | 5 +
packages/app/tests/views/BatchView.spec.ts | 5 +-
packages/app/tests/views/BlockView.spec.ts | 5 +-
packages/app/tests/views/HomeView.spec.ts | 5 +-
18 files changed, 229 insertions(+), 103 deletions(-)
diff --git a/packages/app/src/components/common/Dropdown.vue b/packages/app/src/components/common/Dropdown.vue
index 87b5d6a6f8..9093bb24da 100644
--- a/packages/app/src/components/common/Dropdown.vue
+++ b/packages/app/src/components/common/Dropdown.vue
@@ -17,7 +17,7 @@
-
+
-