Scrum4Me/components
Madhura68 9b299198cd feat(PBI-59): Sprint.code (SP-N sequentieel per product)
Voegt een verplicht code-veld toe aan Sprint, sequentieel per product
(consistent met PBI-N, ST-NNN, T-N).

- **Schema** — `Sprint.code String @db.VarChar(30)` + `@@unique([product_id, code])`
- **Migratie** — voegt kolom toe als nullable, backfillt bestaande sprints
  via `ROW_NUMBER() OVER (PARTITION BY product_id ORDER BY created_at)`
  als `SP-N`, en zet daarna NOT NULL + UNIQUE.
- **Generator** — `generateNextSprintCode(productId)` in lib/code-server.ts
  volgt het patroon van story/pbi/task; createSprintAction gebruikt
  `createWithCodeRetry` voor race-bescherming.
- **Seed** — sprint-counter per product (`SP-1`, `SP-2`, ...).

Zichtbaar in:
- Sprint-header (`Product › Sprint actief · SP-3`)
- JobCard + JobDetailPane voor SPRINT_IMPLEMENTATION jobs
- Insights: VelocityChart x-axis (compacter dan goal-truncated),
  AlignmentTrend tooltip, SprintInfoStrip
- actions/jobs-page.ts: `sprintCode` is weer een echte code i.p.v. null

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 20:03:28 +02:00
..
admin Sprint: inzicht jobs (#146) 2026-05-07 16:09:17 +02:00
auth feat: ST-006-ST-008 auth pages, middleware, nav shell en dashboard 2026-04-24 11:18:42 +02:00
backlog feat(ST-4uzuhxy0): sorteersectie in popover vervangen door ↑↓ knoppen + pills (#125) 2026-05-06 06:47:41 +02:00
dashboard fix(a11y): tap targets ≥28px + aria-pressed on pbi-card (Lighthouse 86 → ≥95) 2026-05-04 14:03:37 +02:00
dialogs feat(PBI-33): chat-kanaal UI + lint cleanup (#145) 2026-05-07 16:04:53 +02:00
entity-dialog M14: TaskDialog (create/edit) + story auto-promotion (#21) 2026-04-30 16:55:20 +02:00
ideas feat(PBI-33): chat-kanaal UI + lint cleanup (#145) 2026-05-07 16:04:53 +02:00
jobs feat(PBI-59): Sprint.code (SP-N sequentieel per product) 2026-05-07 20:03:28 +02:00
mobile feat(ST-1136): mobile Settings-pagina + LogoutButton (T-325/T-326/T-327) 2026-05-04 10:12:19 +02:00
notifications fix(m12): user can answer idea-questions — inline + bell support 2026-05-05 13:05:39 +02:00
products PBI-50: SPRINT_IMPLEMENTATION single-session sprint runner (Scrum4Me-side) (#139) 2026-05-07 13:05:02 +02:00
settings ST-1240: Verwijder backend todo-code (server actions + API route) (#135) 2026-05-06 12:24:48 +02:00
shared feat(PBI-59): Jobs-pagina UI (vervolg na #149) (#150) 2026-05-07 19:16:20 +02:00
solo feat(M13 PBI-31 T-519b/T-520b): NavBar stand-by badge + quota-check runbook (#119) 2026-05-06 04:34:48 +02:00
split-pane feat(M14): 3-pane backlog — generic SplitPane, BacklogStore, SSE realtime, card-grid TaskPanel (#22) 2026-04-30 18:16:07 +02:00
sprint feat(PBI-59): Sprint.code (SP-N sequentieel per product) 2026-05-07 20:03:28 +02:00
ui fix(textarea): border-border + bg-input-background voor off-focus zichtbaarheid (#143) 2026-05-07 14:27:11 +02:00
markdown.tsx M14: TaskDialog (create/edit) + story auto-promotion (#21) 2026-04-30 16:55:20 +02:00