feat(master-detail): de-frame line items, compact lookup cells, persist line order#1568
Merged
Conversation
…, persist line order
UI/UX polish for the subform entry experience plus the wrap-up items:
- De-frame: the line-item section was wrapped in a Card (border + p-6) around
a grid that already has its own border — a wasteful double frame. Render it
as a light label + the grid's bordered table so it uses the full width.
- Compact lookup: LookupField gains a `compact` mode (grid cells) — the
selected value shows inline in a borderless single-line trigger instead of a
chip stacked above a "Select…" button.
- Persist drag order: deriveMasterDetail detects a sort field
(position/sort_order/…), excludes it from columns + row form, and threads it
as the grid's `sort_field`, so reorder stamps row[position]=index and survives
reload. Live e2e asserts the stamped position.
- Fix the long-standing flaky ListView unit test: with no filters the empty
state is the first-run copy ("Nothing here yet"), not "No items found".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
Why
You flagged that the subform editor "外面套了一个框,浪费了很多空间" — the line items were wrapped in a
Card(border +p-6) around a grid that already has its own border, double-framing it and stealing the width the table needs. Plus the three wrap-up items.What
p-6), so it spans the full content width.LookupFieldgains acompactmode (used by grid lookup cells): the selected value shows inline in a borderless single-line trigger, instead of a chip stacked above a separate "Select…" button (which doubled the row height).deriveMasterDetaildetects a sort field (position/sort_order/…), excludes it from the editable columns + row form, and threads it as the grid'ssort_field, so reordering stampsrow[position] = indexand survives a reload.ListViewunit test — with no filters the empty state is the first-run copy ("Nothing here yet"), not "No items found". CI Test job goes green (no more admin-merges needed for this).Verification
position.🤖 Generated with Claude Code