feat(v2.4): 完成领域主写迁移

This commit is contained in:
2026-07-08 15:41:10 +08:00
parent 2358dbd0b5
commit da71128ccd
42 changed files with 1410 additions and 81 deletions

View File

@@ -225,12 +225,12 @@
- Produces: domain APIs for members, task categories, task worklogs, overtime records, and activity records.
- Consumes: existing AppData keys only for compatibility import/fallback during the transition.
- [ ] Add failing backend tests for member CRUD, protected built-in admin behavior, and role/department fields used by the UI.
- [ ] Add failing backend tests for task category CRUD and uniqueness by `(group, name)`.
- [ ] Add failing backend tests for append-style TaskWorklog, OvertimeRecord, and WorkActivity writes.
- [ ] Add failing frontend tests proving dictionary/member/evidence stores no longer save AppData as the main write path.
- [ ] Implement the remaining domain modules.
- [ ] Switch stores to domain writes, preserving fallback reads and current UI data shapes.
- [ ] Update architecture, decisions, workflow, and roadmap to mark V2.4.0-V2.4.5 complete and clarify AppData is now compatibility/migration fallback.
- [ ] Run full gates: `pnpm type-check`, `pnpm test`, `pnpm build`, `DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ftb_pm pnpm --filter server exec prisma validate --schema prisma/schema.prisma`, `pnpm deploy:verify`.
- [ ] Commit: `feat(v2.4): 完成领域主写迁移`.
- [x] Add failing backend tests for member CRUD, protected built-in admin behavior, and role/department fields used by the UI.
- [x] Add failing backend tests for task category CRUD and uniqueness by `(group, name)`.
- [x] Add failing backend tests for append-style TaskWorklog, OvertimeRecord, and WorkActivity writes.
- [x] Add failing frontend tests proving dictionary/member/evidence stores no longer save AppData as the main write path.
- [x] Implement the remaining domain modules.
- [x] Switch stores to domain writes, preserving fallback reads and current UI data shapes.
- [x] Update architecture, decisions, workflow, and roadmap to mark V2.4.0-V2.4.5 complete and clarify AppData is now compatibility/migration fallback.
- [x] Run full gates: `pnpm type-check`, `pnpm test`, `pnpm build`, `DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ftb_pm pnpm --filter server exec prisma validate --schema prisma/schema.prisma`, `pnpm deploy:verify`.
- [x] Commit: `feat(v2.4): 完成领域主写迁移`.