samsa/internal/views
Franz Kafka 665494304d perf(htmx): reduce swap payload via OOB swaps and hx-select
Before: every HTMX response returned the full results_inner template
(~400 lines of corrections, meta, pagination, back-to-top) even though
only the result list (#urls) changed between searches.

After:
- Corrections and results-meta use hx-swap-oob="true" — they update
  in-place in the DOM without duplication, no extra payload
- #urls div carries hx-select="#urls" hx-target="#urls" hx-swap="innerHTML"
  — only the result rows are extracted from the response and swapped
- Pagination forms replaced with paginate-btn buttons — JS calls
  htmx.ajax() directly with select:#urls so only result rows reload
- Header search form gains hx-get/hx-target/hx-select for partial updates
  on subsequent searches

Payload reduction per HTMX swap: ~60-70% (no more nav, meta, pagination,
back-to-top, htmx-indicator in the swap response body)
2026-03-23 14:31:21 +00:00
..
static feat(ui): make favicons user-configurable, off by default 2026-03-23 14:22:24 +00:00
templates perf(htmx): reduce swap payload via OOB swaps and hx-select 2026-03-23 14:31:21 +00:00
views.go rename: kafka → samsa 2026-03-22 23:44:55 +00:00
views_test.go fix: rename remaining kafka references to samsa 2026-03-23 07:25:30 +00:00