feat(management): store readiness — MCP fields, inventory edit form, add item modal #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/management-store-readiness"
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?
Makes the management app fully capable of managing store catalog items from the UI and MCP. Three independent changes landed on one branch.
Changes
#26 — MCP
create_inventory_item+update_inventory_itemslug,description,images,is_publishedto both tool schemas.is_published: truewithout a slug returns a clear error before touching the DB (respects theinventory_published_slug_checkDB constraint).update_inventory_itempre-fetches the existing slug from the DB before validating the publish guard.#27 — "Toko" tab in inventory details sheet
inventory-edit-form.tsx: fields for slug, description, image URLs (dynamic list with add/remove), and publish toggle (disabled when slug is empty).inventory-details-sheet.tsx; existing Detail and Riwayat tabs untouched.updateInventoryserver action; success toasts + refreshes; error toasts.#28 — Add inventory item modal
add-inventory-modal.tsx: all fields (name, type, prices, initial stock, slug, description, images, publish toggle).stok/page.tsxalongside the existingAdjustmentModal.Verification
tsc --noEmit(management): exit 0 on each branch + integrated branch.pnpm --filter garage build(production Next.js build): exit 0, 11/11 pages.Closes #26
Closes #27
Closes #28
Management: store readiness — MCP fields, edit form, add item modalto feat(management): store readiness — MCP fields, inventory edit form, add item modalView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.