Repository navigation
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #36359(专题:运行界面的设计模式,维护者直派)。⛔ 不是认领。优先级 p1(维护者 2026-11-22:「这几张卡都 p1」)。
本卡属于「运行界面的设计模式」这套方案,总说明和全部效果图在 #36359。
维护者说过的(2026-11-22)
- 「你看一下右侧这个设计模式」(指 Twenty 的 Layout customization),随后:「按这个改,重画」
- 「设计模式中顶部的字是不是太多了,而且不需要 studio 打开了」
- 「你先立已经决定的卡」
效果图(设计板图 49 的图四)
现状(主干 6c7c6db250)
- 页头右上角有「编辑应用」按钮(
ui/packages/app-shell/src/layout/ShellPageActions.tsx的EditAppButton),点了跳到 Studio。 - 运行界面没有任何「模式」的概念。
要做的
- 「编辑应用」按钮改成进入设计模式,不再跳 Studio。只有系统管理员看得到这个按钮(现有的显示条件不放宽)。
- 进入后页面最上面出现一条栏:左边「设计模式」四个字,右边「取消」「保存」。栏里不放别的:不写应用名,不写说明,不放去 Studio 的按钮。
- 模式是全局的:在模式里点菜单换页面,模式一直在。
- 模式里收集到的改动统一处理:点「保存」一次写入、对所有人生效;点「取消」全部不要并退出。有未保存的改动时关页面或刷新,浏览器提示会丢改动。
- 没有任何改动时「保存」是灰的。
- 模式里个人的「收藏」那一组先隐藏,只留应用自己的菜单(避免把个人的东西当成应用的来改)。
- 本卡只做模式这个壳和一个扩展点:别的卡(菜单编辑、页头按钮)往里登记自己的改动,模式负责统一保存和取消。本卡合并时模式里可以还没有任何可改的东西。
不做的
- 不做菜单编辑、页头按钮(同专题的另外两张卡)。
- 不做撤销和改动记录、不做「用在没发布的应用上」(专题里列为等维护者定)。
- 不动 Studio。
- 不改手机:手机上不显示「编辑应用」。
验收
- 系统管理员在任意页面点页头的「编辑应用」:不跳 Studio,顶上出现一条栏,只有「设计模式」和「取消」「保存」。
- 普通成员:没有「编辑应用」按钮;直接输入带模式参数的地址也进不了模式。
- 模式里从「客户」列表点到「商机」列表再点到仪表盘:栏一直在。
- 点「取消」:栏消失,回到平时的界面。
- 模式里左侧栏没有「收藏」一组;退出后回来。
- 窗口宽度 1280 和 1440 各看一次:栏不换行、不挡页头。
- PR 正文附模式里和平时的截图各一张。
协调席自己加的(不是维护者原话)
- 第 4 项里「关页面时提示会丢改动」、第 5 项、第 6 项、第 7 项的扩展点做法。
- 「不做的」四条。
- 只有系统管理员能进(维护者没有规定是谁,这一批先这样)。
没有核对的
- 「编辑应用」按钮现在的显示条件具体是什么(哪种权限),没有读。
- 运行界面还有一个旧的「编辑应用」页面的路由(
edit-app/:editAppName,ui/packages/app-shell/src/console/AppContent.tsx),还在不在用、要不要一起处理,没有查。 - 保存后正在用的其他人是立刻看到还是要刷新。
Reader: domain:ui 车道。ui/packages/app-shell/src/layout/ShellPageActions.tsx、ConsoleLayout.tsx。参照 Twenty 的 Layout customization(本机源码跑的,AGPL,⛔ 只看界面行为,不读不抄它的代码)。
Dedupe: 设计模式 菜单、运行界面 编辑菜单(objectstack,open)→ 都是 0。
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2

Activity
objectstack-fleet commentedon Nov 22, 2026
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
通知记录 · 2026-11-22T08:20Z
维护者 2026-11-22:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位
repo:objectstack#7,随后在它的信箱 #36199 里发一条。同批:#36362 #36363 #36364 #36366(设计模式专题 #36359)、#36370 #36371(列表专题)、#36372 #36373 #36374(报表专题)。objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC
Claim: PM loop round 4
Session:
session_01QsR2jTeURPvEm465RcoYECThread session:
session_01QsR2jSr8sNCnJrK6Q9kEF5Account:
zhuangjianguoBranch:
claude/project-thread-iqvhau(the thread's container pushes only to its own branch name)Worktree:
objectstack-issue-36362Domain:
domain:uiSeat:
repo:objectstack#7Area:
f7-seat (the design-mode card chain thread; enters no area)File surface:
ui/packages/app-shell/**(ShellPageActions EditAppButton, the nav, the design-mode shell and its extension point), the app customization-layer write path Studio nav editing uses, their tests; shared shell files coordinated with area f7-shell through the seatContainer & model: L,
mode:thread, model: default tier (the thread re-derivesdispatch-gates --tierat its head), effort: high (seat order)Clause-②: yes (widening) — new
@object-ui/i18nkeys for the new UI strings (the thread re-judges from the diff; a spec/schema change is told to the seat before push)Metadata-protocol: none (the thread re-judges from the diff)
Responsibility:
n/a — not a defect cardThread-read: 7076458963
Premise: holds as filed (card 现状 read at main 6c7c6db; the thread re-measures first and stops on a premise that does not hold)
Serial constraints cleared: first of the chain; overlap-check before every push.
Pre-claim lane:
repo:objectstackseat 7: the maintainer's 「后续 ux 专题立卡之后都通知 7号座位」 (relayed by coordinator#1, record 7076458963) and 「ux 新进一批 p1 卡,要优先派发」 (2026-11-22T08:40Z, seat thread); coordinator#1's take request 7076640309, acknowledged 7076693653.Pre-claim deps: one branch, one PR per card in order #36362 → #36363 → #36366 → #36364; #36364 last, since it hands off to #36372 and #36374 (other threads); epic #36359's maintainer-owed items (undo/history, unpublished apps, Studio 「界面」) are not built.
Prior rulings read: epic #36359 (maintainer's words, board 49; the 2026-10-09 "no orchestration handles in the runtime" ruling stands, since editing controls appear only in the edit state); the thread runs
check-prior-rulings.mjs --card 36362before code.Resume-from: none (fresh from origin/main)
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: type set (Feature);
pm:dispatchedand the maintainer-set p1 stand (topic #36359).test(console): the top-bar pins admit the design mode's bar (#36362)
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jSr8sNCnJrK6Q9kEF5
os-dev-report
{ "issue": 36362, "status": "done", "branch": "claude/project-thread-iqvhau", "pr": "https://github.com/objectstack-ai/objectstack/pull/36397", "session": "session_01QsR2jSr8sNCnJrK6Q9kEF5", "premise_still_valid": true, "summary": "「Edit app」 in the page header now turns on a shell-held design mode for the app on screen instead of opening Studio (edit posture only in this PR). While on, a bar across the window holds 「Design mode」, 「Cancel」 and 「Save」 and nothing else; the mode survives page changes within the app, goes off on another app, is never on a phone, and hides the sidebar's Favorites. It is the extension point later cards stage through (useDesignModeChange: staged changes with their own commit; Save commits in first-staged order and stops at a failure, Cancel drops all). Leaving with something staged goes through the unsaved-edits seam, which gains a per-registration keeps(url) so in-app links do not ask.", "tests": "New designMode-36362.test.tsx (13 tests) + additions to ShellPageActions-36111, UnifiedSidebar.favoritesMenu-12427, unsavedEdits-13231: 57/57 passed; consoleTopBar.height-12639 source pins updated for the bar's arm, 12/12 passed. Related sweep (184 files naming ConsoleLayout/UnifiedSidebar/ShellPageActions/unsavedEdits/designMode): 1,654 passed, 2 reds were the top-bar pins, fixed in d78b61b961. Ablation: keeps check disabled in unsavedEdits.ts -> 3 tests red; restored, git status clean. Live: fresh backend + console Vite, writable package app at 1280 and 1440: Edit app enters the mode, bar drawn, Save disabled, sidebar below the bar, mode kept across a page change, Cancel restores Edit app.", "gates": "dispatch-gates --commands: 41 derived, all exit 0; --ran: 41 derived / 41 run / 0 not measured. turbo type-check app-shell+i18n 70/70; pnpm build exit 0; eslint touched files 0 errors. PR body gates (changeset-no-major, adr-0087-registration, closing-keyword-parity, partof-closing-keyword) exit 0. overlap-check: origin/main + 8 PRs merge cleanly. CI at d78b61b961: 45 check-runs success, 13 skipped, 0 failing (Test UI, Type Check UI included).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "reads only: issue_read, pull_request_read, list_pull_requests; no MCP writes", "api_writes": "1 — pr_create via fleet-write relay (PR #36397); this comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "Reach: showcase and installed (read-only) apps show the eye entry in this PR; #36363 item 7 (installed apps editable) makes the view posture enter the mode too, done in that card's PR, noted for the seat. carrier: #36363 PR" ] }Screenshots (normal / design mode at 1280 and 1440 px) are held in the project thread.
Generated by Claude Code
feat(pm): first-touch-sweep lists a card whose area:* is not exactly …
feat(console): 「Edit app」 turns on a design mode in the running app (o…
feat(console): edit a dashboard on its own page, and mark the page fi…
test(console): unsaved menu changes ask before the app is left (#36363)
feat(console): the app's menu is edited in the design mode (objectsta…