feat(admin): Park entry report uses the legacy filters (#47) #150

Merged
amiryahaya merged 3 commits from feat/park-entry-filters into main 2026-11-03 08:08:37 +01:00
Owner

Part of #47. This PR makes /reports/ticket-activities match the legacy Park Entry Report (CheckInTicketReportController) filters as they are, as the owner asked. It is web only, with no API change.

What changes

  • Name: the page and its menu entry are now "Park entry". The route stays /reports/ticket-activities.
  • Check-ins only: the list and the .xlsx export always send kind=checked_in, as the legacy report did.
  • Filters, in legacy order: From/To, Park entry invoice number, Payment method, and Currency.
    • Currency is now a dropdown from the public GET /v1/currencies.
    • A currency in the link that is not listed stays selected and is still sent.
  • Removed: the Kind and Park filters. kind and park_id in an old link are ignored.
  • Unchanged: the table columns, because only the filters were in scope.
  • Differences from legacy that remain: the API requires dates, and the range is at most 366 days.

Verification

  • make cover: 91.6 % total (minimum 80 %). There is no Go change.
  • Admin unit tests: 436 pass, and the typecheck is clean.
  • scripts/web-e2e.sh: ticket 207, admin 140. The e2e journey now mocks the currency list.
  • Pass 1 (ponytail): no must-fix.
  • Pass 2 (correctness): one Important finding, now fixed. After the fields moved into legacy order, Apply with unchanged filters (two or more set) did not ask for fresh rows. A test reproduced it: it failed first, and passes with the fix.
  • Also fixed: the e2e test was stale, and the filter order is now pinned in a test.
  • Pass 1 re-check of the fix: nothing found.
  • Only mocked responses were used; the page has not been tried against the real API.

Deferred minors

  • If the currency list fails to load, nothing says so (the select shows only "Any"). Text typed before the list arrives is cleared when the form is rebuilt. This is the same behaviour as the park list on Sales summary.
  • The Kind column now always reads "checked in". Leave it for a column follow-up.
  • The export file and sheet names still say "ticket activities", because the server sets them.

🤖 Generated with Claude Code

Part of #47. This PR makes `/reports/ticket-activities` match the legacy **Park Entry Report** (`CheckInTicketReportController`) filters as they are, as the owner asked. It is web only, with no API change. ## What changes - **Name:** the page and its menu entry are now "Park entry". The route stays `/reports/ticket-activities`. - **Check-ins only:** the list and the `.xlsx` export always send `kind=checked_in`, as the legacy report did. - **Filters, in legacy order:** From/To, Park entry invoice number, Payment method, and Currency. - Currency is now a dropdown from the public `GET /v1/currencies`. - A currency in the link that is not listed stays selected and is still sent. - **Removed:** the Kind and Park filters. `kind` and `park_id` in an old link are ignored. - **Unchanged:** the table columns, because only the filters were in scope. - **Differences from legacy that remain:** the API requires dates, and the range is at most 366 days. ## Verification - `make cover`: **91.6 %** total (minimum 80 %). There is no Go change. - Admin unit tests: 436 pass, and the typecheck is clean. - `scripts/web-e2e.sh`: ticket 207, admin 140. The e2e journey now mocks the currency list. - **Pass 1 (ponytail):** no must-fix. - **Pass 2 (correctness):** one Important finding, now fixed. After the fields moved into legacy order, Apply with unchanged filters (two or more set) did not ask for fresh rows. A test reproduced it: it failed first, and passes with the fix. - Also fixed: the e2e test was stale, and the filter order is now pinned in a test. - Pass 1 re-check of the fix: nothing found. - Only mocked responses were used; the page has not been tried against the real API. ## Deferred minors - If the currency list fails to load, nothing says so (the select shows only "Any"). Text typed before the list arrives is cleared when the form is rebuilt. This is the same behaviour as the park list on Sales summary. - The Kind column now always reads "checked in". Leave it for a column follow-up. - The export file and sheet names still say "ticket activities", because the server sets them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The ticket activity page now matches the legacy Park Entry report: check-ins
only (kind=checked_in is always sent, list and export), filters dates, park
entry invoice number, payment method and currency, the currency chosen from
the public currency list. The kind and park filters are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(admin): Apply with unchanged Park entry filters asks again (#47)
Some checks failed
ci / changes (pull_request) Successful in 56s
ci / api (pull_request) Has been skipped
ci / clients (pull_request) Has been skipped
ci / ci-gate (pull_request) Successful in 5s
ci / web (pull_request) Failing after 6m54s
16c6e99e21
The form's legacy field order differs from the filter key order, so the
same filters looked changed and no fresh page was asked for. Also pin the
legacy filter order and update the stale e2e journey (currency list mocked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(admin): 15 s test timeout for the slow CI runner (#47)
All checks were successful
ci / changes (pull_request) Successful in 14s
ci / api (pull_request) Has been skipped
ci / clients (pull_request) Has been skipped
ci / web (pull_request) Successful in 8m38s
ci / ci-gate (pull_request) Successful in 3s
19f020d4cc
Different form journeys timed out at the 5 s default on each CI attempt,
none of them in the changed code; they pass locally in about a second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/kws!150
No description provided.