Skip to content

enh(pagination): add loading guard, total count, jump to page#4481

Open
benjaminfrueh wants to merge 1 commit intomasterfrom
enh/pagination-improvements
Open

enh(pagination): add loading guard, total count, jump to page#4481
benjaminfrueh wants to merge 1 commit intomasterfrom
enh/pagination-improvements

Conversation

@benjaminfrueh
Copy link
Copy Markdown
Contributor

@benjaminfrueh benjaminfrueh commented Mar 4, 2026

Summary

Improves the pagination in the admin settings UI, making it usable for instances with a large number of team folders.

Changes

Backend

  • Add countAllFolders() to FolderManager to get the total folder count
  • Add GET /folders/count endpoint in FolderController
  • Add \d+ requirement to GET /folders/{id} to prevent route conflict with /folders/count

Frontend

  • Add loading guard to goToPage to prevent duplicate entries on clicks before loading finishes
  • Fetch total folder count to enable proper last-page calculation
  • Fix pagination buttons to use total count instead of loaded folders length
  • Add input to switch to a page (shown only when there are more than 5 pages)
Screenshot Screenshot from 2026-03-04 20-00-11

@benjaminfrueh benjaminfrueh added enhancement 3. to review Items that need to be reviewed labels Mar 4, 2026
@benjaminfrueh benjaminfrueh force-pushed the enh/pagination-improvements branch from 383a9c8 to e17f288 Compare March 4, 2026 19:25
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
@benjaminfrueh benjaminfrueh force-pushed the enh/pagination-improvements branch from e17f288 to 74a22f9 Compare March 4, 2026 19:28
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in πŸ“ Productivity team Mar 5, 2026
@benjaminfrueh benjaminfrueh moved this from 🧭 Planning evaluation (don't pick) to πŸ‘€ In review in πŸ“ Productivity team Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed enhancement

Projects

Status: πŸ‘€ In review

Development

Successfully merging this pull request may close these issues.

2 participants