Repository navigation
Description
repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2
Rulings (maintainer, 2026-12-03, desktop session)
- 「我觉得 设计布局应该改为 设计模式,在设计模式下不止可以改左侧菜单,选中仪表盘等可设计的界面时也可以直接设计。」
- 「记录页 ,不考虑 ① 自定义的 full 记录页,共享视图的结构修改我觉得并入设计模式?」 Fully-authored (
kind: 'full') record pages are out of scope. Shared list-view structure joins design mode. - 「按建议整体通过,立专题卡」 This approves the eight recommendations listed under "Decisions" below, the scope table and the card split.
Why
Today the app menu's 「设计布局」 mode edits only the menu, header action pins and record-page tabs (ui/packages/app-shell/src/layout/designMode.tsx:22-25). Selecting a dashboard in that mode shows it read-only. Editing it means leaving the mode and using the page header's Edit, or coming from a Studio list, which swaps the whole shell into the running app (StudioAreaAppOpen.tsx, ?studio=). The maintainer hit this today: 「选中 dashboard,再点设计,会被弹来弹去」.
What this supersedes
- 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 「照 Twenty 分开」: dashboard and report editors are mutually exclusive with design mode. They now join design mode. The defect behind that ruling (two Save/Cancel sets, a builder silently detached after the bar's Cancel) must not come back. See the invariants below.
- 应用菜单:「编辑应用」实际进的是设计模式(只改布局),拆成「设计布局」和「编辑应用」(进 Studio)两行 #36758: the door and the bar were renamed 「设计模式」 → 「设计布局」. They go back to 「设计模式」. The separate 「编辑应用」 row (opens Studio) stays.
- 设计模式:记录页「配置页签」并入设计模式,列表视图按钮改名「重置 / 更新视图」(照 Twenty 归类) #36737 item 2 (amended 2026-11-23 15:12Z, 「tweetty 编辑布局时,列表视图还是正常显示保存」): shared-view structure moves into design mode.
- Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906 / 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 decision 6: a Studio list click on a dashboard or report opens the owning app's design mode with that item selected, not the item's own edit state.
- Not superseded this round: 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 decision 3 (custom pages stay in Studio). Child 8 only links out.
Invariants every child keeps
- Inside design mode there is exactly one Save/Cancel: the bar. An editor's own save/discard is not drawn while the mode is on, and its buffer lives in the mode's staging area (
useDesignModeChange), not in component state. - An editor's lifetime is bound to the mode. Cancel on the bar discards every staged change and returns every page to read-only. Switching the selected item keeps what was staged.
- A change that cannot be saved is refused when the item is selected (pending draft, read-only package without a customization door, per-item permission), not at Save.
Scope
| Surface | Verdict |
|---|---|
| App menu, header pins, record tabs | Already in design mode. The menu gains add/rename/remove group |
| Record field groups and highlights (default and slotted pages only) | Join, committed with pins and tabs as one write per object |
| Dashboard | Join first. It validates the staging model |
| Report | Join after the dashboard lands. Gate unified with the dashboard's |
| Shared list-view structure | Join. Structure goes through the mode; personal state does not (see child 7) |
| Custom app page | Link out only this round |
| Public form | Deferred |
| Object, field, validation, hook, action definition, flow, permission set / RLS, position, sharing, dataset, AI types, translation, email template, advanced types | Stay in Studio. The mode only links out |
Decisions (approved as recommended)
- Report gate. Tightened to the dashboard's: admin plus metadata authoring (
useStudioDesignGate.ts:185-187). Today it is admin only (ReportView.tsx:129,AppReportIndexView.tsx:107,ReportNewPage.tsx:105). - Page-header Edit on a dashboard or report stays, and now means "enter design mode with this item selected".
- Creating a report or dashboard keeps today's flows this round (a dashboard saves the menu first and then opens; a report is created from the reports index). Folding creation into staging is later.
- 设计模式:记录页「配置页签」并入设计模式,列表视图按钮改名「重置 / 更新视图」(照 Twenty 归类) #36737 item 2 is superseded for shared-view structure.
- Custom pages link out only. 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 decision 3 stands.
- Partial save. Changes already saved stay saved, the failed change and everything after it stay staged, and the user sees a per-item result list. No server-side batch transaction.
- Personal reports and dashboards for business users are out of this round. The kept header Edit (decision 2) is where they will attach later.
- Undo and a change log go to a separate epic.
Children
Child 0 blocks every other child except 1. Child 2 lands and is verified in the browser before 4–8 are released.
Evidence: browser on main (showcase app, admin). Code read on main 23e859a. An independent review of the staging model was run as well; its unverified points are marked in each child.
Activity
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Feature · p2 · pm:epic, touched 2026-12-03T16:13Z. Rationale: The maintainer approved the epic's rulings, scope and card split on 2026-12-03 (「按建议整体通过,立专题卡」), so the feature is pre-authorised. Runtime design mode is how the app looks and is used in place (area:ux ①②), and the grade is the epic's p2. Child order, from the epic: child 0 (#39369) blocks every child except 1 (#39370), and child 2 (#39371) is browser-verified before 4–8 are released. Those gates are written on the children as
Blocked-by:lines.Grade: area:ux · Feature · p2 · every admin designing an app in the console · read (code at 23e859a) plus browser on main.