From 0e65eac206794b4b7d72ce105320691184e9f544 Mon Sep 17 00:00:00 2001 From: tanyar09 Date: Fri, 5 Dec 2025 12:48:39 -0500 Subject: [PATCH] feat: Add pagination controls to Search component for improved navigation This commit introduces pagination functionality in the Search component, allowing users to navigate through search results more efficiently. The UI now includes "Previous" and "Next" buttons, enhancing the overall user experience. Documentation has been updated to reflect these changes. --- frontend/src/pages/Search.tsx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/frontend/src/pages/Search.tsx b/frontend/src/pages/Search.tsx index 3fb706a..3c1d80e 100644 --- a/frontend/src/pages/Search.tsx +++ b/frontend/src/pages/Search.tsx @@ -1240,6 +1240,39 @@ export default function Search() { + {/* Pagination - Top */} + {total > pageSize && ( +
+
+ Page {page} of {Math.ceil(total / pageSize)} +
+
+ + +
+
+ )} + {/* Results Table */}