feat(desktop): 7.16 CLS client UX — badges, pickers, eligibility (#207) #213
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!213
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/desk-cls-client-ux"
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?
D2 — the final slice of #207 (CLS-08): the four classification surfaces on the aligned stack from #210–#212.
LevelBadge (F-CLS3): rank→color chip (gray/blue/orange/red) with dark variants, text label always rendered (never color alone, a11y), null-safe — zero-delta when classification is off. On FilesPage table rows, FileGridView cards, FavoritesPage rows.
classificationStore (new): direct-fetch GET /api/tenants/{id}/classification (memberStore pattern), per-tenant cache; helpers expose the ladder + caller clearance (null reads Internal, CLS-02). FilesPage loads it imperatively — no reactive-dep retry loops, tenant switches reload. Cleared on logout (my_clearance is caller-specific).
Folder-create picker (F-CLS1): level Select (default Internal, capped at the creator's clearance, hidden entirely when classification is off); classification_insufficient denials render inline with the #208 audit-footnote treatment.
Upload override sheet (F-CLS1): new UploadLevelSheet — picked files park until it commits; shows the inherited folder level + raise-only override capped at clearance. Classification OFF → no sheet, immediate inherit (CLS-01 zero-delta). Tray quick-upload stays dialog-free and inherits (server-gated). Folder level rides a FolderInfo.level envelope addition (additive Rust change). Upload denials render INLINE on the sheet with the audit footnote and the sheet stays open for retry (F-CLS6).
Share eligibility (F-CLS2): recipients render eligible / ineligible (disabled, struck-through, "requires {level} clearance — {name} is {their level | unclassified}"); null clearance reads Internal; the current user is excluded; the hard slice cap removed; the server re-check stays the authority (races → existing F-CLS6 inline).
Correctness fix riding along: shareDialogItem on FilesPage/FavoritesPage now carries level + encrypted_file_key — D1b shares were silently receiving neither.
Also untracks the stray session-plan file #211 accidentally shipped.
Tests: classificationStore (5), LevelBadge (7), UploadLevelSheet (7 — raise-only window, inherit-null, inline denial, uploading-disabled), ShareDialog eligibility (5 new, 23 total), CreateFolderDialog picker cap + F-CLS6 footnote (3 new, 13 total), memberStore clearance expectations. Gates: tsc clean, vitest 1333 green (84 files), cargo 68 green, gitleaks clean on production paths.
Review: dual-pass done. Pass 2 caught: the sheet shipping unconditionally (zero-delta violation — fixed: classification-off commits immediately), upload denials toast-only (F-CLS6 violation — fixed: inline on the sheet), the caller-specific cache surviving logout (fixed: cleared), and the untested fourth surface (fixed: suite added).
Closes the last slice of #207. With this, 7.14–7.16 (M8/#158) are code-complete pending the milestone-close audit.
Related: #207, #158, #210, #211, #212.