feat(admin): parks pages — details, gates, products & fees, photos (#45, PR 2) #143
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/kws!143
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/admin-parks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR 2 of #45 (admin catalogue): the parks pages.
Design:
docs/superpowers/specs/2026-11-02-admin-catalogue-design.md· Plan:docs/superpowers/plans/2026-11-02-admin-parks.mdWhat changes
API
ParkProductgainsseat_pool_id(nullable uuid) in the Go struct, the store select and OpenAPI. It is additive and admin-only, becauseListParkProductsserves only the admin route. The seat-pool select needs it to show the current pool.Admin portal (
web/apps/admin/src/parks/, alladmin_portal.administration.manage)groupfield onMenuEntry), holding Parks./parks: name, code and active columns, with name search and an active filter. Filtering happens in the browser because the admin list is unpaginated; there is ashortcut:comment for it./parks/new: opens the created park./parks/:id?tab=...:@kws/uiMarkdown). The form also has park categories (it always sends the full list) and active. Remove asks first./v1/media/{id}; a park that is not active shows its description instead of a thumbnail.detailis never shown.@kws/uigainsTextArea, a small sharedConfirmRemoveis added, andCLAUDE.mdgets a layout line.Verification
make cover: 91.6 % total (minimum 80 %).make lint: 0 issues.make contract: ok. Clients regenerated (TypeScript and Dart).scripts/web-e2e.sh: ticket 207, admin 116. The admin count includes a new parks journey at 320, 768 and 1280 px, with axe checks on the list and every tab.<script>stays text.Decisions (differences from the design)
price_overlapproblem code: the page compares the fixed detail, asRateFormdoes. If the server text is reworded, an overlap would read as "someone else changed this"; a test pins the text.YYYY-MM-DD, because the kit has no date input.Known and deferred
TextAreahas no test of its own.LoadErrorfollow-up).🤖 Generated with Claude Code