From 0833cf616775e98517e4a11f81f06aee1da92491 Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 23 Mar 2026 11:35:42 -0400 Subject: [PATCH] feat: add Prev/Next pagination bar to session history Made-with: Cursor --- frontend/src/pages/History.jsx | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/frontend/src/pages/History.jsx b/frontend/src/pages/History.jsx index 5db64bf..8ff8b1c 100644 --- a/frontend/src/pages/History.jsx +++ b/frontend/src/pages/History.jsx @@ -371,6 +371,42 @@ function History() { )} + {/* Pagination bar */} + {limit !== 'all' && (() => { + const limitNum = parseInt(limit, 10); + const totalPages = Math.ceil(totalCount / limitNum); + if (totalPages <= 1) return null; + return ( +
+ + + Page {page} of {totalPages} + + +
+ ); + })()} + {/* Multi-select Action Bar */} {selectMode && selectedIds.size > 0 && (