Repository navigation
feat(studio): pick an object list view from the Interfaces header title, and keep it in the address - #30175
Merged
objectstack-fleet[bot] merged 8 commits intoNov 5, 2026
Conversation
Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
…bjectstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
… in the address (objectstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
… Data folds to its glyph (objectstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
…ctstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
…jectstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 4, 2026
…ad (objectstack#30046) Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:ui#2 · os-justin · session_01QSeKYnE9YNkSZen7sijLA3 维护者速读
席位意见:ACCEPT( 席位核对
|
objectstack-fleet
Bot
deleted the
claude/issue-30046-studio-view-dropdown
branch
November 5, 2026 01:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #30046 — this PR ships Scope 1–5. Scope 6–8 (fold the
surface=view:page into this one, the 不在导航中 → 视图 filter, readable form-view names and their 视图类型) are left for a decision: see the size reading in Acceptance notes.Clause-②: no
Metadata-protocol: none
维护者速读
?view=。ui/packages/app-shell)与 studio 文案;不改 spec、不改服务端、不改元数据。运行态列表的下拉只多了「📌 可省略」一项,运行态照传,行为不变。回滚即 revert 本 PR。ObjectListViewTitle.tsx(新标题与新建视图)、ObjectListViewInspector.tsx中useObjectListViewDraft的initialView一段(链接带来的视图何时生效、何时失效)、StudioItemHeader.tsx的readableTitleWidth(组合标题声明可读宽度)。pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/StudioDesignSurface.listViewSwitch-27896.test.tsx,预期 10 passed;或在 Studio 打开 CRM 的「商机」,标题下拉选「商机看板」,地址出现&view=crm_opportunity.pipeline,刷新后仍是看板。What changes
objectentry's header reads object / view ▾. The view part is the running list's ownObjectViewTitleSwitcher, fed the object's list views (the mergedlistViewsplus this package's drafts, as the panel picker listed them): rows by label, a search box, and New view, which opens the existing Create View dialog. Studio hands it no ☆, no 📌, no recent views and no Save as my view. It shows when the object has one list view too, so New view stays reachable. On a read-only package it switches views and offers no New view (canCreate = !readOnly, as the panel's Add view was gated). New fileObjectListViewTitle.tsx; the create path (createView, the taken-name toast) moved there unchanged.listViewNameOf: the servedlistViewslabel first, else the item's own), so the CRM kanban's panel reads 商机看板 like the switcher, not the rawPipeline (Kanban). A label-less view is "Default view" or its key; the object's name moved to the header's prefix.?surface=object:OBJECT&nav=NAV&view=OBJECT.KEY, written only while a view other than the entry's own is open.useSurfaceDeepLinkis split into its capture and mirror halves (the composed hook is unchanged for the other pillars), so the Interfaces pillar writes the leaf and its view in one replace.useObjectListViewDrafttakesinitialView: shown once the linked leaf opens, dropped as soon as another leaf opens or the author picks a view, and taken only for a view of the open object. A pending edit is still sent before the switch (switchListView, unchanged), and a held edit still asks.ObjectViewTitleSwitcher: the pin is optional.pinnedViewId,onPinnedViewChangeandrecentViewIdsmay be left out; withoutonPinnedViewChangeno row draws 📌 and no Pinned section shows. The running list passes all three, so its behaviour is unchanged (its existing pins stay green, and a new pin holds both directions).Op… / Pipeline (K…with room to spare in the labelled actions. The title now declares its whole width (data-studio-title-readable, read byreadableTitleWidth) and carries a zero-height sizer whose text is a pseudo-element (no reader or tooltip reads it twice), and "Open in Data" folds to its glyph like the other labelled actions. Order on a narrow row: chips and tools fold, then the object prefix truncates (down to 1.5em), then the view name, with its whole text in the trigger's tooltip.@object-ui/i18nstudio namespace): addsengine.studio.inspector.listView.defaultView; removesdefaultTitle,namedTitle,addView,backToEntry,switchView,switchViewDraft, which only the removed panel controls read. The switcher's own words (搜索视图, 新建视图) are the console's existingview.*keys.Tests
All on head
ba9af0941.Affected suites: 140 files, 1843 passed
pnpm --dir ui exec vitest run --maxWorkers=2over every studio-design test that reads the Interfaces header, the list-view panel or the deep link (40 files), the switcher's own tests and the running list's switcher pins (objectViewTitleSwitcher.test.tsx,objectViewTitleSwitcher.phoneWidth-29074,ObjectView.titleViewSwitcher-27594,ObjectView.starredView-27594,ObjectView.personalViews-29635) andpackages/i18n/:Test Files 140 passed (140) · Tests 1843 passed | 13 skipped. Typecheck:pnpm --filter @object-ui/app-shell type-checkexit 0 (both programs).New and rewritten pins
StudioDesignSurface.listViewSwitch-27896.test.tsx(rewritten onto the header switcher, 10 tests): the switcher lists all three views by label, the panel title is the same name, no ☆ / 📌 / recent / Save as my view, New view and search present; the panel holds no picker, Add view or Back; a drafted view's edit saves to that view; a pending edit is sent before the switch with no prompt; a held edit asks, declined stays, accepted switches; one list view still shows the switcher with New view; a read-only package switches and offers no New view; a pick writes?view=and the entry's view writes none; a link carryingviewopens that view (a drafted one); CONTROL: a link naming another object's view is not taken.ObjectListViewInspector.addView-27836.test.tsx: New view from the switcher creates the kanban and the calendar, refuses a taken name; the switcher lists the new view and picking the entry's view shows it again.objectViewTitleSwitcher.test.tsx: new top-level describe — without the pin door no row draws 📌 and a handed pinned id draws no Pinned section; a row still switches.useSurfaceDeepLink.test.ts:viewparses besidesurfaceandnav, back-compat without it,viewalone names nothing.ObjectListViewInspector.displayTitle-13151,StudioDesignSurface.listViewInspector-11823,InterfacesPillar.customize-28562: expectations moved to the view-only title and to the switcher's New view.Ablations (one per changed behaviour, restored and proven by blob hash)
Through
scripts/ablation-replace.mjs; the suites importsrcdirectly, so no build sits in the path.nullfor the view:a pick writes ?view=anda link carrying the viewgo red (2 failed / 8 passed); restored blobb26a265eff49== HEAD,git diff HEADempty, 10/10 again.initialView: null:a link carrying the viewgoes red (1 failed / 9 passed); restored == HEAD.no row draws 📌goes red (1 failed / 14 passed); restored == HEAD.The first run of the mirror ablation turned only one pin red: the link pin read the address before the mirror's write landed. The pin now waits for the writes to land, and the re-run turned both red.
Acceptance notes
surface=view:for a list view to the object page, including for an object no nav entry opens. Scope 7 is the 不在导航中 filter (a draft header carries no body, so the view's kind and object are known only from published rows or the name). Scope 8 is readable form-view names, a heading that says what remains, and the form 视图类型. Together they are an estimated 600–800 more lines with their pins. Also, the 视图类型 fix lives inmetadata-admin/inspectors/ViewVariantInspector.tsx(its type options come from the list-variant enum, so a form'ssimplereads 未找到), which is outside this claim's file surface.Pipeline (Kanban)/ 商机看板) whole with the object prefix cut.viewNameopensOBJECT.defaulteven when the package drafts anisDefaultview, because the entry's view is resolved from the shell's mergedlistViewsonly. The switcher therefore lists "Default view" beside the drafted default, and Create View seeds no columns there. Both behaved the same with the old panel picker. Reported to the seat.Verification
Browser, latest
main+ this branch, isolated stack (CRM--freshbackend on its own port, Console dev server pointed at it, Chromium from/opt/pw-browsers). The screenshots are in the session's scratchpad. They are not attached here because the relay carries no uploads.Read-only package (com.example.crm), en and zh, 1280 and 1024
商机 / 全部商机 ▾; the dropdown lists 全部商机, 商机看板; picking 商机看板 writes&view=crm_opportunity.pipeline; reload keeps it; the panel title reads 商机看板.Opportunities / Pipeline (Kanban) ▾, both whole (title 315 px).Op… / Pipeline (Kanban) ▾, view name whole (label 151 px, not cut).商机 / 商机看板 ▾, both whole.Writable package (a fresh package with one object entry)
&view=…open_opportunities_this_quarter, the panel and the title show it.a pending edit is sent to its own view before the switch, and nothing asks.Local gates (on ba9af09)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 35 families; each was run and exited 0,pnpm check:type-check-debtincluded (0 raw tsc error(s) total) andpnpm --dir ui exec vitest run scripts/(172 files, 4985 passed).--ranreconciliation:35 derived, 35 run, 0 NOT-MEASURED, 0 UNRUN.node scripts/check-sdui-manifest.mjsexit 0;pnpm --dir ui run check:new-line-citations:0 new citation(s);node scripts/check-platform-checklist.mjs --changed-from origin/mainexit 0; eslint over the changed files: 0 errors. Repo-wide scans and the full UI test battery are CI's.Generated by Claude Code