feat(po): catalogue line items on approval + move /inventory/{items,vendors} ? /catalogue #108
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
epic
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#108
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/catalog-on-approval"
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?
Two related catalogue changes.
1. Register line items in the catalogue on approval (keeps both triggers)
The catalogue sync (
syncProductCatalog— auto-create aProductfor unknown line items, link them, upsert last/per-vendor prices) previously ran only at full payment, so an approved-but-unpaid PO's items weren't in the catalogue for reuse (the staging report:PMS/HOFC/9030/2026-27).syncProductCatalogintolib/product-catalog.ts.approvePonow calls it so approved items are immediately reusable.markPaid) still re-syncs to refresh final prices. (POs approved before this ships still get catalogued when they're paid.) Idempotent.2. Rename routes
/inventory/{items,vendors}→/catalogue/{items,vendors}[id]detail pages) into/catalogue(git-tracked renames, history preserved)./inventory/cartis unchanged.revalidatePathcalls, sidebar nav, CLAUDE.md, and tests; renamedtests/e2e/inventory→tests/e2e/catalogue./inventory/{items,vendors}paths are intentionally left free for a future feature.Verification
tsc --noEmitclean; full integration (264) and unit (272) suites green.🤖 Generated with Claude Code
Renames the product-catalogue pages (items + vendors, incl. their [id] detail pages) out of /inventory into /catalogue. /inventory/cart is unchanged. All internal links, redirects, revalidatePath calls, sidebar nav, and tests are updated; next.config redirects keep old /inventory/{items,vendors}[/...] URLs working (permanent) so existing bookmarks don't 404. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>feat(po): register line items in the product catalogue on approvalto feat(po): catalogue line items on approval + move /inventory/{items,vendors} ? /catalogue- tests/e2e/inventory → tests/e2e/catalogue (folder name only; playwright globs ./tests/e2e so nothing else changes). - remove the next.config redirects from /inventory/{items,vendors}: the old routes are intentionally left free for a future feature. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>