Repository navigation
fix(plugin-list): on a phone the list toolbar keeps the view name readable - #33957
Merged
Merged
Conversation
…stays readable Below sm, with a host's leading node, the toolbar row wraps: the left group dissolves into the row, the leading node is sized by its content, and the chips, the queue toggle and the tool cluster move to the next line when they no longer fit beside it. The row's classes move into listToolbarRow.ts so the new Playwright geometry spec reads them by name. Claude-Session: https://claude.ai/code/session_01ADHkmPnhMzygsUcv5uRQYU Co-authored-by: Claude <noreply@anthropic.com>
…fter its anchor too Claude-Session: https://claude.ai/code/session_01ADHkmPnhMzygsUcv5uRQYU Co-authored-by: Claude <noreply@anthropic.com>
…right edge Claude-Session: https://claude.ai/code/session_01ADHkmPnhMzygsUcv5uRQYU Co-authored-by: Claude <noreply@anthropic.com>
…an the phone row Claude-Session: https://claude.ai/code/session_01ADHkmPnhMzygsUcv5uRQYU Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf 席位核对Verdict: ACCEPT · head
|
This was referenced Nov 15, 2026
Contributor
Author
|
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf 落地Landing approved by the maintainer in the seat thread at 2026-11-15T16:10Z ("批准席位 本班复核通过的 PR 执行 --land"). The ACCEPT head
State change: on MERGED, |
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.
Requested by Steve · project thread
Fixes #33833
Clause-②: no
Metadata-protocol: none
维护者速读
plugin-list工具条的max-sm:样式,且仅在宿主传入toolbarLeading(Console 在手机宽度传入视图切换器)时生效;手机上工具条可能多占一行。回滚即还原本 PR。ui/packages/plugin-list/src/listToolbarRow.ts(全部样式常量),ui/packages/plugin-list/src/ListView.tsx(工具条五处 className),ui/e2e/list-toolbar-view-name-phone.spec.ts(几何断言)。What changes
ui/packages/plugin-list/src/listToolbarRow.ts(new): the toolbar row's layout classes as named string constants, with the four phone additions:max-sm:flex-wrap max-sm:gap-x-2 max-sm:gap-y-1;max-sm:contents, so its items (the leading node, the filter chips, the 「In a queue」 toggle) wrap in the row;max-sm:basis-auto, so the view name is sized by its content and anything that no longer fits beside it moves to the next line;max-sm:shrink, so a chip row wider than the phone scrolls inside its ownoverflow-x-autobox;max-sm:ml-auto, so it keeps the right edge on whichever line it lands.ui/packages/plugin-list/src/ListView.tsx: the toolbar's five class strings now come from those constants. The phone additions apply only when a host passestoolbarLeading; without one the rendered class strings are byte-identical tomain(theListView.toolbarLeading-12440pin still reads today's left group).ui/e2e/list-toolbar-view-name-phone.spec.ts(new): a Playwright geometry pin, see Tests..changeset/33833-list-toolbar-view-name-phone.md: patch,@object-ui/plugin-list.No app-shell or plugin-view edit: below
VIEW_TABS_MIN_WIDTH(640) the Console hands the title switcher to the list astoolbarLeading, and the row that starved it is plugin-list's toolbar (claim amendment 6895939370).Why
At 375 px the toolbar row held the view switcher, the filter chips, the 「In a queue」 toggle and four 44 px touch-target icons on one line. Every item except the switcher was
shrink-0, so the switcher'struncatelabel took what was left: 23.28 px of 64 px for 「全部客户」 in the probe, 20.11 px of 85 px for 「All Projects」 in the live Console.Tests
ui/e2e/list-toolbar-view-name-phone.spec.tslays out the toolbar row in Chromium with real Tailwind compiled from the installedtailwindcss. The classes are read from the sources at run time: the row constants by name fromlistToolbarRow.ts, the queue toggle's and Filter button's class strings andPHONE_TOUCH_TARGETfrom plugin-list, the switcher's trigger, outer span and count fromobjectViewTitleSwitcher.tsx, and the phone title wrapper fromObjectView.tsx. A first case checks thatListView.tsxstill reads every constant, so the spec cannot measure classes nobody draws.Local run:
10 passed.Ablations: one per phone class, each through scripts/ablation-replace.mjs, restored to the HEAD blob with git diff HEAD empty
listToolbarRow.tsmax-sm:flex-wrapmax-sm:contentsmax-sm:ml-auto→max-sm:mr-0max-sm:basis-automax-sm:shrink→max-sm:shrink-0The two cases that stay green in A and B are the constants check and the 1280 px control, as they should. No build sits between mutation and run: the spec reads the source text.
Narrowed vitest runs
pnpm --dir ui exec vitest run packages/plugin-list/under the lock: Test Files 173 passed (173), Tests 1856 passed (1856).ListView.*toolbar*/phone*/queue*pins,ViewTabBar.hostWidth-12518,ObjectView.titleViewSwitcher-27594,ObjectView.objectListTitle-27950,ObjectView.chartViewTabs-13114): Test Files 13 passed (13), Tests 86 passed (86).pnpm --filter @object-ui/plugin-list type-check: exit 0.pnpm --dir ui run type-check:e2e: exit 0. eslint on the three touched source files: 0 errors (warnings are pre-existing inListView.tsx).Test UI; app-shell has no edit here.Verification
Real browser, the live Console (
@object-ui/consoledev server on this branch, againstexamples/app-showcasebooted with--seed-admin), Playwright Chromium, 375×812 at deviceScaleFactor 2, then 1280×800:main'sListView.tsx)Screenshots (project files):
ui-seat1/33833-shots/33833-before-showcase_project-375.png,33833-after-showcase_project-375.png, and the task / 1280 px pairs beside them. The before leg putmain'sListView.tsxback under HMR and restored it to the HEAD blob afterwards (git diff HEADempty).Premise on
origin/main895783a in the fixture probe: 「全部客户」 23.28 px of 64 px at 375 px, 64/64 at 1280 px.Gates at head e29b2d2
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 37 families for the 4 changed paths; each ran locally and exited 0 (two under the lock:pnpm --dir ui exec vitest run scripts/171 passed, 2 skipped files;pnpm check:type-check-debt).--ranreconciliation: "37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN".pnpm --dir ui run check:new-line-citations"0 new citation(s)";pnpm --dir ui run type-check:e2eexit 0.Acceptance notes
w-36) was not measured here; it replaces the Search icon in the same cluster, so it wraps with it.Human Minimum
packages/specholds no runtime logic.pnpm lintis CI's run).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code