Commit Graph

24 Commits

Author SHA1 Message Date
aewing 6619269840 fixed login loop 2026-01-10 19:23:47 +00:00
aewing bef80c5bab feat: implement robust TokenManager for field app resilience
PRODUCTION CRITICAL: Enhanced token lifecycle management

Features:
- 3-tier storage (PB authStore → IndexedDB → localStorage)
- Continuous background token refresh (every 20 min)
- Exponential backoff retry queue for network failures
- Stale token fallback for offline operation
- Cross-tab sync via IndexedDB
- Never forces logout on token expiry
- Network recovery detection and auto-refresh

Changes:
- Created token-manager.js with TokenManager class
- Updated signin.html to initialize TokenManager on login
- Updated index.html to use TokenManager for all API calls
- Simplified token extraction logic (centralized in TokenManager)
- Removed manual localStorage token management
- Added proper cleanup on signout

Benefits:
- Users stay authenticated during network interruptions
- Tokens always warm (proactive refresh)
- Field app resilient to poor connectivity
- No unnecessary re-authentication prompts
- Works offline with cached tokens
2026-01-08 17:33:07 +00:00
aewing e7baa94322 refactor: remove progress bar from job loading UI
- Removed progress bar HTML element and CSS
- Removed startProgress() and finishProgress() functions
- Simplified job loading flow (jobs now display instantly)
- Progress tracking removed; jobs render as they load
2026-01-08 17:29:54 +00:00
aewing d7228626fb Remove Job-List.code-workspace file 2025-12-31 03:48:55 +00:00
aewing 94e5079a60 many edits 2025-12-19 22:55:48 +00:00
aewing 56e1131622 added restart always to service 2025-12-19 21:51:46 +00:00
aewing cf57336c97 taskbar updates links to islannd in excel and links to gm dash board added and working. need to be updated to production soon 2025-12-18 19:11:02 +00:00
aewing 1565496407 added taskbar. needs work 2025-12-17 23:19:53 +00:00
aewing 560e30d93c added preferences to pull from user_preferences collection. seems to be working. 2025-12-17 19:58:39 +00:00
aewing 1d692ddb87 updated info modal: bold headings, added Job_Type and Job_Division 2025-12-17 19:14:29 +00:00
aewing 9b2c1d2b20 fixed active status issues bug 2025-12-17 19:07:51 +00:00
aewing 98ca33cd94 pb collection updates success notes added fallback to capture job number and id. id capture for the Job_Number_Id still not working. 2025-12-16 17:02:39 +00:00
aewing a0c62af25c added clear cache for testing 2025-12-16 09:34:29 -06:00
aewing c785bf2dc5 changed back worked in test 2025-12-16 09:23:38 -06:00
aewing 3618072ce8 needed to switch pb collect due to errors for testing. 2025-12-16 09:18:31 -06:00
aewing ef613c238a update pb collection and versioning setting is now in don in package.json 2025-12-16 14:40:51 +00:00
eewing 575c6e3311 tailwind 2025-12-12 15:30:47 -06:00
eewing 835e29311b Tailwind Upgrade 2025-12-12 15:27:18 -06:00
eewing e1695380fc Merge branch 'main' of https://gitea.ccllc.pro/aewing/Job-Info 2025-12-12 12:44:32 -06:00
eewing 1f704d78fc updated ui for index.html 2025-12-12 12:42:17 -06:00
aewing 0a834417a9 UI Improvements buttons, viewable area, exchanged folder link heading and url text and replaced with a button - states for if a folder exists and if one doesn't 2025-12-12 18:20:58 +00:00
aewing ae884e6519 sh files for eewing 2025-12-12 17:36:07 +00:00
aewing af7e675b48 INIT 2025-12-12 10:52:35 -06:00
aewing cea0577eb0 Initial commit 2025-12-12 10:46:19 -06:00