feat(desktop): #142 slice 4 — recovery notification routing + owner cancel (KEY-17) #152
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!152
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/recovery-notification-routing"
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?
The last #142 slice — closes the loop on recovery notification UX and the KEY-17 owner-cancel path.
The gap: recovery notifications (recovery_alert / recovery_request / recovery_cancelled) had icons and filters but clicking did nothing, and the anti-abuse answer to "a thief initiates recovery on your account" existed only as a server endpoint — no client surface at all.
Landed (frontend-only — the server always attached
action_type+action_resource_idto recovery_alert; the client type dropped them)useNotificationRoutinghook: type → destination map (recovery_*→/settings#recovery,share_received→ shared-with-me); marks read, then routes. Wired into BOTH surfaces — the full NotificationsPanel and the header dropdown.recovery_alertitems carrying the server'saction_resource_id(the request id, attached by both initiation paths) render a destructive "Not me — cancel" button → confirm dialog ("cancelling immediately invalidates the request — trustees can no longer approve it") →cancel_recovery_request(client command landed in PR #141). Success toast; failures (409 already-decided, cooldown) surface without clearing the notification./settings#recoveryanchor with smooth scroll as the routing target.Notificationtype now carriesaction_type/action_resource_id.Tests (6 new): click-routing to
/settings#recovery, cancel-button presence gated on the resource id (non-owner alerts get none), the confirm→cancel flow invokingcancel_recovery_requestwith the request id, failure surfacing, plus the route-map contract.vitest 1301/1skip; typecheck clean; lint clean (0 warnings). No server or Rust changes.