PO pagination + fix Google Sign-In client_id error #2

Merged
amoussa1229 merged 2 commits from feature/auto-sync-pos into main 2026-04-03 18:31:21 +00:00

2 commits

Author SHA1 Message Date
Adam Moussa
37f204c18c Fix Google Sign-In client_id error and null reference on login
- Load GSI script dynamically after config.js sets GOOGLE_CLIENT_ID
  so data-client_id is populated before the library auto-initializes
- Fall back to config.js client ID when /auth/config returns empty
- Guard against null fallback-btn element in initGoogleSignIn

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 14:29:36 -04:00
Adam Moussa
5708347c62 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 <noreply@anthropic.com>
2026-04-03 13:58:28 -04:00