feat(desktop): F-CLS6 — inline classification-denial rendering in ShareDialog #208

Merged
amiryahaya merged 1 commit from feat/m8-716-cls6-inline-denial into main 2026-11-16 13:25:11 +01:00
Owner

Frontend-first piece of #207 (per the issue's suggested order — no Rust changes).

Share denials now render inline at the action site (F-CLS6: never a bare 403): the dialog shows an alert with the server's reason — classification denials get the user-facing copy ("Can't share: this {type}'s classification exceeds {recipient}'s clearance") plus the audit-notice footnote ("This denied attempt is recorded in the audit log"). Non-classification failures keep the toast. Dialog stays open; error clears on close/recipient change.

The server's reason already flows end-to-end: the Rust api_client's extract_error_message pulls the ProblemDetails detail into PermissionDenied, so the frontend only had to render it.

Verified: tsc clean; ShareDialog suite 18/18 (new F-CLS6 test: inline alert + footnote + dialog stays open); desktop full suite 1317/1skip.

Related: #207 (remaining desktop UX — badges/picker/override need the Rust + cache-migration session), epic #158.

Frontend-first piece of #207 (per the issue's suggested order — no Rust changes). Share denials now render **inline at the action site** (F-CLS6: never a bare 403): the dialog shows an alert with the server's reason — classification denials get the user-facing copy ("Can't share: this {type}'s classification exceeds {recipient}'s clearance") plus the audit-notice footnote ("This denied attempt is recorded in the audit log"). Non-classification failures keep the toast. Dialog stays open; error clears on close/recipient change. The server's reason already flows end-to-end: the Rust api_client's `extract_error_message` pulls the ProblemDetails `detail` into `PermissionDenied`, so the frontend only had to render it. Verified: tsc clean; ShareDialog suite 18/18 (new F-CLS6 test: inline alert + footnote + dialog stays open); desktop full suite 1317/1skip. Related: #207 (remaining desktop UX — badges/picker/override need the Rust + cache-migration session), epic #158.
feat(desktop): F-CLS6 — inline classification-denial rendering in ShareDialog
All checks were successful
Security CI / security-scan (pull_request) Successful in 1m59s
Desktop CI / lint-and-test (pull_request) Successful in 2m18s
53ada058b2
Share denials now surface INLINE at the action site instead of a
toast-only bare failure: the dialog renders an alert with the
server's reason (classification denials get the F-CLS2-style copy —
"Can't share: this {type}'s classification exceeds {recipient}'s
clearance") plus the F-CLS6 audit-notice footnote ("This denied
attempt is recorded in the audit log"). Non-classification failures
keep the toast. The error detail already flows through the Rust
api_client's extract_error_message (ProblemDetails detail →
PermissionDenied), so this is frontend-only — no Rust changes.

First piece of #207 (frontend-first quick win per the issue's order).
Dialog stays open on denial; cleared on close/recipient change.

tsc clean; ShareDialog suite 18/18; desktop full suite 1317/1skip.
Sign in to join this conversation.
No description provided.