Warn editors before their session expires

Angular · Angular · beginner · modification

Adds a session-expiry banner to the editor page. `SessionBannerComponent` keeps the current time in a signal that an RxJS `interval` updates once a second, derives the time left from `SessionService.expiresAt()`, and shows a countdown in the last five minutes, then an expired message. Screen readers get one announcement per state change through a status region instead of the ticking countdown. `EditorPageComponent` renders the banner above the editor.

Angular 21 app: standalone components, signals, zoneless change detection (`provideZonelessChangeDetection()` in `app.config.ts`, unchanged). `SessionService` (`src/app/core/session.service.ts`, `providedIn: 'root'`, unchanged) exposes `expiresAt: Signal<number>`, the session's expiry time in epoch milliseconds, already on the device clock; it moves later when the session is extended. `EditorPageComponent` is the routed component for `/docs/:id/edit`; the router creates it on every visit and destroys it (and the banner inside it) when the user navigates away, since the app has no route reuse strategy. `DocumentEditorComponent` is unchanged. Colours are the theme tokens from `styles.scss`; the app has no global visually-hidden class, so the component defines its own.

Requirements

Files touched

Review this PR

Angular practice