Skip to content

应用菜单:「编辑应用」实际进的是设计模式(只改布局),拆成「设计布局」和「编辑应用」(进 Studio)两行 #36758

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

① product defect · Source: maintainer (Warren), 2026-11-23, UI review thread.

  • 15:47Z: 「左上角应用下拉中的编辑应用实际进的是编辑布局,原来的 studio 才是编辑应用。」
  • 15:48Z: 「评估应该如何设计入口」
  • 15:59Z, ruling on the decision card 「应用下拉里的编辑入口怎么设计?」 → 「编辑布局+编辑应用两行」. The option reads: 「编辑布局」 enters design mode (its bar is renamed too); 「编辑应用」 opens this app in Studio; an installed app reads 「在 Studio 中查看」.
  • 15:59:32Z, wording: 「设计布局 编辑应用」. The layout door and the bar are named 「设计布局」, not 「编辑布局」.

What happens (measured on main 9e0c0c2, showcase app, admin, desktop browser).

  • The sidebar app menu lists 功能展示 / 客户回访 / 系统设置 / 编辑应用 / 添加应用. 「编辑应用」 enters design mode, which edits only the menu, header pins and page arrangement.
  • No desktop surface links to the current app's Studio: not the list, the dashboard, the record page or the user menu. The home page's 「在 Studio 中新建」 is the only Studio door, and it creates a new package.
  • The row that would do this already exists: AppSwitcher.tsx around lines 290–313 draws 「在 Studio 中编辑 {app}」 / 「在 Studio 中查看 {app}」 from designInStudioPath and studioPosture. But AppSwitcher is mounted only in AppHeader, which the desktop layout does not draw outside phone, docs and design mode (ConsoleLayout.tsx around line 296).

Change (the ruled option).

  1. Sidebar app menu, two rows (ui/packages/app-shell/src/layout/SidebarAppMenu.tsx, EditAppItem around lines 130–140, gate useEnterDesignMode around line 119):
    • 「设计布局」 enters design mode. Rename the label key topbar.editApp (zh 「编辑应用」) to a layout wording in every locale.
    • 「编辑应用」 opens this app's package in Studio. It reuses AppSwitcher's target and posture: the same designInStudioPath / useAppStudioEntry derivation, so the two cannot disagree. Where the posture is view (an installed app), the row reads 「在 Studio 中查看」.
    • Each row keeps its own existing gate. Do not add a new gate.
  2. The design-mode bar's title designMode.title (zh 「设计模式」, DesignModeBar.tsx:17) becomes the same 「设计布局」, so the door and the bar use one word. Also update the related strings that name the mode, such as designMode.leaveUnsaved 「离开设计模式?…」.
  3. Out of scope. Dashboard and report editing stay in their page headers (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). Folding record tabs into this mode is 设计模式:记录页「配置页签」并入设计模式,列表视图按钮改名「重置 / 更新视图」(照 Twenty 归类) #36737.

Expected. An admin's app menu shows 「设计布局」 and 「编辑应用」 (or 「在 Studio 中查看」 for an installed app). Each one opens what its name says.

Acceptance.

  • Tests pin the following:
    • both rows and their targets;
    • the installed-app posture label;
    • the renamed bar title.
  • Browser screenshot of the showcase app's menu (installed: 「在 Studio 中查看」) and of a self-built app's menu (「编辑应用」 → /studio/<package>).

Skills/docs. Update docs and skills that say 「编辑应用」 or "Edit app" for design mode, or 「设计模式」 as the door's name. Search content/docs and skills/.

Order. This touches SidebarAppMenu.tsx and the design-mode strings, as do #36692 and #36737. The three are dispatched serially, never in parallel, in the order the maintainer releases them. All three are p2 and held under the maintainer's 2026-11-23 15:36Z freeze. Part of the design-mode epic #36359.

Grading (proposed): area:ux · Bug · the core admin door is misnamed, and Studio is unreachable from a running app on desktop, hit by every admin who customizes an app ⇒ p2. The seat grades by its own table. Evidence: measured (browser, menu items and absence of a Studio link) + read (code on main 9e0c0c2).

