Skip to content

fix(console): call the object designer's folded tabs More, and keep the flow add-node palette inside the window - #39450

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-39409-wip
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-39409-wip

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #39409 — items 3 (object tab overflow reads 更多, not 高级) and 4 (flow node palette no longer clipped) land here. The maintainer ruled items 1 and 2 into their own cards: #39474 (cross-object recycle-bin overview) and #39475 (export on by default).
Refs #39474
Refs #39475

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:管理员在应用搭建里编辑对象时,窄窗口下收起的页签按钮从「高级」改叫「更多」;流程设计器里点「+」加节点的弹出面板不再超出窗口顶部,列表在面板内滚动。
  • 为什么做:来自新公司上手走查的运维页面反馈,让收起的页签不再被误认成设置菜单、加节点面板不再被裁掉。
  • 出错会怎样:只影响搭建者看到的按钮文字和弹出面板的高度,不碰数据;有问题可直接撤回本次合并。
  • 要你做什么:无。

What changes

  • Item 3 — the object designer's tab-row overflow is called More. The real trigger is the Studio object designer's folded tab row (the panels that do not fit fold into one dropdown), drawn by DataPillar.tsx; its string key moves from engine.studio.data.tab.advanced (Advanced / 高级) to engine.studio.data.tab.more (More / 更多) in the studio namespace (en, zh — the only two it carries). The fold rule, the two width bands and the trigger keeping its own name whichever panel is open are unchanged; the prose that quoted the old name (dataTabsFold.ts, two comments in DataPillar.tsx, the two pins that read the label) now quotes the new one. Test ids (data-tabs-advanced*) are kept so no other suite moves.
  • Item 4 — the flow add-node palette stays inside the window. NodePalette (in flow-canvas-parts.tsx, the one palette every "+" in FlowCanvas.tsx opens) is now a flex column capped at Radix's --radix-popover-content-available-height, with collisionPadding 8; the command root and list carry min-h-0, so the list is what shrinks and scrolls. Before, the panel's height was the list's 56vh plus the search row regardless of the room on the side it opened to, so a "+" with too little room drew the search box and first rows outside the window.

Tests

  • NodePalette.test.tsx gains a top-level describe (the component's shared harness): the panel carries every class of PALETTE_FITS_VIEWPORT, Radix really sets the variable the cap reads, and the cmdk root and list carry min-h-0.
  • DataPillar.advancedKeepsName-11794.test.tsx and DataPillar.flatTabs-12450.test.tsx read the trigger's label through the new key.
  • Ablation (scripts/ablation-replace.mjs, mutation landed by blob hash and restored to HEAD): dropping PALETTE_FITS_VIEWPORT from the panel's classes turns the new pin red (expected [ 'z-50', … ] to include 'flex', 1 failed / 12 passed); restored, 13 / 13 pass.
  • Browser measurement of item 4 before and after: see Verification.

Acceptance notes

  • Item 1 (recycle bin) — not built, needs a server door. The bin's doors are per object only (GET / DELETE on the object's recycle-bin path, restore and purge under it); there is no cross-object list and no per-object count (the list answers a page and hasMore, no total). Per-object counts or an "all deleted records" view need a new server read; reported to the seat, not built. No UI-only default was added: without counts any default object is a guess.
  • Item 2 (export beside import) — the menu already pairs them; the list had no export to offer. The ⇅ menu draws Import and Export together (its label becomes Import / Export) whenever the list hands it an export door, and ListView builds that door only when the view declares exportOptions. A view with no exportOptions (any view nobody configured) offers no export anywhere, so there is nothing elsewhere to point to. Whether an unconfigured list view should offer export by default is a product decision on the renderer's reading of an absent key, reported to the seat, not built here.
  • Changeset: .changeset/39409-ops-pages-overflow-palette.md landed in the last commit (d954f9894c); Check Changeset is green.
  • Item 3's file is not under layout/ as the claim guessed: the overflow is the Studio object designer's tab row. Item 4's popover lives in flow-canvas-parts.tsx, the parts file beside FlowCanvas.tsx.

Read first

  1. ui/packages/app-shell/src/views/metadata-admin/previews/flow-canvas-parts.tsx — the NodePalette panel: the height cap and collisionPadding (riskiest: every add-node "+" opens it).
  2. ui/packages/app-shell/src/views/studio-design/DataPillar.tsx — the folded trigger reads the new key.
  3. ui/packages/i18n/src/namespaces/studio/en.ts / zh.ts — the renamed key and its two values.

