Repository navigation
fix(console): record tabs join the design mode; list draft actions read Reset / Update view - #37085
Conversation
…read Reset / Update view Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…raft's Reset / Update view Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…and list view actions outside it Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…a pluralized name Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…ator Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for L1 (2026-11-24T19:41Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
… tab editor yields to the record's edit state Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
… my view is offered, so the view switcher keeps its name Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
…state gate Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Final green head for delta L1 (2026-11-24T21:48Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Landing (2026-11-24T21:51Z) — head
State change: ready for review + auto-merge armed; the merge queue lands it. On MERGED, #36737 closes by |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45495324486 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Queue ejection disposition (2026-11-24T22:20Z) — head Signature: Three facts for one re-queue (landing-operations, new-signature branch):
Disposition: re-queued once, unchanged head (ready + auto-merge in one relay stroke). If the same signature ejects it again, it is not re-queued: the seat files the signature against the dogfood lane and this PR waits. |
|
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW Re-landing (2026-11-25T01:29Z) — head Reason (seat-cleared class (3), "checks didn't start", not a flake re-queue):
State change: ready + auto-merge armed, once. If the queue ejects it again with a build that fails on the wall-package-refusal timeout, it is not re-queued: the signature goes to the seat for the dogfood lane. On MERGED, #36737 closes by |
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #36737
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
useRecordTabsConfig(ui/packages/app-shell/src/views/RecordTabsConfig.tsx) no longer has an entry or a bar of its own. While the design mode is on, on a record page where the old gates hold, the tab row isRecordTabsEditorin place. The gates are: workspace admin who may author metadata, desktop full page, not a drawer or pane, not an authored page, the customization-door wall on an installed object, and not while the record's own edit state is open (the gate the old ⋯ entry kept). The draft is staged withuseDesignModeChangeunderrecord-tabs:OBJECT(one staged change per object, besideobject-pins:OBJECTand the app menu), so it survives a move to another page of the app. Itscommitis the existingsaveRecordTabs(own packagerelatedLists, or the base's paired.customobject extension throughsaveObjectExtensionArrangement), so both save paths are unchanged and are now called by the mode's 「保存」. The mode's 「取消」 drops it. An edit back to where the editor opened unstages it. A failed save keeps the draft staged and the mode on, and says why through the mode's own message. The editor's controls stay off until its lazily loaded metadata client has arrived, and while the mode saves.RecordTabsConfigBar,RECORD_TABS_CONFIG_ACTION(sys_configure_tabs) and its ⋯ item inRecordDetailView.tsx, the bar's top offset for the shared chrome, and the tabs' own unsaved-edits guard (the mode's guard covers leaving the app). The Studio gates are now read only while the mode is on, so a record page outside the mode reads no package list for this.ListDraftActionsreads 「重置 / 更新视图」 (en: Reset / Update view) by changing the values of the existing keysconsole.objectView.draft.discardandconsole.objectView.draft.savein all eleven packs (zh-Hant regenerated bygen:zh-hant). No key is added or removed.onSaveToView: a view a read-only package ships, or a reader who may not write it), the button carries the save its menu holds, 「另存为我的视图」 (saveAsMyView), so it never promises an update it does not offer.common.save) in that case. At 375 px the longer name squeezed the view switcher beside it from 76 px to 44 px, down to its count; measured in the browser.ObjectViewnever gated the draft on the design mode, so there is no refusal to remove. A pin holds that the actions stay live under the mode's bar.layout/designMode.tsx's module doc names the record tabs among the staged surfaces and the list's view actions as outside the mode. Nocontent/docs/**orskills/**page teaches 「配置页签」 as a separate entry (searched both forConfigure tabsand配置页签: zero hits).designMode.tsx(a dashboard's and a report's editors stay outside the mode and exclude it, Design mode: creating a report inside it shows two Save/Cancel sets and can silently detach. Make report editing its own entry, mutually exclusive with design mode (Twenty's model) #36692) is untouched. The 设计模式(二)菜单编辑:添加已有的菜单项,上移下移、移到分组、移除、改名和图标 #36363 ruling (4) rename gate in the tabs editor is kept.origin/mainis merged in (merge commit, no rebase). The merge touched no file of this diff's own.Files to read first, by risk:
ui/packages/app-shell/src/views/RecordTabsConfig.tsx, theuseRecordTabsConfighook: the staged value carriespackageId,mode,catalog,initialanddraft, so the mode's Save can write it from any page of the app. The commit closes over the metadata client captured at the edit.ui/packages/app-shell/src/views/RecordDetailView.tsx: the ⋯ item and the bar are removed, and the editor yields to the record's edit state.tabsConfig.activenow means "the mode is on and this object's tabs may be arranged here".ui/packages/app-shell/src/views/ListDraftActions.tsx: the two labels,saveLabelandcompactSaveLabel.Two-minute check: in the showcase app as admin, open an account record and choose 功能展示 ▾ → 设计布局. Expected: one purple bar, a tab row of draggable chips, and no 「配置页签」 under ⋯. On the task list, sort by 截止日期: the button reads 「另存为我的视图」 on the shipped view, and 「更新视图」 on your own view.
Screenshots
Showcase app, admin, zh-CN, per-agent
--freshstack, Console from this branch's source.The images live on the assets-only branch
claude/issue-36737-screenshotsat commit3b99443a. That branch is never merged and opens no pull request.Tests
New pins (#36737), each in the component's existing harness file as a top-level
describe, except the record page pins, which have their own file named for the card:views/__tests__/RecordTabsConfig-36499.test.tsx: the harness mounts the realuseDesignModeControllerandDesignModeBar.save object accountwith{ mode: 'draft', packageId: 'app.crm', ifNoneMatch: '*' }, thenpublish), and leaves the mode.views/__tests__/RecordTabsConfigInstalled-36499.test.tsx: the mode's 保存 writes the installed object's.customextension (ensure→save object_extension leadinapp.hotcrm.custom→publish). 取消 sends no ensure and no write.views/RecordDetailView.designModeTabs-36737.test.tsx: the realRecordDetailViewon a full page.views/ListDraftActions.noSave-35955.test.tsx, through the real packs:views/ObjectView.footerCalculationDraft-36194.test.tsx: under an entered design mode, the list draft's actions are drawn and live. The mode's 保存 stays off, 「保存到这个视图」 writessys_personal_viewon its own, and the mode stays on.Ablations, run once and not kept. Each ran on the committed fix through
scripts/ablation-replace.mjs, and each restore was proved by blob == HEAD withgit diff HEADempty:saveRecordTabs(commit made a no-op: both 保存 pins went red (Tests 2 failed | 13 passed).draft.save: both label pins went red (Tests 2 failed | 4 passed). The first attempt was refused by the tool as a no-op, because its replacement text was already in the file. It was re-run with a distinct replacement.common.savebranch replaced bysaveAsMyView: both label pins went red (Tests 2 failed | 4 passed).!recordEditStategate removed: the edit-state pin went red (Tests 1 failed | 2 passed).All subjects resolve from
srcthrough relative imports, so nodistleg applies.Local readings (head af3d3f9)
Test Files 5 passed (5),Tests 33 passed (33).origin/main:Test Files 119 passed (119),Tests 1110 passed (1110). Run in one lock hold with the two below, VERDICT command-exit 0.pnpm --filter @object-ui/i18n test:Test Files 110 passed (110).pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check: both scripts echoed and finished.dispatch-gates --commands(41 families) at the round's head: 40 exit 0.pnpm --dir ui exec vitest run scripts/was killed by the shared box's memory limit (SIGKILL) during the run; re-run alone under the lock:Test Files 172 passed | 2 skipped (174),Tests 5130 passed | 2 skipped, exit 0.--ranreconciliation: 41 derived, 41 run, 0 UNRUN.Acceptance notes
saveAsMyView), and it is kept unchanged.designMode.recordTabs.entry,.leaveUnsavedand.saveFailed. They are left in the pack, because removing a key from the published@object-ui/i18npack would narrow it, which is outside this card'sClause-②: no.designMode.recordTabs.titlestays live as the editor region's accessible name.leadsMenu: truein@object-ui/components' page header (containers.tsx) now has no producer: the removed ⋯ item was its only one. This is a zero-pull mechanism, not filed.Generated by Claude Code