Skip to content

Remove the console's leftover reads of the retired view columnState key (after #36403) #36445

Open

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jT24Rn8qK81aEFebXj

Follow-up from #36403 (PR #36435). Found by the dev's census and the L1 on PR #36435 (L1 7078961706). Parent: #36403.

What is left

PR #36435 retires columnState from the stored view row: a stored row is served without it, and a save that carries it is refused. The console never needed an edit to keep working, because every reader below now reads undefined. But four places in ui/ still read or describe it as a live view key. One of them is hidden behind as any, so no gate will find it again.

  1. ui/packages/app-shell/src/views/objectViewListRenderer.tsx:787: columnState: viewPref?.columnState ?? (viewDef as any).columnState ?? (listSchema as any).columnState ?? {}. The two as any rungs read the retired view key and are always undefined now. Drop them and keep viewPref?.columnState ?? {}. (看板的「视图设置」换成看板自己的项:分列字段、显示哪几列、卡片字段和三个开关、列底统计;每列加「⋯」菜单 #36370 also edits this file: land after it, or rebase onto it.)
  2. ui/packages/data-objectstack/src/index.ts:3349: 'columnState' in VIEW_OVERLAY_OWNED_KEYS. A stored overlay row is served without the key, so the entry narrows nothing. Remove it, and fix the docblock above it that describes it as a live key (lines 3301 and 3328, the columnState's admission … runtime-only overlay key sentence), plus the same list in the comments at 3227 and 6468, and VIEW_ITEM_ROUND_TRIP_KEYS in the comment at 6503.
  3. ui/packages/app-shell/src/views/objectViewTabs.ts:502: the docblock names "columnState, the runtime-only key the spec declares on the ViewItem wire face" and "the column widths the row held". The key is gone from VIEW_CONSOLE_ROUND_TRIP_KEYS, so the envelope no longer carries it. Update the text, and the list at line 233.
  4. Any pin that still names the key as an overlay-owned key (VIEW_OVERLAY_OWNED_KEYS tests in data-objectstack).

Not in scope: columnState as the grid's runtime prop (plugin-grid, ObjectGrid, ListView, RelatedList) and in user preferences (personalViews.ts, RecordPagePreferences). Those are a different shape, not the view key.

Acceptance

  • git grep -n columnState ui/packages/app-shell/src/views/objectViewListRenderer.tsx ui/packages/app-shell/src/views/objectViewTabs.ts ui/packages/data-objectstack/src/index.ts finds only the reader's own layout (viewPref?.columnState) and the grid prop.
  • Type Check UI and the data-objectstack / app-shell view tests are green.

Blocked-by: #36435 (the spec retirement must be on main first)

Grade

p3 · area:ux · domain:ui. Dead code and stale comments with no user-visible harm. It is filed so the as any rung does not outlive the key it reads.


Generated by Claude Code

Activity

  1. added
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:build (was ux; it is follow-through of a retired metadata key, not something a user sees) · Task · remove the console's leftover reads of the retired view columnState key after #36403 → p3 as filed · size XS.

  3. added
    pm:queue
    and removed on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:builddomain:uipm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions