xtablo-source/backend/templates
Arthur Belleville cb7d5d1dd1
test(05-files): add pure unit tests for formatBytes, byteCountReader, and content-type sniff
Gap fill: three no-infrastructure unit tests that run without TEST_DATABASE_URL or S3_ENDPOINT:
- backend/templates/files_helpers_test.go — formatBytes boundary cases (B/KB/MB/GB)
- backend/internal/files/store_unit_test.go — byteCountReader accumulation, io.ErrUnexpectedEOF
  guard for small files, and MultiReader body reconstruction after 512-byte sniff

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:29:08 +02:00
..
.gitkeep feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
auth_form_errors.templ feat(02-04): signup templates (full page + HTMX fragment) with render tests 2026-05-14 22:14:28 +02:00
auth_forms.go feat(02-05): login vertical slice with rate limiting 2026-05-14 22:27:54 +02:00
auth_login.templ feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
auth_signup.templ feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
auth_signup_test.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
files.templ feat(05-03): implement FileDownloadHandler, FileDeleteConfirmHandler, FileDeleteHandler 2026-05-15 12:34:07 +02:00
files_helpers.go feat(05-02): 3-tab layout + files templates + router + main.go S3 wiring 2026-05-15 12:28:33 +02:00
files_helpers_test.go test(05-files): add pure unit tests for formatBytes, byteCountReader, and content-type sniff 2026-05-15 13:29:08 +02:00
fragments.templ feat(01-03): templ layout/index/fragments + handlers + chi router 2026-05-14 19:25:43 +02:00
layout.templ feat(04-02): KanbanBoard, TaskCard, TaskDeleteConfirmFragment templates 2026-05-15 09:32:06 +02:00
layout_test.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
tablos.templ feat(05-02): 3-tab layout + files templates + router + main.go S3 wiring 2026-05-15 12:28:33 +02:00
tablos_forms.go fix(03): WR-04 add color field error display to create form template 2026-05-15 08:30:27 +02:00
tasks.templ fix(04-CR-02): replace fmt.Fprintf in TaskDeleteHandler with TaskCardGone templ component 2026-05-15 10:18:34 +02:00
tasks_forms.go feat(04-02): KanbanBoard, TaskCard, TaskDeleteConfirmFragment templates 2026-05-15 09:32:06 +02:00