Admin dashboard: client activity overview and invitations #4
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#4
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?
A dashboard for practice staff.
Scope
Acceptance
Depends on: RBAC, activities split, SMTP.
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).Every slice is implemented and deployed.
fad7716: activity picker (activityIds), invite-and-assign, invite revoke and resend.8339641: session-scoped definitions; the generic activity route is now active-only; read-only staff review with fail-closed read audit (one row per page, per direct read and per stream admission); access history, where IPs are shown to owners only (maintainer decision). Migration M4 adds audit indexes.d851e6a: progress dashboard (not started, in progress, complete, or no active cards; last activity; flag count) and keyset pagination, replacing the 100-session cap.478d3e7: Playwright journey from invite to assign to play to audited review, plus docs.Next: /complete-plan, then close after checking acceptance.
Follow-up fixes landed in
654bca2and are deployed (live at8db0a97).web/e2e/dashboard.spec.ts,478d3e7) passes against the merged code.8db0a97).Left: close the dashboard plan, then close this issue after checking its acceptance against the live app.
Acceptance verified, closing.
Admins see only their clients, and every view is authorized on the server.
/api/clients,/api/usersand/api/sessionsfilter through the predicates inserver/policy.js.canSeeSession, rechecked inside the audit transaction.dashboard.test.js: foreign drill-down returns 404, unlinking a client empties the pages, forged cursors are re-filtered;review.test.js: fail-closed read audit and access history;web/e2e/dashboard.spec.tsruns invite, then progress, then audited read-only review and export. It passes onmain.The plan
docs/plans/2026-10-14-15-11_admin-dashboard-progress-and-invites.mdis closed (Status: done).assign-session); retention is #8.