Verification

Measured placement of the palette (console preview gallery, flow designer, headless Chromium)

The driver opens every "+" inside the window and reads the panel's box. Before = this branch with flow-canvas-parts.tsx restored to the merge base; after = this branch.

window before: clipped / opened before: worst case after: clipped / opened
1280 x 600 2 / 3 edge "+" at y 360 opens upward, panel top y -23, search box y -22 0 / 3 (panel top y 8, 344 px tall)
1280 x 720 2 / 4 edge "+" at y 360 opens upward, panel top y -90, search box y -89 0 / 4 (same "+": panel top y 8, 344 px tall)

Two-minute check: cd ui/apps/console && pnpm exec vite --port PORT --strictPort, open /preview-gallery.html?only=flow in a short window (about 1280 x 600), click the insert "+" on the top edge of the canvas: the palette opens fully inside the window and its list scrolls.


Generated by Claude Code

… Advanced

The folded trigger holds the panels that do not fit; read as Advanced it
looked like a settings menu.

Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
Co-authored-by: Claude <noreply@anthropic.com>
…the flow palette height

Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface and removed size/s labels Dec 4, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Final head for L1 · 2026-12-04T01:52Z · zone em-admin
Head-sha: d954f9894cc5a091f13ccd8f22ce1271fbc3fce9
Checks on this head: 45 success, 15 skipped, 0 failed (the Test UI red on 849f3c5 was 9 shards cancelled by the changeset push; 0 FAIL lines). Body rewritten by the zone: Fixes #39409 (items 3 and 4) + Refs #39474 / Refs #39475 (items 1 and 2, ruled by the maintainer into their own cards). +65 / -26 under ui/ plus a changeset. Not governed by path. L1 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

2026-12-04T02:04Z · L1-a verdict: ACCEPT at head d954f9894c (zone em-admin, card #39409)

席位核对

Checklist verdict. Shape: open, draft, base main. Fixes #39409 first line, with Refs #39474 and Refs #39475 for items 1 and 2, which the maintainer ruled into their own cards. Clause-②: no · Metadata-protocol: none. The diff touches Studio display text and one popover's sizing only. No spec or governed path. Mergeable state clean.

Sentence reads, against the diff.

  • Item 3: the key is renamed engine.studio.data.tab.advanced → engine.studio.data.tab.more, More/更多 in the studio en.ts and zh.ts, which are the only two catalogues the namespace carries. git grep on the head finds the old key nowhere except the changeset's own sentence, so no reader is left on a missing key. The fold rule, the width classes and the data-tabs-advanced* test ids are unchanged, which matches "nothing else moves".
  • Item 4: NodePalette's PopoverContent gets collisionPadding={8} and flex flex-col max-h-[var(--radix-popover-content-available-height)]. Command and CommandList get min-h-0, so the list is the flex child that shrinks and scrolls, and the 56vh ceiling still applies on a tall window. cn is already imported (line 43). The new pin reads every class token, checks that Radix actually sets the variable, and checks min-h-0 on the cmdk root and list. The body's ablation turns it red.
  • Changeset (@object-ui/app-shell, @object-ui/i18n patch): the headline comes first, then the Clause and Metadata lines. Both bullets match the code, and naming the renamed key is right for a package that publishes the catalogue.

Body note, not blocking. The Acceptance note "No changeset in this PR yet … Check Changeset reds until then" is stale: d954f9894c adds the changeset, and the check is green. Please replace that bullet with one line saying the changeset landed in the last commit.

Gates. 47 success, 17 expected skip, 0 failed, 0 pending on d954f9894c.

Pointer for #39409: ACCEPT → PR #39450 (this comment). Not governed: the zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Landing · 2026-12-04T02:05Z · zone em-admin
ACCEPT → PR #39450 comment 7398548765 (L1-a) at head d954f9894cc5a091f13ccd8f22ce1271fbc3fce9; the stale changeset bullet the review named is replaced in the body. Items 1 and 2 are on #39474 / #39475. check-governed-merges.mjs --pr 39450: NOT governed, 105 lines ≤ 3000. All checks green at this head. Ready + auto-merge into the queue.

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

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

operations pages: recycle bin needs an object picked first, no export next to import, a "高级" tab overflow and a clipped flow popover

2 participants