feat(fe): Session timeout re-authentication dialog#3723
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a front-end “session timeout” re-authentication UX on the authenticated Manage/Dashboard area so users can recover when their delegation expires (instead of dashboard requests failing indefinitely).
Changes:
- Adds a delegation-expiry timer in the authenticated manage layout to show a re-auth prompt ~5 minutes before expiration (with deferral while other dialogs are open).
- Introduces a new
ReauthPromptdialog component with “Sign in” and “Cancel” (sign out) actions. - Adds Playwright e2e coverage for the re-authenticate and cancel/sign-out flows using
page.clock.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/frontend/tests/e2e-playwright/routes/manage/index.spec.ts | Adds e2e tests covering re-auth prompt behavior and outcomes. |
| src/frontend/src/routes/(new-styling)/manage/(authenticated)/+layout.svelte | Implements expiry detection + deferred dialog presentation + re-auth action wiring. |
| src/frontend/src/lib/components/ui/ReauthPrompt.svelte | New UI component for the session timeout re-auth prompt. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aterga
approved these changes
Apr 1, 2026
Collaborator
aterga
left a comment
There was a problem hiding this comment.
Testing that this works as expected on Staging B.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After the 30-minute delegation expires, all dashboard requests used to fail with no way to recover.
Changes
AuthLastUsedFlowwith the current auth method, keeping the user on the same page.ReauthPromptcomponent.Tests
page.clockto fast-forward: re-auth sign-in and cancel/sign-out flows.