Commit Graph

4 Commits

Author SHA1 Message Date
812d38c8f1 adds 2026-02-08 14:20:18 +01:00
2dfe0a48ea fix(pagination): update URL on pagination and search
This commit addresses two issues with pagination and search:

1.  **Pagination URL Update**: Added `hx-push-url` to pagination buttons in the customer, order, and invoice list templates. This ensures the browser URL and history are updated when navigating pages via HTMX. The query parameters for `status` and `search` are now conditionally included, preventing empty parameters (e.g., `&status=`) in the URL.

2.  **Search URL Reset**: Updated the `CustomerList` handler to send the `HX-Push-Url` header when performing a search via HTMX. This ensures that when a search is executed (or cleared), the URL correctly reflects the new state (reseting the page to 1), fixing a mismatch where the URL could show page 4 while the content was reset to page 1.
2026-02-07 10:19:32 +01:00
aa3b63095c adds pagination 2026-02-07 07:47:20 +01:00
5530cfcdfd inital commit 2026-02-06 17:35:29 +01:00