From e2ee4349f89e1a4ebac216f99019bbbad0701ec8 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sat, 16 May 2026 23:42:46 +0200 Subject: [PATCH] feat(16-03): update all three KanbanBoard call sites to pass etapes - tablos.templ TasksTabFragment: add etapes as 5th argument to @KanbanBoard - handlers_tasks.go reorder (single): capture etapes from loadTasksTabData; pass to KanbanBoard - handlers_tasks.go reorder (batch): capture etapes from loadTasksTabData; pass to KanbanBoard - go build ./backend/... exits 0; go test ./backend/internal/web/... -count=1 passes --- backend/internal/web/handlers_tasks.go | 8 ++++---- backend/templates/tablos.templ | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/internal/web/handlers_tasks.go b/backend/internal/web/handlers_tasks.go index 3734180..d8bbbc3 100644 --- a/backend/internal/web/handlers_tasks.go +++ b/backend/internal/web/handlers_tasks.go @@ -586,12 +586,12 @@ func TaskReorderHandler(deps TasksDeps) http.HandlerFunc { } } } - tasks, _, _, filter, ok := loadTasksTabData(w, r, deps.Queries, tablo) + tasks, etapes, _, filter, ok := loadTasksTabData(w, r, deps.Queries, tablo) if !ok { return } w.Header().Set("Content-Type", "text/html; charset=utf-8") - _ = templates.KanbanBoard(tablo.ID, csrf.Token(r), tasks, filter).Render(ctx, w) + _ = templates.KanbanBoard(tablo.ID, csrf.Token(r), tasks, filter, etapes).Render(ctx, w) return } } @@ -636,12 +636,12 @@ func TaskReorderHandler(deps TasksDeps) http.HandlerFunc { } } - tasks, _, _, filter, ok := loadTasksTabData(w, r, deps.Queries, tablo) + tasks, etapes, _, filter, ok := loadTasksTabData(w, r, deps.Queries, tablo) if !ok { return } w.Header().Set("Content-Type", "text/html; charset=utf-8") - _ = templates.KanbanBoard(tablo.ID, csrf.Token(r), tasks, filter).Render(ctx, w) + _ = templates.KanbanBoard(tablo.ID, csrf.Token(r), tasks, filter, etapes).Render(ctx, w) } } diff --git a/backend/templates/tablos.templ b/backend/templates/tablos.templ index 6cdb2bd..2036749 100644 --- a/backend/templates/tablos.templ +++ b/backend/templates/tablos.templ @@ -428,7 +428,7 @@ templ TabloOverviewTabFragment(tablo sqlc.Tablo, csrfToken string) { // Lives in tablos.templ (tablo-level concern) per plan D-07. templ TasksTabFragment(tablo sqlc.Tablo, tasks []sqlc.Task, etapes []sqlc.Etape, counts EtapeTaskCounts, filter EtapeFilter, csrfToken string) {
- @KanbanBoard(tablo.ID, csrfToken, tasks, filter) + @KanbanBoard(tablo.ID, csrfToken, tasks, filter, etapes)
}