Dedupe: check for an open card on 「编辑应用」 / SidebarAppMenu / AppSwitcher's Studio row before filing.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S; type set to Bug (was none).
    Rationale: the app menu's 「编辑应用」 opens design mode, and no desktop surface links to the current app in Studio. The ruled fix (「设计布局」 + 「编辑应用」 two rows, maintainer 15:59Z) reuses the existing AppSwitcher Studio row, so no new capability ⇒ an experience Bug, UX rule p2.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 10 · 2026-11-23T21:23Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36758
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36758 (w9-36758)
    Dispatch: p2 area:ux, child of design-mode epic #36359 (dispatched first as an epic child). The card's serial order with #36692 and #36737 (both area:build, still held by the freeze) is 'in the order the maintainer releases them'; the ux release makes this card first of the three. The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z (「area 的ux任务继续处理」), lifting the 2026-11-23T15:36Z freeze for area:ux; p1+p2, epic children first, under the 15-thread cap.
    File surface: the app menu: ui/packages/app-shell/src/layout/SidebarAppMenu.tsx, the design-mode menu strings in ui/packages/i18n, tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7107327781
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: #36692 and #36737 share SidebarAppMenu.tsx and the design-mode strings; neither is claimed or has a PR, so this card goes first and they start from main after it merges

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T22:14Z · same session as claim 7114409363, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbWTEmq1ogAGwhMbGtf
    Account: os-warren
    Branch: claude/project-thread-eys57q
    Worktree: objectstack-issue-36758
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36758 (w9-36758)
    File surface: ui/packages/app-shell/src/layout/ SidebarAppMenu.tsx, ShellPageActions.tsx (one import), DesignModeBar.tsx, designMode.tsx, ConsoleLayout.tsx, console/AppNoAccessEmptyState.tsx (strings and doc comments); the 11 ui/packages/i18n/src/locales/*.ts and namespaces/studio/{en,zh}.ts (new topbar.designLayout and topbar.viewInStudio; topbar.editApp kept and now names the Studio entry); the affected tests; the app-shell README; content/docs/ui/actions.mdx; a changeset
    Container & model: S, mode:thread, served opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: holds on origin/main e0f0e9f; deviation accepted: topbar.editApp is not renamed because the Studio pencil uses it
    Serial constraints cleared: no open PR names the card

  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWTEmq1ogAGwhMbGtf
    os-dev-report

    {
      "issue": 36758,
      "status": "done",
      "branch": "claude/project-thread-eys57q",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36789",
      "session": "session_01JQwxbWTEmq1ogAGwhMbGtf",
      "premise_still_valid": true,
      "summary": "The sidebar app menu now has two rows under the app list: 「设计布局」 enters the design mode on its existing gate, and 「编辑应用」 opens this app's package in Studio on useAppStudioEntry's target and posture (the app switcher's), reading 「在 Studio 中查看」 behind an eye for an installed package. The design-mode bar and the strings naming the mode read 「设计布局」 in every locale. Deviation accepted by the seat: topbar.editApp kept for the Studio entry; topbar.designLayout and topbar.viewInStudio added, so Clause-② yes (widening).",
      "tests": "Head 7274e5e9f (last commit changeset-only). vitest packages/app-shell/src/layout/__tests__/: Test Files 158 passed, Tests 1324 passed. packages/app-shell/src/console/ + designMode-36362 + DesignModeMenu-36363: Test Files 300 passed, Tests 2529 passed. packages/i18n/: Test Files 107 passed, Tests 2006 passed, 13 skipped. No ablation: new behaviour is pinned by new assertions that failed before the implementation was complete (hrefs, missing-mock run).",
      "gates": "Local, exit captured before any pipe: type-check @object-ui/app-shell 0, @object-ui/i18n 0; check:nul-bytes 0; check:doc-authoring 0; check:role-word 0; check:closed-ceremony-text 0; check:published-readme-links 0; check-empty-changeset 0; check-changeset-no-major 0; overlap-check VERDICT clean (main, #36525). Remaining derived families: NOT MEASURED locally, reason: left to PR CI (in_progress at report time).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "2 — fleet-write relay pr_create (POST /pulls + POST /issues/36789/assignees); this report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed: ar/de/es/fr/ja/ko/pt-BR/ru wording for the two new keys and the renamed mode is machine-written, unreviewed by a native speaker (PR Acceptance notes)"]
    }
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T23:34Z: closed by the merge of #36789. The seat takes pm:dispatched and its assignee off.

  8. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions