Repository navigation
Backlog
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:blockedBlocked by another issue/PR — body carries Blocked-by: #Npriority:p2Medium: important, M3
Description
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…」删除。
要做的
- 仿照
designModeArrival.ts加一个「到达即进入设计模式并打开添加菜单项的仪表盘一栏」的导航状态,由ConsoleLayout或DesignModeMenu读取后调用enter()。 - Studio 仪表盘列表的「新建」用它,目标应用按决定 6 的规则选;建完落在菜单里,进入编辑(沿用 设计模式(三)在「添加菜单项」里新建仪表盘、新建报表:建完落在占好的位置,直接进入编辑 #36364 的行为)。
- 手机宽度不提供这个「新建」;目标应用找不到时不显示「新建」并说明原因。
- 和设计模式的在途工作(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.
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:blockedBlocked by another issue/PR — body carries Blocked-by: #Npriority:p2Medium: important, M3
Activity