Files
Dion Kobi 097904f2b9 feat: implement pagination in Web UI (Fixes #86) (#325)
* feat: implement pagination in Web UI (Fixes #86)

- Added Count method to JobRepository and Offset to SelectParams
- Updated sqlite implementation to support offset and count calculations
- Added ListJobs function to Service, keeping All intact for API backward compatibility
- Updated getJobs to parse ?page query param and return JobRowsData
- Updated HTML templates to support HTMX outerHTML replacements with out-of-band updates

* fix: resolve pagination bugs and add tests for #86

* fix: remove HTMX load loop, stray files, add trigger regression test (#86)

- index.html: initial tbody uses hx-trigger='load' only (fires once)
- job_rows.html: returned tbody uses hx-trigger='every 10s' only (no load)
  This eliminates the outerHTML reload loop where the inserted element
  immediately fires 'load' again before the 10s timer.
- Remove pr_body.md and results.csv (local artifacts, not part of #86)
- Add TestGetJobsHTMXTriggerIsPollingOnly to assert the fix is permanent
- Service.All remains unchanged for existing callers

* fix: address pagination review feedback

Co-authored-by: Giorgos Komninos <admin@gkomninos.com>

---------

Co-authored-by: Giorgos Komninos <admin@gkomninos.com>
2026-09-13 11:27:34 +03:00
..