1.5 KiB
1.5 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 02-frontend-behavior | Frontend archive confirmation behavior | done | 2 |
|
plan.md | ../../specs/tasks/archive-confirmation.md |
Task 02: Frontend Archive Confirmation Behavior
Acceptance
- General settings exposes a default-enabled archive confirmation switch with optimistic save and rollback.
- All UI archive surfaces continue to confirm while enabled and immediately archive with
cascade: falsewhile disabled. - Missing boot/API/WS values resolve to confirmation enabled.
Verification
cd apps && pnpm --filter @kandev/web test -- --run lib/ssr/user-settings.test.ts lib/ws/handlers/users.test.ts components/task/task-archive-confirm-dialog.test.tsx components/settings/general-settings.test.tsx
Files Likely Touched
apps/web/lib/types/http-user-settings.tsapps/web/lib/types/backend.tsapps/web/lib/state/slices/settings/types.tsapps/web/lib/state/slices/settings/settings-slice.tsapps/web/lib/ssr/user-settings.tsapps/web/lib/ws/handlers/users.tsapps/web/components/settings/general-settings.tsxapps/web/components/task/task-archive-confirm-dialog.tsx- Nearby focused tests.
Inputs
Backend task 01 contract; spec What, Failure modes, and Scenarios. Reuse the optimistic switch pattern from changelog and notification settings.
Output Contract
Report state/UI/dialog behavior, tests run, files touched, blockers, and risks; mark this task and the plan entry done.