Skip to content

feat(showcase): Product catalog + invoice line product lookup with auto-fill#1639

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-product-catalog
Jun 7, 2026
Merged

feat(showcase): Product catalog + invoice line product lookup with auto-fill#1639
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-product-catalog

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Why

Completes the line-item editor story: the invoice line's Product should be a catalog typeahead that auto-fills the line (description, unit price) — not free text.

What

  • New showcase_product price-book object: name, sku, description, unit_price, active. Seeded with a few items (Widget A/B, Gadget X, Consulting Hour). Added a Products nav entry.
  • Rewired showcase_invoice_line.product from textlookup('showcase_product'), and added a description line field.
  • Picking a product in the line-item grid auto-fills the line's description + unit_price (the objectui grid copies same-named fields from the chosen record); amount = quantity × unit_price then recomputes live and persists, so the parent Invoice.total rolls it up.

Verification

  • Backend serves showcase_product and showcase_invoice_line.product as a lookup → showcase_product; products seeded.
  • Live e2e (objectui): New Invoice → pick Widget A → unit_price 29.99 + description auto-fill → Qty 2 → Amount 59.98 → persisted in the atomic batch.

Pairs with objectui (item-typeahead auto-fill in GridField).

🤖 Generated with Claude Code

…to-fill

Add a small showcase_product price-book (name, sku, description, unit_price,
active) with seeded items, and a Products nav entry. Rewire the invoice line's
`product` from free text to a lookup → showcase_product. Picking a product in
the line-item grid auto-fills the line's description + unit_price (the grid
copies same-named fields from the chosen record) — the catalog typeahead every
invoicing tool has. Amount (= quantity × unit_price) then recomputes live.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 7, 2026 8:01am

Request Review

@github-actions github-actions Bot added the size/s label Jun 7, 2026
@xuyushun441-sys xuyushun441-sys merged commit ae1dba2 into main Jun 7, 2026
11 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/showcase-product-catalog branch June 7, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants