1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00

Implement basic transaction pagination (#531)

* install pagy

* add pagy to controller, display default pagy UI

* display hardcoded custom UI to confirm styling

* implement custom UI with pagy methods

* move pagination into partial

* use lucide icons

* only display pagination if 2 or more pages are available

* add mobile pagination placeholder

* use link_to and display greyed out buttons when no prev or next needed

* sort transactions by date so grouping works appropriately with pagination

* add space between mobile view buttons

* remove debugging
This commit is contained in:
Jean Moreau 2024-03-08 15:11:58 -05:00 committed by GitHub
parent ed89ad522d
commit 9c9459211f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 69 additions and 1 deletions

View file

@ -31,6 +31,7 @@ gem "bcrypt", "~> 3.1.7"
gem "inline_svg"
gem "tzinfo-data", platforms: %i[ windows jruby ]
gem "faraday"
gem "pagy"
group :development, :test do
gem "debug", platforms: %i[ mri windows ]