From cfa396dfc4059d6a80c2937162131806070d9882 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Wed, 3 Dec 2025 21:37:31 +0100 Subject: [PATCH] feat(admin): add server-side pagination and search to list pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Companies and Vendors pages now use server-side pagination: - Moved from client-side to server-side pagination - Added search with debounced input - Added status and verification filters - Added pagination state object (page, per_page, total, pages) - Added pageNumbers computed with ellipsis support - Updated templates with search bar and filter dropdowns Benefits: - Better performance with large datasets - Consistent UX across all admin list pages - Reduced initial page load time 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/templates/admin/companies.html | 80 +++++++++++++++++--- app/templates/admin/vendors.html | 80 +++++++++++++++++--- static/admin/js/companies.js | 117 +++++++++++++++++++---------- static/admin/js/vendors.js | 105 +++++++++++++++++++------- 4 files changed, 288 insertions(+), 94 deletions(-) diff --git a/app/templates/admin/companies.html b/app/templates/admin/companies.html index 8b441213..c35eda5d 100644 --- a/app/templates/admin/companies.html +++ b/app/templates/admin/companies.html @@ -98,6 +98,62 @@ + +
+
+ +
+
+ + + + +
+
+ + +
+ + + + + + + + +
+
+
+
@@ -120,7 +176,7 @@

No companies found

-

Create your first company to get started

+

@@ -218,7 +274,7 @@
- Showing - of + Showing - of @@ -230,9 +286,9 @@
  • -