Skip to content

fix(platform): say a lapsed session in words on every surface - #3685

Merged
yannickmonney merged 4 commits into
mainfrom
fix/refusal-words-not-payload
Sep 28, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
fix/refusal-words-not-payload

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

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 failureDetail helper 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.message on 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).

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.
@yannickmonney
yannickmonney merged commit acdc1f2 into main Sep 28, 2026
50 checks passed
@yannickmonney
yannickmonney deleted the fix/refusal-words-not-payload branch September 28, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant