Skip to content

记录页头部改成两行:导航条(上下条、来自哪个列表、关闭在最右)加记录名一行;操作按钮恢复最多露 3 个(图 40) #35853

Closed
1 of 1 issue completed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。优先级 p2。

维护者 2026-11-20 原话:「我让你参考的是顶部条」(参照 Attio 的记录页顶部条);「我们后来把按钮都并到顶部了」;「画个效果图」;看图后:「我们的关闭按钮可以统一风格,都放在右侧。然后 35593 电脑上打开记录详情页 只显示一个,为什么会有这个规则」;协调席列出六项待定后:「先定记录页头部和打开方式那六项,立卡」。

本卡是六项里的三项:头部两行、上下条和列表来历加回、操作按钮恢复最多 3 个。另外三项(打开方式)在同专题的另一张卡。

目标效果(图 40)

图 40 记录页顶部条:整页、抽屉、无列表来历

图是深色稿,只表达结构和位置,颜色沿用现有主题变量。

现状(主干 7878cf0557)

参照

Attio(商业产品,只参照结构):顶部是一条导航条,只放关闭、上下条、「1 of 14 in All Companies」;记录名单独一行。

参照:Attio 的侧边面板

参照:Attio 的整页

要做的

  1. 头部两行,整页和抽屉用同一套:
    • 第一行是导航条(40):左边是上一条、下一条、「第 N 条,共 M 条 · <来的那个列表视图名>」;关闭在最右端。不放记录名,不放操作。
    • 第二行是记录本身(48):图标、记录名(比现在大一号)、阶段和审批状态标签;右边是操作按钮。
  2. 「只有一组按钮、随状态换内容」不变(记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593):按钮从第一行搬到第二行右边,规则照旧;任何时候只有一个主色按钮。
  3. 上一条、下一条和列表来历:从列表点进来时才出现,按那个列表当前的筛选和排序走。这一条取代维护者 2026-11-19「抽屉打开的时候,不需要第几条,上一条下一条」的意见,他在 2026-11-20 对照 Attio 后改了决定。
  4. 没有列表来历时(从链接、通知、搜索直接打开):导航条左边只写对象名,最右仍是关闭,点关闭回到这个对象的默认列表;没有上下条和「第几条」。
  5. 操作按钮恢复成最多露 3 个,放不下时按宽度收进「更多」。抽屉窄,自然会少露。手机上仍只露一个主操作(手机记录页待审批时有两个主按钮:顶部「通过」与底部操作栏的第一个动作都是主色 #35419)。页面定义里写了明确数字的仍按写的来。规范里 page:header 的 maxVisible 说明改回与渲染一致(等于撤回 spec: page:header 的 maxVisible 说明仍写「渲染器默认 3」,记录页一行头部改为默认 1 后要同步(承 #35593) #35660 的改动)。
  6. 页签紧跟第二行,中间不留空白带(承接 记录页两处:页签上方有约 48 的空白带;日期字段显示成「6天前」,和列表里的「11月13日」不一致 #35745 的第一条)。

不做的

  • 第二行以下不动:页签、概览、右栏、主从子表。
  • 记录从列表里怎么打开(整页还是侧边)、抽屉的外观,在另一张卡。
  • 「来历」怎么带(网址里放什么)由实现方定,要求见验收。

验收

  • 从带筛选和排序的列表打开一条记录(整页和抽屉各验一次):第一行显示「第 N 条,共 M 条 · 视图名」,N、M 与列表一致;点下一条到的是列表里的下一行;第一条时上一条不可点。
  • 关闭在三种情况下都在导航条最右端。
  • 从通知或直接粘贴网址打开:第一行左边只有对象名,没有上下条。
  • 1280 宽的整页,一个有 5 个头部操作的对象:第二行右边露出 3 个加「更多」;抽屉里按宽度更少;390 宽只露 1 个。
  • 等我审批的记录:第二行右边是通过、拒绝、更多,只有「通过」是主色。
  • 没有阶段条的对象:页签顶边紧跟第二行。
  • PR 正文列出迁移和作废的测试(记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593 的「默认露 1 个」、抽屉无翻页的测试按新规则更新)。

Reader: domain:ui 车道;maxVisible 的说明文字涉及 packages/spec。ui/packages/components/src/custom/record-top-bar.tsx、navigation-overlay.tsx、ui/packages/components/src/renderers/layout/containers.tsx(约 :2607、:3153)、ui/packages/app-shell/src/views/RecordDetailView.tsx。

Dedupe: 记录页 头部 两行 导航条、上一条 下一条 列表 来历(objectstack,open)→ 0;相关:#35593、#35660(均已关,本卡修改它们的结论)、#35745。

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · record page header in two rows (navigation with previous/next, list origin and close on the far right; then the record name), with up to three action buttons shown (figure 40); child of topic #35590, maintainer: 「先定记录页头部和打开方式那六项,立卡」 → p2 as set by the coordinator · size M. Sibling of #35854 (same header surface); one claimant should take both in order.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim: area ux-4 round 6 · record epic #35590 · the maintainer named it directly (2026-11-20 14:23Z, 「继续开发 objectstack#35853 objectstack#35854」), and the seat routed both siblings to ux-4 alone because they share surface · 2026-11-20T14:27Z
    Area: ux-4
    Session: session_01Utp6Cb8qTxAVaE2QKwquQU
    Account: os-bill
    Branch: pending — mode:thread: the same card thread as #35854, building on its list provenance; the area posts a Branch: amendment here when the thread opens
    Worktree: the card thread's own checkout
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/components/src/custom/record-top-bar.tsx, ui/packages/components/src/custom/navigation-overlay.tsx (drawer header), ui/packages/components/src/renderers/layout/containers.tsx (page:header two-row layout and the bar's default budget ~2607/~3153, plus the designer mobileMaxVisible / maxVisible descriptions and comments that follow the new default), ui/packages/app-shell/src/views/RecordDetailView.tsx (header region and the space above the tabs only), packages/spec/src/ui/component.zod.ts (the page:header maxVisible / mobileMaxVisible describe and docblock only) and the generated content/docs/references/ui/component.mdx, sdui.manifest.json and content/docs/ui/components/page.mdx, content/docs/ui/pages.mdx (the Default cell), i18n in ui/packages/i18n/src/locales/*.ts, docs/qa/platform-checklist/areas/*.json, their tests, e2e specs under ui/e2e/ named for the card, root .changeset/. ⛔ docs/adr/**, skills/**, .claude/**, server, REST, the action:bar text in types/ui-action.ts / action/auto-trigger.ts. Stop on any other breach and report.
    Container & model: M, mode:thread, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the record header is one crowded row with no prev/next or list provenance, close sits in different places, and the bar shows only 1 action | #35593 folded navigation, title and actions into one row and set the bar's default budget to 1 (a coordinator choice, not the maintainer's) | every user on a record page or drawer
    Thread-read: 7039917810
    Premise: holds at origin/main 3c038eb, as the card's current-state section reads it (containers.tsx:3153 defaultMaxVisible={inBar ? 1 : undefined}; spec text says 1 since #35821). The thread re-measures it before writing code.
    Pre-claim lane: ui/packages/** → domain:ui, area ux-4; packages/spec/src/ui/component.zod.ts text → seat L2 after L1-a.
    Pre-claim deps: #35854's list provenance (same thread, built first). Open-PR overlap: none touches this card's files (os-sales's #35864 is on the list files, which belong to #35854). Open follow-up #35840 (designer mobileMaxVisible description) is subsumed by item 5 here: the thread fixes that text to the new defaults, and #35840 closes with this PR.
    Prior rulings read: record header,navigation strip,prev next,maxvisible,record-top-bar,第几条 → 0 hits; none; thread: none; repo: objectstack-ai/objectstack.
    Scope: card items 1–6; acceptance as written (figure 40). Folded with #35854 into one PR while ≤3,000 lines; otherwise this card lands second and merges main. Fixes #35853.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment to comment 7042033558 (area ux-4) · 2026-11-20T14:29Z
    Branch: claude/project-thread-ntrvrh (mode:thread: the platform-assigned branch of the card thread for #35854 + #35853; replaces the claim's pending line)
    Thread session: session_01Utp6Cbrs4FaLzn1HMmRDi1
    Worktree: the card thread's own checkout

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    和本卡不冲突,补两处衔接。2026-11-20T17:02Z

    维护者 2026-11-21 定了记录页图 41 的方向,新立了四张卡。和本卡(头部两行,已派出)的关系:

    本卡正文里「第二行以下不变:页签、概览里的阶段条和关键信息、主从子表、右栏」这一句已经过时,以上面两张卡为准;本卡自身的范围(两行头部、上下条、来历、按钮最多露 3 个)不变。

  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment 2 to comment 7042033558 (area ux-4) · 2026-11-21T05:06Z
    File surface (adds; PR #35983, from L1-a R1 7057677292):

    • ui/packages/app-shell/src/views/recordDrawerStack.tsx and its two tests __tests__/recordDrawerStack-26679.test.tsx, __tests__/recordDrawerStack.rootStepper-26679.test.tsx. The drawer face of the two-row header: the nav strip and close move into the shared header, and the unused cn import is dropped.
    • ui/apps/console/src/pages/system/ApprovalsInboxPage.queueStepper-34586.test.tsx. Its expectations follow the new nav-strip markup («第 N 条,共 M 条»).
    • scripts/sdui-manifest.record.json. Regenerated by gen-sdui-manifest-node.mjs from the component.zod.ts describe change; generated, not hand-edited.
      No other paths.
  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment 3 to comment 7042033558 (area ux-4) · 2026-11-21T06:36Z
    File surface (adds; PR #35983, from the Docs Drift Check on the PR): content/docs/ui/pages.mdx ~303 only, the maxVisible / mobileMaxVisible default cell of the page-header table. It moves from "1 in a record page's one-row header bar, 3 elsewhere" to the new describe (3 on every header; in a record page's header bar an upper bound, with width folding). About +1 / −1. content/docs/releases/** is release-owned and not touched.

  10. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Close-out · 2026-11-21T10:48Z: PR #35983 merged as bc9ace2. Reviews: L1-a ACCEPT 7057677292, deltas 7058294369 and 7060610173; seat L2 PASS 7057806258, deltas 7058307938 and 7060665425. Re-landing record: 7061153726. The card closed on merge.

    What changed: the record header now has two rows, on the page and in the drawer.

    • Top row: a navigation strip with prev/next, 「第 N 条,共 M 条 · 视图名」, and close at the far right.
    • Second row: the record itself.
    • Visible actions are back to at most 3. In the record header bar, actions that don't fit the width fold into ⋯.
    • The spec maxVisible/mobileMaxVisible describes, containers.tsx JSDoc and content/docs/ui/pages.mdx all say "3 on every header", with the record-bar width fold as an upper bound. The changeset grades it Clause-②: yes (widening), patch.

    Claim amendments: 7057686487 (drawer stack, ApprovalsInbox test, generated manifest) and 7058720991 (pages.mdx). Follow-up #35997 (p3, widthCap reset on record switch) is nested here and unclaimed. #35840 is folded in. defaultMaxVisible has no callers but stays an exported member; removing it would be a public removal. pm:dispatched removed.

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

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions