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
amoussa1229 commented 2026-04-03 18:30:10 +00:00 (Migrated from github.com)

Summary

  • PO pagination: Purchase orders table now shows 20 items per page with page navigation (1, 2, 3...) and range indicator (1–20 of 150)
  • Full data loading: loadPOs() fetches all pages via cursor pagination instead of capping at 200
  • Search integration: PO search filters the full dataset and resets to page 1
  • GSI client_id fix: Load Google Identity Services script dynamically after config.js sets GOOGLE_CLIENT_ID, and fall back to config.js value when /auth/config returns empty
  • Null reference fix: Guard against missing fallback-btn element

Test plan

  • Verify PO table paginates correctly with page buttons
  • Verify search filters across all POs and resets pagination
  • Verify no Missing required parameter: client_id console errors on login page
  • Verify Google Sign-In button renders and login works

🤖 Generated with Claude Code

## Summary - **PO pagination**: Purchase orders table now shows 20 items per page with page navigation (1, 2, 3...) and range indicator (1–20 of 150) - **Full data loading**: `loadPOs()` fetches all pages via cursor pagination instead of capping at 200 - **Search integration**: PO search filters the full dataset and resets to page 1 - **GSI client_id fix**: Load Google Identity Services script dynamically after `config.js` sets `GOOGLE_CLIENT_ID`, and fall back to `config.js` value when `/auth/config` returns empty - **Null reference fix**: Guard against missing `fallback-btn` element ## Test plan - [ ] Verify PO table paginates correctly with page buttons - [ ] Verify search filters across all POs and resets pagination - [ ] Verify no `Missing required parameter: client_id` console errors on login page - [ ] Verify Google Sign-In button renders and login works 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.