feat(web): stash action for named people (name is discarded) #1226
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/stash-named-person-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?
Spec 039 (stash-away), web part: a NAMED person in the people grid can now be turned into a stashed (unnamed) person.
UX
DiscoveryDomainInstances, following the existing hover-revealed card-action pattern (icon button next to the rename affordance). Always visible on coarse pointers (touch has no hover), never rendered for unnamed cards or on non-people domains — stashed people already live in the Stashed section with Curate/Unstash/Disband.globalThis.confirm, same pattern as Disband) names the cost explicitly: the name is lost.describeApiErroralert + refetch fallback, card stays put.Changes
apps/web/src/lib/components/DiscoveryDomainInstances.svelte—stashNamedPerson()(reuses existingstashClassInstanceAPI client, no API change) + card action buttonddiStashPersonAction/ddiStashNamedConfirm/ddiStashedPersonin en/de/daTests (
apps/web/tests/discovery-stashed-people.spec.ts, +4)Validation (local)
npm run check(svelte-check): 0 errors, warnings pre-existingnpm run build: okdiscovery-stashed-people.spec.ts: 18/18 (desktop + mobile)discovery-domain-instances+-rename+-selection: 72/72 (no regressions)pointer-coarsedevices render the action at full opacity without hover