Repository navigation
Description
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.
ui/packages/app-shell/src/views/objectViewListRenderer.tsx:787:columnState: viewPref?.columnState ?? (viewDef as any).columnState ?? (listSchema as any).columnState ?? {}. The twoas anyrungs read the retired view key and are alwaysundefinednow. Drop them and keepviewPref?.columnState ?? {}. (看板的「视图设置」换成看板自己的项:分列字段、显示哪几列、卡片字段和三个开关、列底统计;每列加「⋯」菜单 #36370 also edits this file: land after it, or rebase onto it.)ui/packages/data-objectstack/src/index.ts:3349:'columnState'inVIEW_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, thecolumnState's admission … runtime-only overlay key sentence), plus the same list in the comments at 3227 and 6468, andVIEW_ITEM_ROUND_TRIP_KEYSin the comment at 6503.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 fromVIEW_CONSOLE_ROUND_TRIP_KEYS, so the envelope no longer carries it. Update the text, and the list at line 233.- Any pin that still names the key as an overlay-owned key (
VIEW_OVERLAY_OWNED_KEYStests indata-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.tsfinds only the reader's own layout (viewPref?.columnState) and the grid prop.Type Check UIand thedata-objectstack/app-shellview 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
objectstack-fleet commentedon Nov 22, 2026
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 viewcolumnStatekey after #36403 → p3 as filed · size XS.fix(spec)!: retire columnState from the stored view row (objectstack-…