m
9787450d91
feat: refactor case detail from useState tabs to URL-based nested routes
Refactors the monolithic cases/[id]/page.tsx into Next.js nested routes
with a shared layout for the case header and tab navigation bar.
Route structure:
- cases/[id]/layout.tsx — case header + tab bar (active tab from URL)
- cases/[id]/page.tsx — redirects to ./verlauf
- cases/[id]/verlauf/page.tsx — timeline tab
- cases/[id]/fristen/page.tsx — deadlines tab
- cases/[id]/dokumente/page.tsx — documents tab (with upload)
- cases/[id]/parteien/page.tsx — parties tab
- cases/[id]/notizen/page.tsx — notes tab (new, uses NotesList)
New shared components:
- Breadcrumb.tsx — reusable breadcrumb navigation
- NotesList.tsx — reusable notes CRUD (inline create/edit/delete)
- Note type added to types.ts
Benefits: deep linking, browser back/forward, bookmarkable tabs.
2026-03-25 19:28:29 +01:00
..
2026-03-25 18:40:15 +01:00
2026-03-25 19:28:29 +01:00
2026-03-24 19:20:49 +01:00
2026-03-25 16:19:00 +01:00
2026-03-25 15:53:32 +01:00
2026-03-24 18:32:50 +01:00
2026-03-25 13:39:16 +01:00
2026-03-25 15:55:58 +01:00
2026-03-25 16:19:00 +01:00
2026-03-24 18:32:50 +01:00
2026-03-24 18:32:50 +01:00
2026-03-25 16:19:00 +01:00