Activity Builder: create and manage activities (CRUD) #5
Labels
No labels
priority/high
priority/low
priority/medium
type/feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ben/career-values-cards#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Let admins author their own card-sort activities.
Scope
Acceptance
Depends on: activities split, RBAC.
Handoff context: the app is being prepared so a counselling practice can self-host it (see README and docs/self-hosting.md). Today the app has no auth by design, two hard-coded decks in
shared/cards.json, three fixed columns, and Fastify + SQLite + SSE sync (docs/api.md).Deferred from the #2 code review (delta round 2, codex/gpt-6-astra), to resolve when the builder can archive cards:
web/src/main.tsremaining(), summary ~L647/669/724).web/src/main.ts~L679/719).Slices 1–5 are implemented.
568d5e9is deployed;478d3e7(tests and docs) is not yet deployed.0ddfd88: read-only historical cards, and Summary counts now exclude archived cards. This resolves the deferred review comment.6b9a2d5: builder create.c5ada02: edit, archive, duplicate and delete. Staff edit only unassigned activities; once assigned, only the owner edits. Removed items are soft-archived. Clients that hit a removed item get a machine-readable error and keep the note recoverable.568d5e9: CSV and paste import, plus an in-memory client preview.478d3e7: Playwright builder journey.The four should-fix follow-ups landed in
654bca2and are deployed (live at8db0a97):The builder journey (
web/e2e/builder.spec.ts) passes: create, then import, preview, assign and play. README screenshots now include the builder (8db0a97).Left: the plan's status line still says
draft. Move it to in-progress, close the plan, then close this issue after checking its acceptance against the live app.Acceptance verified, closing.
web/e2e/builder.spec.tscreates an activity with a CSV import, previews it and assigns it. The client then draws, sorts, adds notes and flags, and opens the Summary. The server test inactivities.test.jsdoes the same through the API.server/activities.jsreturns 409 for an assigned or referenced activity, and admins get 403. The soft path is archive: removed cards and columns are soft-archived once the activity is assigned. Tests:activities.test.js"authorizes before stale-token conflicts…";canDeleteis false (builder.test.ts).The plan
docs/plans/2026-10-14-15-11_activity-builder-crud.mdis closed (Status: done).STATUS.md).