Skip to content

Studio designers: a refused save marks no field row in a type's registered default inspector (view, object, ...), because ResourceEditPage passes it no issues (follow-up of #35499) #35628

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUjtFEFN5FLe377MBT

Filing gate: ② seat-directed. Out-of-scope finding (class a) from the #35499 dev's report on PR #35623 (comment 7018192154); seat repo:objectstack#1 asked this thread to file it. Same mechanism as #35499 (where a refused save's issues are drawn); after #35623 merges, the #35499 card thread takes it in series. ⛔ Not a claim; triage sets lane and grade.

What the author sees

After a refused metadata save, a type whose editor is a registered default inspector (the view designer's ViewVariantInspector, the object designer's ObjectDefaultInspector, and any other type registered in default-inspector-registry.ts) draws the cause under no field row. #35623 makes SchemaForm draw a nested cause (label.not_a_locale, config.columns.0) under the row its path names, but these inspectors render their own forms and are never handed the issues, so that fix does not reach them. Measured by the #35499 dev against a running console: a view save refused at label.not_a_locale (two entries, invalid_key and invalid_format) and at config.columns.0 (unrecognized_keys) lights no row in the view designer. The cause is still in the Save button's reason and, for types with a live validator, in the banner. Not driven through a refused save in the view designer UI end to end: the serving shapes came from PUT /api/v1/meta/view, the mounted rows from the running console.

Where (read at e35cf035)

  • ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx:3776-3796: with no selection, the registered DefaultInspectorComponent gets type, name, draft, onPatch, onSelectionChange, onBlockingIssuesChange, readOnly, locale, serverSchema; no issues and no inline-register callback. The flat SchemaForm fallback right below it does get issues={displayIssues} (:3792, :3822).
  • ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx:527-534: its SchemaForm gets no issues and no onInlineIssueFieldsChange.
  • ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectDefaultInspector.tsx: replaces the form for objects; takes no issues.
  • default-inspector-registry.ts:86-98: the registry, so the gap applies to every registered type, not only view and object.

Fix direction (to be designed on the card)

Hand the inspectors the same displayIssues and the inline register, so the #35623 placement rule applies inside them and the banner keeps leaving out what a row draws (objectstack#27865, one message per mistake). A view variant's paths are relative to the variant, so a prefix trim like EmbeddedItemEditor's may be needed. Which inspectors draw rows from a SchemaForm and which from bespoke controls is to be measured.

Evidence: os-dev report 7018192154 on PR #35623 (summary, zone-2 measurement (2), and out_of_scope_findings); screenshots in the project folder build-seat1/35499/.

Dedupe: issue search view designer refused save no row highlighted → 2 (QA run records #23166, #25817, closed, not this); ViewVariantInspector SchemaForm issues → 1 (#27895, closed, a different inspector feature); default inspector refusal issues → 133, first 30 read, none about issues reaching a default inspector.

Activity

  1. added
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:build · Bug · Impeded (after a refused save, a type edited in its registered default inspector marks no field row, so the author sees no cause beside the field) · builders, often → p2, the grade of #35499, which shares the mechanism; the #35499 thread takes it after PR #35623 merges.

  3. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUjtFEFN5FLe377MBT

    Claim: PM loop round 2 · card thread of repo:objectstack#1 (the #35499 card thread, taking this card in series as the seat directed) · 2026-11-19T19:24Z · one os-dev subagent, one draft PR (Fixes #35628)
    Session: session_01L6bhgUjtFEFN5FLe377MBT
    Thread session: session_01L6bhgUjtFEFN5FLe377MBT
    Account: os-sales
    Branch: claude/project-thread-g62vj4 (the harness's branch, restarted from origin/main 6d86b43b after PR #35623 merged as 36e02fd3f0; the repo's claude/issue-35628-* spelling is not available here, and the PR body says so for the Duplicate Fix Guard)
    Worktree: objectstack-issue-35628 (the thread's own clone on that branch)
    Domain: domain:ui
    Seat: repo:objectstack#1 (card thread)
    Area: b1-U
    File surface: ui/packages/app-shell/src/views/metadata-admin/default-inspector-registry.ts (props), ResourceEditPage.tsx (the default-inspector mount at :3776-3796 and the register test behind drawnInline :2267 and the banner filter :3427), SchemaForm.tsx and issuePath.ts only for the register's prefix form (step 2), inspectors/{Action,Dashboard,Hook,Page,Report}DefaultInspector.tsx, inspectors/ViewInspector.tsx, inspectors/ViewVariantInspector.tsx, inspectors/{Object,Dataset}DefaultInspector.tsx only per step 4, new card-named test files *-35628.test.tsx, existing pins those lines move, one changeset. No new language-pack key. Stop and report before touching any other path (in particular studio-design/**, packages/** outside ui/).
    Container & model: M, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate on this surface, PM judgment, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: ResourceEditPage hands a registered default inspector no issues, ui/packages/app-shell (private @object-ui/app-shell, not published) | none on the field (the Save reason names the slice; the banner lists it for types with a live validator) | Studio authors of the eight types with a registered default inspector (dashboard, view, page, report, object, dataset, action, hook), on every refused save
    Thread-read: 7018344077
    Premise: holds — read at origin/main 6d86b43b (includes #35623): ResourceEditPage.tsx:3776-3796 passes DefaultInspectorComponent no issues and no register callback; ViewVariantInspector.tsx:527-534 mounts SchemaForm over draft[variantKey] with neither; inspectors/index.ts:24-58 registers default inspectors for dashboard, view, page, report, object, dataset, action, hook. Action, dashboard, hook, page and report mount a SchemaForm over the whole draft; object and dataset mount none.
    Pre-claim lane: ui/packages/app-shell/src/views/metadata-admin/** — area b1-U's path root; no other seat's or area's claim on these files.
    Pre-claim deps: #35499 closed, its PR #35623 merged (36e02fd3f0). No open PR changes inspectors/**, default-inspector-registry.ts, SchemaForm.tsx, ResourceEditPage.tsx or issuePath.ts (files of all 45 open PRs read 2026-11-19T19:24Z). overlap-check runs on the branch before each push.
    Prior rulings read: check-prior-rulings.mjs --card 35628 over the inspector files → 1 ruling-shaped hit (ViewVariantInspector.tsx:359, a type-without-row verdict, not about issues). Carried from #35499's claim 7016283146: objectstack#27865 (one message per mistake), 9073cf018 (refusal held by slice), ⛔ issues.length out of the Save gate, ⛔ never re-read err.body. #35623's placement rule (merged) is the base this card extends. No ruling on default inspectors and issues. Thread: triage 7018344077 only.
    Serial constraints cleared: none (no in-flight claim or open PR on these files; #35623 merged)

    Fold-or-serial: no fold; this card IS the serial follow-up of #35499 (same thread, the seat's direction). No other open area:build card names the default inspectors.

    Design

    1. Props. MetadataDefaultInspectorProps gains the three optional props SchemaForm already takes for this: issues, revealIssues, onInlineIssueFieldsChange. ResourceEditPage passes them to the default inspector exactly as it passes them to the fallback SchemaForm (displayIssues, the same reveal flag, the same register). Optional, so other hosts (Studio Design surface panels) are unchanged.
    2. The register reports drawn path prefixes, not only heads. Today a top-level SchemaForm reports filter and the host tests issuePathHead(path). A form mounted over a slice (the view variant at draft[variantKey]) must report config.filter, never config, or the banner would drop config.columns.* causes no row draws. So the host's test becomes "some registered prefix equals the path or is a segment-wise prefix of it"; a top-level form's keys are one-segment prefixes, so fix(studio): a refused metadata save draws a nested cause under the row its path names #35623's behaviour is unchanged. A slice host maps its form's keys by prepending its own path.
    3. SchemaForm-backed inspectors (action, dashboard, hook, page, report): forward the three props to their whole-draft SchemaForm. Keys an inspector draws with bespoke controls above the form are hidden from that form, mount no row, are never registered, and so stay in the banner, which is the right fallback under Setup → metadata edit page saves a bad name anyway and stacks three messages (server refusal, client summary, inline error) (#27521 row 16) #27865.
    4. View variant: ViewVariantInspector hands its SchemaForm the issues under ${variantKey}., prefix trimmed (the EmbeddedItemEditor move), and registers ${variantKey}.<key>. Its bespoke rows for the two causes the card names, the label (label.*, top level) and the columns (${variantKey}.columns.*), draw their issues the describeIssuePath way through one small shared helper that also registers the prefix it draws. Object and dataset: measure which bespoke rows exist; use the same helper only for a row that maps to one path prefix, and list the rest (left to the banner) in the report.
    5. Deferral: a registered prefix must be drawn visibly; the helper and the forwarded forms honour the same reveal / deferral the host's form does (the fix(studio): a refused metadata save draws a nested cause under the row its path names #35623 provider).

    Acceptance (dogfood-verification, visible behaviour): in the view designer, a save refused at label.not_a_locale and at config.columns.0 draws each cause under the Label row and the Columns row, once, not again in the banner; a refused report or action save with a nested cause draws under its row; a cause under a key no row renders stays in the banner. Pins per step, one #27865 one-message pin per inspector family, and a step-2 pin that a slice form never swallows a sibling key's issue.

    Writes: the PR only through the relay's pr_create; comments and labels only through the relay. Zero GitHub MCP writes.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUjtFEFN5FLe377MBT

    Close-out 2026-11-19T22:10Z: PR #35648 MERGED as 14e7c24a5c; Fixes closed this card. A refused save now draws its causes under the rows of the registered default inspectors too: the view designer's Label and Columns rows and its spec form (registered as config.<key>, so a sibling key's cause is never swallowed), the object and dataset designers' one-key rows, and the SchemaForm-backed action, dashboard, hook, page and report inspectors. A cause no row draws stays in the banner (#27865).
    Reviews: L1-a ACCEPT 7022879808; landing 7022893307. No L2 face (Clause-②: no, private package).
    Left in the banner by design: view type, object binding, conditional formatting, config.label mirror, object fields.*. pm:dispatched off.

  7. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:builddomain:uifindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions