maintenance/frontend/src
jtricerolph 3740727950 Fix session-expiry redirect breaking standalone PWA out of its shell
Two compounding issues were kicking installed/standalone maintenance
PWA sessions out into the portal's framed browser view on re-login:

- manifest scope was the app's own base path instead of "/", so any
  same-origin navigation outside it (like the old redirect to
  /login) dropped the standalone window into a regular browser tab
- AuthGate unconditionally hard-navigated window.top to the central
  /login on session expiry, even when not embedded in the portal
  iframe, which is exactly the navigation the doc warns against

AuthGate now only bounces to central login when actually embedded
(and passes ?from= so it returns to this app afterwards); standalone
or directly-opened tabs get an in-app login form and never navigate
away. Also wired up the previously-dead inactivity auto-logout timer
(disabled for installed PWAs, configurable per device otherwise).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-24 17:06:55 +00:00
..
components Fix session-expiry redirect breaking standalone PWA out of its shell 2026-07-24 17:06:55 +00:00
hooks Add Web Push notifications for task assignment 2026-07-20 22:59:16 +00:00
pages Restore collapsible filter accordions alongside new sort chip 2026-07-22 09:53:17 +00:00
api.ts Add edit and delete to task modal 2026-07-22 10:17:57 +00:00
App.tsx Add PWA manifest + update banner to maintenance app 2026-07-20 22:28:08 +00:00
index.css Show upload progress — spinner placeholder in photo grid, status text on submit 2026-07-22 11:12:00 +00:00
main.tsx Make maintenance installable as a PWA 2026-07-11 11:27:00 +00:00
sw.js Add Web Push notifications for task assignment 2026-07-20 22:59:16 +00:00
types.ts Photo lightbox, timeline photo previews, subtle edit/delete footer 2026-07-22 10:59:51 +00:00
vite-env.d.ts Maintenance log book app — initial scaffold 2026-07-03 21:28:57 +00:00