From b8bc85856b122e63c03c4c0e3a4fa1460c129ffb Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sun, 15 Feb 2026 21:12:42 +0200 Subject: [PATCH 01/21] ui/pager: add prev/next page navigation buttons --- apps/client/src/translations/en/translation.json | 4 +++- .../client/src/widgets/collections/Pagination.tsx | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index e2f00acec5..e97aba782b 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -2191,7 +2191,9 @@ }, "pagination": { "page_title": "Page of {{startIndex}} - {{endIndex}}", - "total_notes": "{{count}} notes" + "total_notes": "{{count}} notes", + "prev_page": "Previous page", + "next_page": "Next page" }, "collections": { "rendering_error": "Unable to show content due to an error." diff --git a/apps/client/src/widgets/collections/Pagination.tsx b/apps/client/src/widgets/collections/Pagination.tsx index 6b74964a64..f85a188a6f 100644 --- a/apps/client/src/widgets/collections/Pagination.tsx +++ b/apps/client/src/widgets/collections/Pagination.tsx @@ -4,6 +4,7 @@ import FNote from "../../entities/fnote"; import froca from "../../services/froca"; import { useNoteLabelInt } from "../react/hooks"; import { t } from "../../services/i18n"; +import ActionButton from "../react/ActionButton"; interface PaginationContext { page: number; @@ -50,7 +51,21 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit

+ {setPage(--page)}} + /> + {children} + + {setPage(++page)}} + /> ({t("pagination.total_notes", { count: totalNotes })}) From d8806eaa042216fdf456ff0bbf99548241078c5b Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sun, 15 Feb 2026 21:31:58 +0200 Subject: [PATCH 02/21] ui/pager: replace the page number links with buttons --- .../src/widgets/collections/Pagination.tsx | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/apps/client/src/widgets/collections/Pagination.tsx b/apps/client/src/widgets/collections/Pagination.tsx index f85a188a6f..282a6b36a5 100644 --- a/apps/client/src/widgets/collections/Pagination.tsx +++ b/apps/client/src/widgets/collections/Pagination.tsx @@ -5,6 +5,7 @@ import froca from "../../services/froca"; import { useNoteLabelInt } from "../react/hooks"; import { t } from "../../services/i18n"; import ActionButton from "../react/ActionButton"; +import Button from "../react/Button"; interface PaginationContext { page: number; @@ -27,22 +28,14 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit

setPage(i)} - > - {i} - - )) - } else { - // Current page - children.push({i}) - } - - children.push(<>{" "} {" "}); + children.push(( +