1.2 KiB
1.2 KiB
Implementation Plan
Steps
- Load relevant frontend, backend, and shared Trellis specs.
- Add schema enums/tables and update core permission types/seed role definitions.
- Generate the Drizzle migration.
- Add module type contracts, validators, and server operations for devices, notices, alerts, and family.
- Add API route handlers and route tests for read/manage permission behavior and organization scoping.
- Add local seed records for the four modules using existing organization, elder, bed, incident, health, and account context where available.
- Replace reserved route pages with data-backed Server Components and client workspace components.
- Run
pnpm type-check,pnpm test, and targeted lint/build checks as time allows. - Run Trellis check/update-spec finish steps and commit task changes.
Validation Commands
pnpm db:generatepnpm type-checkpnpm testpnpm lint
Risk Points
- Schema migration generation changes tracked Drizzle metadata; inspect before finalizing.
- Avoid touching unrelated user-modified files except where required by shared types/navigation/seed integration.
- Keep organization scoping explicit in every list and mutation query.