feat(catalog): park text cleanup — drop duplicated fields, light Markdown (#45, PR 1) #142
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!142
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/admin-catalogue"
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 1 of #45 (admin catalogue). It cleans up park text before the admin park pages and the legacy import.
Design:
docs/superpowers/specs/2026-11-02-admin-catalogue-design.md· Plan:docs/superpowers/plans/2026-11-02-park-text-cleanup.mdWhat changes
API
0035_drop_park_duplicate_textdropsparks.park_fees,vehicle_fees,entry_gatesandpayment_method. The site already shows those from prices, vehicle products, the gates table and checkout.downre-adds them as nullabletext, as 0006 created them.catalog.Park/ParkInput, the store SQL and the three park schemas in OpenAPI. Every otherpayment_method(transactions, checkout, reports) is unchanged.Web
Markdownin@kws/ui, a light Markdown subset rendered as React elements, never HTML:**bold**;-and1.lists; a numbered list keeps its first number, and an unindented line ends the list;[label](url)links, forhttp,httpsandmailtoonly. Other schemes show the label as plain text.CLAUDE.md: one line on the rule.Test fixes found on the way
CheckoutPage.test.tsx: the fixture visit date 2026-11-01 expired today (the line rendered as past and hid the price). Moved to 2099.media_schema_test.go: the hard-coded rollback count went from 5 to 6 for the new migration.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 113 passed. This ran before the last renderer fix, which changes onlyMarkdown.tsxand its tests.<b>,<script>and ajavascript:link showed as plain text.Known and deferred
[. Staff-only text, no length cap yet.🤖 Generated with Claude Code