feat(api): catalog products, park-products and price windows (#17, part 1) #82
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!82
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/catalog-products"
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?
Part 1 of #17 (does not close it: the shop price lookup is part 2).
What
Products, the products each park sells, and their price windows, as admin CRUD.
products,park_products,park_product_prices.products.form_idhas no foreign key until forms exist (#19).catalog.ProductHandler, all/v1/admin/...,admin_portal.administration.manage): products CRUD with filters and versioned soft delete; park products (create, list per park, update order/active); prices (create, list, update). Optimistic locking everywhere, overlap is a 409, prices travel as decimal strings (a JSON number is rejected), removed products drop out of lists.Standards review (docs/development-standards.md)
ProductStore,ParkProductStore,PriceStore);ProductHandlertakes them separately; shared plumbing reused (rest,pgrest), nothing duplicated.make lint0 issues.mainafter the last merge. The standards doc now says so.Known limits
Next (part 2, closes #17)
The shop lookup in a new
pricingpackage: price for a visit day in the chosen currency, converted at the admin rate valid that day, "not available in " otherwise (ADR 0004).🤖 Generated with Claude Code