fix(desktop): M8 audit batch 5 — stale-closure upload, memberStore verbs, orphaned share-management sweep (#214) #220
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!220
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/m8-desktop-quick"
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?
M8-close audit remediation batch 5 (#214 findings M8-9, M8-10, M8-12).
M8-9 (silent mis-filing): the toolbar Upload button's useCallback had an empty deps array — navigating root → subfolder kept the mount-time closure, so files uploaded into the WRONG folder and the F-CLS1 level sheet never opened. Real deps; handleUpload now declared after runUpload (declaration order).
M8-10 (member management broken): updateMemberRole/removeMember doubled the /api prefix and used PUT where the server exposes PATCH — role changes and removals 404'd every time. loadMembers got the URL fix in #212; these two were missed.
M8-12 (ghost contracts): orphaned share-management surface swept — ShareDetailsDialog (never imported by any page), shareStore loadSharesForItem/updatePermission/setExpiry, tauri getSharesForItem/updateSharePermission/setShareExpiry (three commands absent from the Rust handler list), their mocks and mock-pinned test suites. This is the mock-only failure mode: the suites stayed green against a backend that never had the contract.
Deferred (tracked on #214/#215, needs dev-plan 2.5 key provisioning first): M8-3 (client KEM key generation+persist+publish — folder creation fails on fresh installs), M8-13 (receive-side share-envelope unpack — needs those keys).
Gates: tsc clean, vitest 1303 green (83 files).
Part of the M8-close FIX-ALL (umbrella #215, audit #214).