feat(desktop): F-CLS6 — inline classification-denial rendering in ShareDialog #208
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!208
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/m8-716-cls6-inline-denial"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_messagepulls the ProblemDetailsdetailintoPermissionDenied, 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.
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.