xtablo-source/backend/internal/web
Arthur Belleville 5db9215a73
feat(03-02): tablo handlers + router wiring — list/new/create green
- Implement TablosListHandler, TablosNewHandler, TablosCreateHandler in
  handlers_tablos.go replacing the Plan 01 stub
- TablosCreateHandler: reads via r.PostFormValue, validates title (required,
  <=255), inserts with pgtype.Text nullable params, sends HX-Retarget +
  HX-Reswap on HTMX success, 303 redirect on non-HTMX success
- router.go: replace r.Get("/", IndexHandler()) with TablosListHandler;
  add GET /tablos/new and POST /tablos (static before parametric — Pitfall 1)
- handlers.go: remove IndexHandler + unused auth/csrf imports
- index.templ: reduced to bare package declaration (dashboard moved to tablos.templ)
- index_templ.go: deleted (empty templ file generates broken import)
- TestTabloList, TestTabloList_Empty, TestTabloCreate, TestTabloCreate_Validation: PASS
- TestSignup, TestLogin, TestLogout, TestCSRF: still PASS (no regression)
2026-05-15 00:20:25 +02:00
..
ui feat(03-01): add ui-button-solid-danger-md and ui-button-soft-neutral-md CSS variants 2026-05-15 00:13:56 +02:00
csrf_debug_test.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
csrf_test.go test(03-01): add TablosDeps stub and RED integration test scaffold for TABLO-01..06 2026-05-15 00:13:31 +02:00
handlers.go feat(03-02): tablo handlers + router wiring — list/new/create green 2026-05-15 00:20:25 +02:00
handlers_auth.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
handlers_auth_test.go test(03-01): add TablosDeps stub and RED integration test scaffold for TABLO-01..06 2026-05-15 00:13:31 +02:00
handlers_tablos.go feat(03-02): tablo handlers + router wiring — list/new/create green 2026-05-15 00:20:25 +02:00
handlers_tablos_test.go test(03-01): add TablosDeps stub and RED integration test scaffold for TABLO-01..06 2026-05-15 00:13:31 +02:00
handlers_test.go test(03-01): add TablosDeps stub and RED integration test scaffold for TABLO-01..06 2026-05-15 00:13:31 +02:00
middleware.go feat(01-03): pgxpool wrapper, RequestID/slog middleware, slog handler switch 2026-05-14 19:24:16 +02:00
router.go feat(03-02): tablo handlers + router wiring — list/new/create green 2026-05-15 00:20:25 +02:00
slog.go feat(01-03): pgxpool wrapper, RequestID/slog middleware, slog handler switch 2026-05-14 19:24:16 +02:00
testdb_test.go feat(02-04): signup handler, router wiring, and integration tests 2026-05-14 22:17:50 +02:00