From 5708347c6265bad4e7f4015288b2da49b498ad91 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Fri, 3 Apr 2026 13:58:28 -0400 Subject: [PATCH] Add PO pagination and load all POs from backend Purchase orders page now shows 20 items per page with page navigation controls. loadPOs() fetches all pages via cursor pagination instead of capping at 200. Search filters the full dataset and resets to page 1. Co-Authored-By: Claude Opus 4.6 --- .gitignore | 1 + accounting-app.html | 278 ++++++++++++-------------------------------- login.html | 2 - serve.js | 12 +- 4 files changed, 85 insertions(+), 208 deletions(-) diff --git a/.gitignore b/.gitignore index 2752eb9..c6fef02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ .DS_Store +config.local.js diff --git a/accounting-app.html b/accounting-app.html index 5e92bdc..6462106 100644 --- a/accounting-app.html +++ b/accounting-app.html @@ -256,6 +256,12 @@ /* TABLE */ .table-wrap { overflow-x: auto; } + .pagination { display:flex;align-items:center;justify-content:center;gap:4px;padding:12px 16px;border-top:1px solid var(--border); } + .pagination button { background:var(--surface2);border:1px solid var(--border);color:var(--text2);border-radius:6px;padding:4px 10px;font-size:12px;cursor:pointer;font-family:var(--mono);transition:all .15s; } + .pagination button:hover { border-color:var(--accent);color:var(--accent); } + .pagination button.active { background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:500; } + .pagination button:disabled { opacity:.35;cursor:default; } + .pagination .page-info { font-size:11px;color:var(--text3);margin:0 8px; } table { width: 100%; border-collapse: collapse; } thead th { font-size: 10px; @@ -579,7 +585,6 @@
Dashboard
-
@@ -624,7 +629,7 @@
- +
PO NumberVendorAmountStatus
๐Ÿ“ฆ

No POs imported yet

๐Ÿ“ฆ

No POs synced yet

@@ -660,26 +665,26 @@

Purchase Orders

-

Imported from DynamoDB ยท 0 records

+

Auto-synced from DynamoDB ยท 0 records

-
All Purchase Orders - +
- +
PO NumberVendorIssue DateDue DateAmountBilledRemainingStatusAction
๐Ÿ“ฆ

No purchase orders yet. Import from DynamoDB or add manually.

๐Ÿ“ฆ

No purchase orders yet. POs sync automatically from DynamoDB.

+
@@ -983,55 +988,6 @@ - - -