Handover workspace

ERS, Todo, OfferReview, and Docu in one view

Imported from live server docs, code structure, and deployment notes.

Apr 3, 2026, 12:38 PM

Todo

Test Plan

Run:

docs/TEST_PLAN.md

Updated Mar 4, 2026, 3:14 AM

Test Plan

Automated Tests

Run:

npm test

Current unit coverage:

  • src/lib/time.test.ts
  • src/lib/summary.test.ts
  • src/lib/analytics.test.ts
  • src/lib/drift.test.ts
  • src/lib/rate-limit.test.ts

Build and Lint Gates

npm run lint
npm run build

Functional Manual Checks

A. Auth and Security

  1. Setup initial account via /setup.
  2. Login/logout flow.
  3. Trigger repeated invalid login attempts and confirm rate-limit errors.
  4. Verify mutating actions fail on invalid cross-origin requests.

B. Team and RBAC

  1. Create member/admin on /settings/team.
  2. Update roles (owner only).
  3. Verify member cannot access owner/admin-only automation/team actions.
  4. Verify team dashboard aggregates across team users.

C. Daily Workflow

  1. Add/delete logs.
  2. Create/delete planning allocations.
  3. Verify drift cards update.
  4. Generate AI narrative and verify persistence.

D. Analytics

  1. Open /analytics with custom date range and filters.
  2. Verify weekly and monthly pages reflect selected windows.
  3. Check chart + drill-down values against raw logs.

E. Export and Automation

  1. Download personal and team CSV/PDF reports.
  2. Create scheduled exports in /settings/automation.
  3. Run npm run cron:exports and verify files under exports/<userId>/.
  4. Verify audit log events are created for key actions.