Skip to content

feat(spec): inlineEdit on relationship fields — declarative master-detail#1615

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

feat(spec): inlineEdit on relationship fields — declarative master-detail#1615
xuyushun441-sys merged 1 commit into
mainfrom
feat/relationship-inline-edit

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Summary

Lets a relationship declare master-detail inline editing in the data model, so the parent's standard form auto-renders it — answering "why not define inline editing at the object/relationship level instead of per-form?"

A master_detail/lookup field can set inlineEdit: true (+ optional inlineTitle/inlineColumns/inlineAmountField):

// the whole declaration — on the relationship, once:
project: Field.masterDetail('showcase_project', { inlineEdit: true, inlineTitle: 'Tasks' })

→ every standard New/Edit Project form renders an atomic master-detail (project fields + inline Tasks grid). No form view config, no bespoke page. The objectui metadata layer derives the subforms from this (PR pairs with objectui).

  • master_detail children without inlineEdit are NOT inlined → associations (comments/attachments) stay out of the entry form.
  • An explicit form.subforms overrides the derived one.

Showcase: showcase_task.project sets inlineEdit; the project view's explicit subforms is removed (now derived from the relationship).

Spec field suite: 6647 pass. Live-verified end-to-end via objectui's e2e.

🤖 Generated with Claude Code

Field.inlineEdit (+ inlineTitle/inlineColumns/inlineAmountField) on
master_detail/lookup fields declares "edit these children inline within the
parent form" — the parent's standard form then auto-renders an atomic
master-detail form (objectui derives the UI). showcase: showcase_task.project
sets inlineEdit so New/Edit Project auto-shows a Tasks subtable; the
project view's explicit subforms are dropped (now derived).

spec field tests 6647 pass.

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

vercel Bot commented Jun 6, 2026

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

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 6, 2026 12:57pm

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:data tooling size/s labels Jun 6, 2026
@xuyushun441-sys xuyushun441-sys merged commit 5cf1f1b into main Jun 6, 2026
10 of 11 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/relationship-inline-edit branch June 6, 2026 12:58
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 tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants