Skip to content

Studio 重构(3-4b):仪表盘列表的「新建」跳到应用的设计模式并直接打开「添加菜单项 → 仪表盘」(设计模式加一个到达入口) #36907

Backlog

Description

@os-support-ai

repo:objectstack#3 · os-support-ai · session_01WGufzufqmKuir7GiTdwGd3Z

③ topic child · Source: topic #36890. Maintainer 06:34Z decision card 「Studio 仪表盘、报表列表的『新建』怎么做?」 → 「新建跳到设计模式加菜单」 (dashboard half; the report half follows #36692, decision 13). Part of #36890.

为什么

专题 #36359 定过「新建仪表盘在设计模式的『添加菜单项』里做」,为的是不产生不在任何菜单里的仪表盘。Studio 的仪表盘列表要有「新建」,点了就走这条现成的流程。

今天(读代码确认,主干 0819cab)

  • AS/layout/designMode.tsx:52-53:「The mode has no address: no URL enters it.」模式由 ConsoleLayout 按应用持有,手机上永远不开。
  • 全仓只有 AS/layout/SidebarAppMenu.tsx:167, 238(useEnterDesignMode)进入;DesignModeMenu.tsx 不读任何 location.state 到达指令,只往外发 dashboardEditArrival(:493)。
  • PR fix(console): report editing is its own entry, mutually exclusive with design mode #36848 之后:仪表盘或报表处于编辑状态时 enter() 会被拒绝;「New dashboard…」保留,「New report…」删除。

要做的

  1. 仿照 designModeArrival.ts 加一个「到达即进入设计模式并打开添加菜单项的仪表盘一栏」的导航状态,由 ConsoleLayout 或 DesignModeMenu 读取后调用 enter()。
  2. Studio 仪表盘列表的「新建」用它,目标应用按决定 6 的规则选;建完落在菜单里,进入编辑(沿用 设计模式(三)在「添加菜单项」里新建仪表盘、新建报表:建完落在占好的位置,直接进入编辑 #36364 的行为)。
  3. 手机宽度不提供这个「新建」;目标应用找不到时不显示「新建」并说明原因。
  4. 和设计模式的在途工作(design mode: a menu rename in a non-source language is stored as that language's translation (console translation write path + source locale on /i18n/locales) #36504 / PR feat(i18n): a design-mode menu rename outside the source language is stored as that language's translation #36858、设计模式改名:标签是内联多语言映射时,用源语言改名会把整个映射替换成一个字符串,其他语言的译文丢失 #36876、设计模式:暂存的记录按钮顺序只在页头预览,行菜单要保存后才跟上 #36820)协调,避免同时改 DesignModeMenu.tsx。

验收

  • 自建应用和 HotCRM 上,Studio 仪表盘列表点「新建」→ 应用设计模式、添加菜单项的仪表盘一栏已打开 → 建完挂在菜单上、进入编辑。

Blocked-by: #36906

Grading: area:ux · Feature · design mode entry point (no address enters it) · builders creating dashboards · evidence: read from code. Topic child ⇒ p2.
Dedupe: design mode arrival / useEnterDesignMode (no open card; #36359 children closed).
Reader: seat repo:objectstack#3, one os-dev card. Size M. Metadata-protocol: none. Wave 3.

Activity

  1. added
    enhancement
    priority:p2
    pm:blocked
    domain:ui
    on Nov 24, 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:uxdomain:uienhancementpm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions