Skip to content

feat(spec): inlineEdit form factor — boolean | 'grid' | 'form'#1636

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/inline-edit-mode
Jun 7, 2026
Merged

feat(spec): inlineEdit form factor — boolean | 'grid' | 'form'#1636
xuyushun441-sys merged 1 commit into
mainfrom
feat/inline-edit-mode

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Summary

Master-detail inline editing now selects the entry form factor, not just on/off.

field.inlineEdit accepts:

  • truesmart default: pick grid/form from the child's shape (rich types or >~8 fields → form, else grid)
  • 'grid' → editable line-item grid (fast bulk entry; thin children)
  • 'form' → read-only list; Add / per-row edit opens the child's full form (fat children — long text, attachments, many fields)

Changes

  • packages/spec/src/data/field.zod.ts: inlineEdit widened to boolean | enum('grid','form') (true stays valid). Spec rebuilt; field tests 6647 ✓.
  • examples/app-showcase: showcase_task.project pinned to 'grid' to keep the line-item grid demo (smart default would pick form for this fat child).
  • Docs: objectstack-data (Relationships → Inline-edit form factor) + objectstack-ui (Master-Detail Forms).

UI side (resolveInlineMode + grid/list rendering) ships in objectui#feat/inline-edit-mode.

🤖 Generated with Claude Code

Master-detail inline editing now selects the entry form factor, not just
on/off. The relationship's `inlineEdit` accepts:
  - true   → smart default: pick grid/form from the child's shape (rich types
             or >~8 fields → form, else grid)
  - 'grid' → editable line-item grid (fast bulk entry; thin children)
  - 'form' → read-only list; Add / per-row edit opens the child's FULL form
             (fat children with rich types — long text, attachments, many fields)

The UI side (resolveInlineMode + grid/list rendering) lives in objectui.

- spec: `field.inlineEdit` widened to `boolean | enum('grid','form')` (true stays valid).
- showcase: `showcase_task.project` pinned to `'grid'` to keep the line-item
  grid demo (smart default would otherwise pick `form` for this fat child).
- docs: objectstack-data (Relationships → Inline-edit form factor) and
  objectstack-ui (Master-Detail Forms) document the modes + smart default.

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 Building Building Preview, Comment Jun 7, 2026 5:44am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:data size/s labels Jun 7, 2026
@xuyushun441-sys xuyushun441-sys merged commit a2496a6 into main Jun 7, 2026
10 of 11 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/inline-edit-mode branch June 7, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants