feat: PB-overzicht in instellingen + documentatie bijgewerkt
Settings: - "Mijn teams" vervangen door gecombineerde "Product Backlogs" sectie - Toont eigen producten (badge Eigenaar) en team-lidmaatschappen (badge Developer) - Productnaam is klikbaar naar de product backlog - "Verlaten"-knop met bevestiging alleen voor Developer-lidmaatschappen - Lege staat met link naar product aanmaken Docs: - architecture.md: users tabel aangevuld met bio/bio_detail/avatar_data; Prisma schema excerpt bijgewerkt; projectstructuur bijgewerkt (profile route, ProfileEditor) - functional-spec.md: F-02b gebruikersprofiel en F-02c PB-overzicht toegevoegd; datamodel users rij bijgewerkt; settings route bijgewerkt - backlog.md: ST-507 profiel en ST-508 PB-overzicht toegevoegd als afgerond Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ec9de5a962
commit
e94959c5bc
4 changed files with 145 additions and 36 deletions
|
|
@ -58,8 +58,11 @@ Scrum4Me is een desktop-first Next.js 16 webapplicatie die server-side wordt ger
|
|||
| username | String | unique, not null, min 3 | Inlognaam |
|
||||
| password_hash | String | not null | bcrypt hash (cost factor 12) |
|
||||
| is_demo | Boolean | default false | Demo-gebruiker heeft read-only rechten |
|
||||
| bio | String | nullable, max 160 | Korte profielomschrijving |
|
||||
| bio_detail | String | nullable, max 2000 | Uitgebreide profielbeschrijving |
|
||||
| avatar_data | Bytes | nullable | Profielfoto als WebP bytea (max 700×700) |
|
||||
| created_at | DateTime | default now() | |
|
||||
| updated_at | DateTime | auto-update | |
|
||||
| updated_at | DateTime | auto-update | Gebruikt als cache-buster voor avatar-URL |
|
||||
|
||||
**Indexes:** `username` (unique lookup bij inloggen)
|
||||
|
||||
|
|
@ -286,6 +289,9 @@ model User {
|
|||
username String @unique
|
||||
password_hash String
|
||||
is_demo Boolean @default(false)
|
||||
bio String? @db.VarChar(160)
|
||||
bio_detail String? @db.VarChar(2000)
|
||||
avatar_data Bytes?
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
roles UserRole[]
|
||||
|
|
@ -501,29 +507,31 @@ scrum4me/
|
|||
│ │ │ │ └── planning/page.tsx # Sprint Planning (gesplitst scherm)
|
||||
│ │ ├── todos/page.tsx
|
||||
│ │ └── settings/
|
||||
│ │ ├── page.tsx
|
||||
│ │ ├── page.tsx # Profiel, account, PB-overzicht, rollen, tokens
|
||||
│ │ └── tokens/page.tsx
|
||||
│ └── api/ # REST API voor Claude Code
|
||||
│ ├── products/
|
||||
│ │ └── [id]/
|
||||
│ │ └── next-story/route.ts
|
||||
│ ├── sprints/
|
||||
│ │ └── [id]/
|
||||
│ │ └── tasks/route.ts
|
||||
│ ├── stories/
|
||||
│ │ └── [id]/
|
||||
│ │ ├── log/route.ts
|
||||
│ │ └── tasks/reorder/route.ts
|
||||
│ ├── tasks/
|
||||
│ │ └── [id]/route.ts
|
||||
│ └── todos/route.ts
|
||||
│ ├── api/ # REST API voor Claude Code
|
||||
│ │ ├── products/
|
||||
│ │ │ └── [id]/
|
||||
│ │ │ └── next-story/route.ts
|
||||
│ │ ├── profile/
|
||||
│ │ │ └── avatar/route.ts # POST upload + GET serve profielfoto
|
||||
│ │ ├── sprints/
|
||||
│ │ │ └── [id]/
|
||||
│ │ │ └── tasks/route.ts
|
||||
│ │ ├── stories/
|
||||
│ │ │ └── [id]/
|
||||
│ │ │ ├── log/route.ts
|
||||
│ │ │ └── tasks/reorder/route.ts
|
||||
│ │ ├── tasks/
|
||||
│ │ │ └── [id]/route.ts
|
||||
│ │ └── todos/route.ts
|
||||
├── components/
|
||||
│ ├── ui/ # shadcn/ui primitieven
|
||||
│ ├── split-pane/ # Gesplitst scherm component
|
||||
│ ├── backlog/ # PBI- en story-componenten
|
||||
│ ├── sprint/ # Sprint-componenten
|
||||
│ ├── products/ # ProductForm, TeamManager, ArchiveProductButton
|
||||
│ ├── settings/ # RoleManager, LeaveProductButton
|
||||
│ ├── settings/ # RoleManager, ProfileEditor, LeaveProductButton
|
||||
│ └── dnd/ # dnd-kit wrappers
|
||||
├── lib/
|
||||
│ ├── prisma.ts # Prisma Client singleton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue