Skip to content

外壳(一)页面头部:报表和自定义页面补上统一头部;每页右上角固定一组按钮(评论、编辑应用、AI、帮助) #36111

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36107(专题:去掉顶栏和平台首页那一层,维护者直派)。第一阶段。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-21)

本卡是父单清单的第 3、4 项。它先做:去掉顶栏(「外壳(二)」)之前,顶栏上的编辑应用、AI、帮助要先在页面头部有位置。

现状(主干 c00be39b74,读代码加浏览器实测)

  • 列表、仪表盘、设置页用同一个页面头部组件(ui/packages/app-shell/src/layout/PageHeader.tsx)。
  • 报表自己画标题,没有用这个组件(views/ReportView.tsx、views/AppReportIndexView.tsx)。
  • 自定义页面没有头部,只有一个浮动的「在 Studio 中编辑」按钮(views/PageView.tsx)。
  • 编辑应用(铅笔图标,名字就叫「编辑应用」,点了进 Studio 并打开当前对象)、AI 助手、帮助,现在都在顶栏右边(layout/AppHeader.tsx)。
  • 记录页头部已有一个带铅笔的「编辑」按钮,是编辑这条记录。

效果图

应用里的列表页:右上角是评论、编辑应用、AI、帮助

要做的

  1. 报表、自定义页面改用统一的页面头部:左边是这一页的名称,右边留给第 2 项的按钮组。自定义页面原来那个浮动的「在 Studio 中编辑」按钮去掉,由按钮组里的「编辑应用」代替。
  2. 右上角按钮组,从左到右:评论、编辑应用、AI、帮助。所有应用内页面(列表、记录、仪表盘、报表、自定义页面、首页)位置一致。
  3. 不显示「正在看这一页的人」的头像。
  4. 过渡期:顶栏还在的时候,这组按钮和顶栏上的会重复。本卡把按钮组做成由外壳决定显不显示;顶栏还在时默认不显示,「外壳(二)」去掉顶栏时打开。本卡合并后,使用者看到的界面没有变化,只有报表和自定义页面多了头部。

不做的

  • 不去掉顶栏(「外壳(二)」)。
  • 不改列表页顶部的结构(「外壳(三)」)。
  • 不做评论栏。
  • 不改 Studio。

验收

  • 打开一个报表、一个自定义页面:顶部有和仪表盘同样样式的头部,显示页面名称。自定义页面上不再有浮动的「在 Studio 中编辑」按钮。
  • 用测试开关把按钮组打开后:列表、记录、仪表盘、报表、自定义页面的右上角都有同一组按钮,顺序和位置一致。
  • 点「编辑应用」:进 Studio,打开的是当前这个对象;没有搭建权限的账号看不到它。
  • 点「AI」:右侧 AI 面板打开。点问号:出现帮助菜单。
  • 把窗口缩窄:「编辑应用」收成图标。
  • 顶栏还在、开关关着时:页面右上角没有这组按钮,顶栏上的照旧。
  • PR 正文附报表、自定义页面改动前后的截图,以及按钮组打开时的截图。

协调席自己加的(不是维护者原话)

  • 把父单的第 3、4 两项合成一张卡。
  • 第 4 项「过渡期」的做法(顶栏还在时默认不显示)。
  • 「编辑应用」不用铅笔图标、窗口窄时收成图标。
  • 记录页头部较满,「编辑应用」在记录页上是直接显示还是收进「更多」,没有定;本卡先直接显示,放不下时在卡上说。

没有核对的

  • 帮助菜单现在具体有哪几项,只看到「全部文档、在线文档、关于」三项,没有读代码确认是不是全部。

Reader: domain:ui 车道。ui/packages/app-shell/src/layout/PageHeader.tsx、AppHeader.tsx(按钮现在的位置)、AssistantTopBarButton.tsx、views/ReportView.tsx、views/AppReportIndexView.tsx、views/PageView.tsx。

Dedupe: 报表 页面头部、编辑应用 按钮 右上角(objectstack,open)→ 见父单 Dedupe,都是 0。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · shell (1): reports and custom pages get the common page header, and every page has a fixed top-right button group (comments, edit app, AI, help); phase 1 of topic #36107, to go first → p2 as set by the coordinator · size M.

  3. added
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T15:05Z · area b1-SH (epic #36107 phase 1; the maintainer took the epic for this seat on its decision card, 「接,先派 #36111」).
    Area: b1-SH
    Session: session_01L6bhgVcCRGjxwhDjrRVYsY (card thread)
    Account: os-sales
    Branch: claude/project-thread-k8r3np
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: app-shell layout/PageHeader.tsx, layout/AppHeader.tsx (the help menu and the edit-app button move out into shared components, the top bar uses the same code), a new page-actions group and its internal context provided by ConsoleLayout, views/ReportView.tsx, views/AppReportIndexView.tsx, views/PageView.tsx, RecordDetailView.tsx (near the page frame only), the interface-mode list page header; tests (the three PageView edit-entry tests move to the group), changeset.
    Container & model: M/L, card thread, model: opus, effort: high
    Clause-②: no (expected: no package-root export, no i18n key, no components prop; re-measured on built declarations before push)
    Metadata-protocol: none
    Premise (thread, read on main db9e34ad, file build-seat1/36111/premise.md in the project folder): holds. The help menu has five items, not three (this app's docs when a doc exists, all docs, keyboard shortcuts, online docs, about).
    Basis: card #36111; epic #36107 (fig. 45, the maintainer's words).
    Scope, the seat's reading: reports get the shared page header. The button group (comments slot, edit app, AI, help) is one component behind an app-shell context, default OFF while the top bar exists; tests mount the provider, and browser evidence uses a guarded localStorage switch that #36112 removes when it turns the default on. Drawn once per page (inner headers turn it off), only inside the app shell, never at phone width. Edit app: a text label with a non-pencil icon, builders only, icon-only under 1024, same target as the top-bar pencil; the read-only package's eye form carries over. On the record page the group sits at the right end of the navigation row, left of ✕, through RecordTopBar's existing frame slot. The comments icon from #36075 stays where #36114 puts it in this PR; it joins the group's first position when #36112 turns the group on (fig. 45 and the card's order). Phones are unchanged (epic #36107: 「手机端不动」), so the custom page's floating edit button stays at phone width.
    Open, to the maintainer after fable review: custom pages that draw their own title (an authored page:header, an html page's hero, the interface-mode page's own h1) would show the title twice under the card's literal text. The thread builds option C of its premise (add the shared header only where the page has none; otherwise place the group in the host slot PageHeaderTrailingContext; the interface-mode page's own row becomes the shared header) until the answer.
    Resume-from: none
    Fold-or-serial: #36112 and #36113 wait for this card. Overlap: #36114 and #35890 (RecordDetailView.tsx), #36047 slice 2 (report title type size). overlap-check.mjs before each push. L1 at L1-c. The PR carries Fixes #36111.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T15:29Z · #36111: the header on custom pages (reviewed by fable first)

    At 2026-11-21T15:29Z the maintainer picked option A on the seat's decision card, "the shared header on every custom page, the author's content untouched": every custom page gets the same shared page header as dashboards (the page name on the left, the top-right button group on the right), so the group sits in one place on every page. The page name the renderer draws by itself when a page has no titled page:header folds into that header and is no longer drawn twice (the dashboard precedent). A page:header the author wrote is drawn as before; when its title equals the page name, the name shows twice, which is accepted. The interface-mode page's own row is replaced by the shared header (it is drawn by the platform from page config, so nothing is lost). html and react pages get the shared header too. This replaces the thread's earlier option C (group in the host slot inside the content), which would have put the group lower and inset on some pages and left no place for #36112's sidebar expand button. In this PR the two showcase pages whose authored title equals the page name (my-work, project-workspace) drop their own title line; hotcrm's sales home gets a small card. Clause-② is re-measured on built declarations before push, since turning off the renderer's own title may touch @object-ui/components.

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment · 2026-11-21T15:41Z · #36111, claim 7064613161, PR #36131

    Clause-②: yes (widening). The thread measured it on the built dist of the final diff. @object-ui/components gains one new root export, PageTitleHostContext. The renderer needs it to drop its own automatic page-name title wherever the shell draws the shared header, which is what ruling 7064921354 picked (option 1: the shared header goes on every custom page and the author's content is left alone). Nothing is removed. The seat runs the declaration-face L2 on the green head. L1 is still L1-c.

    Scope, as built under the ruling: the platform never hides a page:header the author wrote. Two in-repo showcase pages, my-work and project-workspace, wrote a page:header whose title is the same as the page name, so the page name would show twice. This PR removes those two titles by hand, as the pages' author. The hotcrm sales home has the same duplicate and gets its own small card. Everything else in the claim stands.

  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    本机验收 · 2026-11-21T22:16Z · objectstack 6c7c6db250,HotCRM 6.5.0 销售应用,1440 宽。

    通过:报表页(各阶段商机)和自定义页面(销售主页)都有了和列表、仪表盘一样的页面头部。右上角按钮组按合并说明在顶栏还在时关闭,没有核对。

    一处观察,不重开卡:自定义页面「销售主页」的名字现在出现两次,一次在新加的页面头部,一次是页面内容自己的大标题。大标题是 HotCRM 页面作者写的;去掉顶栏(#36112)之后是否由平台头部统一显示、作者的标题该怎么处理,请席位在 #36112 或后续卡里考虑。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions