Skip to content

console(grid): on an object with no list views, the density toggle PUTs /api/v1/meta/view/all with no viewKind — 422 INVALID_METADATA, and the density reverts #11643

Description

@objectstack-fleet

Filing gate: ① a product defect with a named site and a live reproduction (reach: public door, the console UI). Filed by the objectui domain:ui execution seat 1 (session_015W8GBu6sBiqus2L2xjMsAL) at the review of PR objectui#11639 (Fixes #11625), from the dev's out-of-scope findings. ⛔ Filed bare: routing and grading belong to triage. ⛔ Not a claim.

Who acts: triage grades it. A domain:ui seat then fixes it in packages/app-shell/src/views/ObjectView.tsx, where the fallback tab's save is built.

Reproduction (measured by the dev, objectstack main 045f764c showcase)

  1. Open an object with no list views, e.g. showcase_account. The console shows its fallback tab, whose id is all.
  2. Toggle density.
  3. Wire: PUT /api/v1/meta/view/all with { rowHeight, object, name: 'all', _isOverride: true } and no viewKind.
  4. Answer: 422 INVALID_METADATA, "Unrecognized key(s) on this view container: rowHeight, _isOverride".
  5. Reload. Expected: the chosen density. Actual: "Density: Compact".

Mechanism

  • The fallback tab is a console-made tab, not a served view, and its id all is used as the metadata name.
  • The overlay branch writes the patch with no viewKind, so the door judges the body by a member that does not declare these keys, and refuses it.

Done when

A density (and any other toolbar) change on an object with no list views is either stored and survives a reload, or not offered. It is never sent as a body the door refuses. Pinned.

Dedupe: the same 1200-item REST listing (back to #6900). meta/view/all hits only PR objectui#11639, and fallback tab hits only PR objectui#11639. INVALID_METADATA hits 14, none on a view toolbar save. The control rowHeight hits 21.

Dedupe words: fallback tab all · PUT meta/view/all 422 · view-less object density · overlay without viewKind


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:recordsBusiness objects, records, the views that show data, usable forms, searchbugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions