feat(projects): list + create API and creatable ProjectAutocomplete (T4)
- GET /api/projects returns the shared global list; POST /api/projects creates a project, deduped case-insensitively (F3). - Repository find-or-create trims and matches on lower(name); a unique index on lower(name) enforces the same rule at the DB (replacing the case- sensitive column unique constraint) — migration 0001. - ProjectAutocomplete: creatable autocomplete that lists projects, offers to create an unknown name inline, and selects it without reload. - Integration test (dedupe/list against Postgres) + component test.
This commit is contained in:
@@ -11,7 +11,7 @@ review.
|
||||
|
||||
## Phase 2 — File a defect (G1)
|
||||
- [x] **T3** Postgres schema + migrations (C8) (S) — _deps: T1_
|
||||
- [ ] **T4** Projects API + ProjectAutocomplete (C4) — F3 (M) — _deps: T3_
|
||||
- [x] **T4** Projects API + ProjectAutocomplete (C4) — F3 (M) — _deps: T3_
|
||||
- [ ] **T5** File a defect: POST /api/defects + DefectForm (C3) — F2 (M) — _deps: T2, T3, T4_
|
||||
- [ ] ⛳ **Checkpoint:** defect files end-to-end (dev auth), tests pass, human review
|
||||
|
||||
|
||||
Reference in New Issue
Block a user