feat(showcase): per-line Receipt attachment on invoice lines (upload-in-grid demo)#3051
Merged
Merged
Conversation
…in-grid demo) Adds a `receipt: Field.file()` to showcase_invoice_line so the showcase exercises objectui#2360 end-to-end: the inline line-item grid auto-derives an upload column and renders a compact picker per row (the "attach the receipt to each expense line" pattern). Verified in-browser against this example: upload → save via /api/v1/batch → value persists with a canonical /api/v1/storage/files/<id> URL → reopening the form renders the stored chip. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H5tsBSEhsDZmdcHBvfymYC
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
os-zhuang
marked this pull request as ready for review
July 16, 2026 12:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to objectstack-ai/objectui#2585 (fixes objectstack-ai/objectui#2360).
Adds
receipt: Field.file({ label: 'Receipt' })toshowcase_invoice_line, so the showcase's canonical master-detail inline grid (inlineEdit: 'grid') demonstrates and continuously exercises file upload in a line-item grid — the "attach the receipt to each expense line" pattern the issue came from.Dogfood verification (browser, this example)
Booted this example fresh (
objectstack dev --seed-admin --fresh -p 4010) with the objectui console dev server (VITE_SERVER_URL/DEV_PROXY_TARGET→ :4010) and drove it with Playwright as admin:input[type=file]+ compact upload button — no text-input degradation.createObjectStackUploadAdapterand shows a removable chip./api/v1/batch; the line persistsreceiptwith a canonical/api/v1/storage/files/<fileId>URL (verified via the data API, and the URL round-trips the uploaded bytes).pnpm validatepasses for the example.🤖 Generated with Claude Code
https://claude.ai/code/session_01H5tsBSEhsDZmdcHBvfymYC
Generated by Claude Code