Repository navigation
fix(platform): say a lapsed session in words on every surface - #3685
Merged
Merged
Conversation
An `AppError`'s `message` serializes its whole payload for logs, so the
surfaces that showed `err.message` put `{"code":"UNAUTHORIZED",...}` under
their localized title once a session had ended: sandbox stop, pin and
destroy, device removal, the document comparison (toast and inline), the
Google Drive and Microsoft 365 disconnects and imports, the moderation
test, the team dialogs and the chat-health page.
`failureDetail` (next to `backendRefusalDetail`) is what a surface shows
for whatever a call threw: a refusal's own words, which for a lapsed
session is the localized "Your session has ended. Sign in again.", else a
plain error's message (the auth client's, a lost connection's), never a
structured error's `message`. Every one of those surfaces reads it now.
A document upload refused because the session ended said "Upload failed.
Check your connection and try again." with no Retry; its row now says the
session ended.
AUTH-B13's automation row names the new tests.
After Stay here, the notice that keeps Sign in within reach sat at `z-40`, under every dashboard page's sticky header (`z-50`): its title and sentence were hidden and only the Sign in button showed below the header's edge. It now sits on the headers' own layer. Rendered after the page, it paints over them, and every dialog and sheet, portaled to `<body>` after the app root, still paints over it, so an open dialog's backdrop keeps taking the press as before. A real-Chromium test holds both orders, and fails on the old class. AUTH-B14 now asks for the notice to read in full over the header.
The member page said every refused request shows "Your session has ended. Sign in again." and that Tale asks before opening sign-in. It now says what actually happens: a document upload fails with that sentence and no retry; a project's Environment tab and Settings > Data residency word it as their access notices; and only the organization's pages (under `/dashboard`) ask, while elsewhere a reload leads to sign-in. EN, DE and FR.
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.
Session refusals now show the localized recovery sentence across sandbox actions, device removal, cloud imports/disconnects, document comparison/history, moderation, teams, and Chat health/Feedback analytics. The shared
failureDetailhelper avoids serialized structured errors and unexpected backend payloads while preserving ordinary error messages. A refused upload names the ended session instead of blaming the connection.The standing session notice paints above page headers and below portaled dialogs. English, German and French preferences documentation records the actual recovery behavior and access-notice exceptions. AUTH-B13/B14 and their automation register cover these surfaces.
Independent review found and corrected the remaining raw
statsError.messageon Feedback analytics. Its EN/DE/FR regression failed before the correction and passes afterward. Validation: 62 focused UI tests, 67 API/adapter/error/i18n tests, 2 real Chromium stacking tests, platform types, scoped type-aware lint, manual/guide and SAST checks pass. Docs initially passed 170/171 with an unchanged five-second procedure-scan timeout under host load; that entire 10-case file passes on a one-worker rerun. React Doctor reports seven complexity warnings in the reviewed components (87/100), with no correctness finding.The review did not repeat the contributor's full live-backend logout flow or claim a new full root gate. Current-head CI supplies the repository-wide checks. Follow-up to #3569 (TALE-61).