Commit graph

5 commits

Author SHA1 Message Date
Adam Moussa
0167a1aa75 Add vendor pages and dispatch UI
- Vendor CRUD: list page with search, create/edit form with trade specialty chips
- Vendor routes, sidebar nav item with truck icon
- vendorApi in services/api.js
- Dispatch button on WO view page opens DispatchModal
- DispatchModal: vendor multi-select filtered by trade, NTE field, description
- Dispatches CollapsibleSection with PO table on WO view page
- fetchVendorsDropdown and dispatchToVendor API functions
- dispatches included in getWorkOrderById response mapping
2026-04-17 11:37:49 -04:00
Adam Moussa
9ae7c9b262 Add auth token to ApiService requests
- services/api.js was not sending Authorization header on any request
- Import getAccessToken and include it in all ApiService.request() calls
2026-04-16 17:12:38 -04:00
Adam Moussa
e7fb682f71 Consolidate auth/token management into tokenUtility
- Make tokenUtility.js the single source of truth for localStorage
- Add getRawToken() and isAuthenticated() to tokenUtility
- Rewrite authService.js to delegate storage to tokenUtility
- Fix calendar api.js direct localStorage access
- Remove unused setToken import from apiUtil.js
2026-04-16 16:25:26 -04:00
Adam Moussa
ec8cca86d1 Configure frontend for local development
- Use relative API URLs instead of hardcoded production/localhost URLs
- Fix setupProxy.js for http-proxy-middleware v3 syntax
- Point proxy to backend HTTP port for dev compatibility
2026-04-16 16:25:19 -04:00
npalOmega
65ec768e13 UI changes checking in 2026-03-30 07:53:42 -05:00