5.4 KiB
5.4 KiB
| phase | plan | subsystem | tags | dependency_graph | tech_stack | key_files | decisions | metrics | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 15-dashboard-tablos | 03 | frontend-templates |
|
|
|
|
|
|
Phase 15 Plan 03: Dashboard + Tablo Detail Restyle Summary
Wire AppLayout into all authenticated pages, restyle the tablo dashboard with project-card grid, and restyle the tablo detail page header and tab nav to match the reference JS app design.
Tasks Completed
| # | Task | Commit | Files |
|---|---|---|---|
| 1 | Restyle tablos.templ — project-card grid, EmptyState, AppLayout wiring | (prior agent) | backend/templates/tablos.templ |
| 2 | Update handlers + planning/account_providers templates to use AppLayout | (prior agent) | handlers_tablos.go, handlers_planning.go, planning.templ, account_providers.templ |
| 3 | Restyle tablo detail page header and tab nav to match reference design | 6953536 |
backend/templates/tablos.templ |
What Was Built
Task 1 — Project-card grid and AppLayout wiring:
TablosDashboardsignature updated to acceptactivePath stringandsidebarTablos []sqlc.Tablo; now calls@AppLayoutinstead of@Layout- New
TabloProjectCardcomponent renders.project-cardarticles with colored circle avatar, title, creation date, and edit/delete icon buttons TablosEmptyStatereplaced with@ui.EmptyStatecomponentTabloDetailPageandTabloNotFoundPagesignatures updated withactivePathandsidebarTablosparams; both now use@AppLayout
Task 2 — Handler wiring:
TablosListHandler: derivessidebarTablosfromcardViews(no extra DB query) and passes toTablosDashboardTabloDetailHandler: fetchessidebarTablosviaListTablosByUser, passes toTabloDetailPagePlanningPageHandler: fetchessidebarTablos, calls updatedPlanningPagewithactivePath="/planning"AccountProvidersPageand its handler updated to useAppLayoutPlanningPagesignature updated to acceptactivePathandtablos
Task 3 — Tablo detail page restyle (post-checkpoint fix):
- Header section: title row with
h1(text-xl md:text-3xl font-bold) + Discussion action button (purple#804EEC) + placeholder Invite button (outlined purple) - Metadata row: created date with calendar icon, hardcoded "En cours" status badge (yellow), 0% progress bar
- Description inline-edit zone (
tablo-desc-zone) positioned below metadata row - Tab bar redesigned: sticky (top-0 z-40), purple active state (
text-[#804EEC] border-[#804EEC] border-b-2), inactive state (text-[#667085]), each tab has a lucide SVG icon + label, horizontal scroll with hidden scrollbar - Tabs: Overview (layout-dashboard icon), Étapes/Tasks (checkbox icon), Files (folder icon), Discussion (message-circle icon), Events (calendar icon)
#tab-contentdiv retained with all HTMX tab switching logic unchangedtablo-title-zone,tablo-desc-zone,tablo-delete-zoneelements all preserved
Known Stubs
| Stub | File | Reason |
|---|---|---|
| Status "En cours" hardcoded | backend/templates/tablos.templ | No status field in DB schema yet |
| Progress bar at 0% | backend/templates/tablos.templ | Task completion counting not implemented yet |
Deviations from Plan
Auto-fixed Issues
1. [Rule 2 - User feedback] Tablo detail page restyled after checkpoint
- Found during: Post-checkpoint human review
- Issue: Tablo detail page did not match the reference JS app design — used plain back link + slate tab bar instead of branded header with action buttons, metadata row, and purple-accent tab nav
- Fix: Redesigned TabloDetailPage in tablos.templ with reference-matching header, metadata row, and icon + label tab bar; updated TabloTitleDisplay to use larger font (text-xl md:text-3xl font-bold); updated title edit input to match
- Files modified: backend/templates/tablos.templ
- Commit:
6953536
Self-Check: PASSED
- backend/templates/tablos.templ modified and committed:
6953536exists in git log templ generateexited 0 — 30 updates processedgo build ./...exited 0 — no compilation errors- HTMX attributes preserved:
#tab-content,hx-push-url,hx-target,hx-swapall present - Inline-edit zones preserved:
tablo-title-zone,tablo-desc-zone,tablo-delete-zone