feat(web): stash away / disband split action for people cluster suggestions (spec 039) #767
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/stash-disband-web"
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?
Implements spec 039 Task T002 (frontend lane).
Changes
apps/web/src/lib/api/discovery.ts
ClassInstanceCandidateDecisionRequest.decisionandClassInstanceCandidateDecisionResult.stateextended to'accepted' | 'rejected' | 'stashed' | 'disbanded'ClassInstanceView.stashed?: boolean | null(optional, defensive against older API)stashClassInstance/unstashClassInstance/disbandClassInstance(POST .../stash, .../unstash, .../disband)getDomainClassInstances(domainKey, query?, opts?)setsstashed=truesearch param whenopts.stashedapps/web/src/lib/components/StashDisbandSplit.svelte (new)
svelte:documentstopPropagationwins over the suggestion dialog's own Escape handler (Svelte 5 delegated handlers run too late)apps/web/src/lib/components/DomainSuggestionsCarousel.svelte
stashCandidate/disbandCandidatehandlers mirroringrejectCandidate(same details payload, decisionstashed/disbanded)isPeopleClusterhelper: split button only on people new-person-cluster cards in create-person mode;cluster_person_matchandexisting_person_matchkeep plain Rejectcandidate-accept/candidate-rejecttestids preserved (Reject now lives on the dropdown item)apps/web/src/lib/components/DiscoveryDomainInstances.svelte (people domain)
[...instances, ...stashed]prop); naming a stashed person unstashes it into the grid ('Name saved. The person is back in your people.')opError+ refetch on failure; Disband behind aglobalThis.confirmTests
stashedand removes card; menu Disband postsdisbanded/ Reject postsrejected)Validation
npm run check: 0 errors (20 pre-existing warnings)