Skip to content

记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-20 原话:「然后我看了几个软件,都没有staging 这么明显的条。比如你现在的效果图,顶部已经显示一个谈判,如果需要切换,做成下拉菜单就可以。还有感觉记录详情页也不需要显示高亮字段了。」2026-11-21:「记录页图 41 的方向定了,立卡」。

现状(本机环境实测于 7878cf0557,代码位置核对于主干 8c18a362a2)

要做的

效果图(图 41 第四张):

阶段改下拉

  1. 自动生成的默认记录页不再画阶段条,也不再画顶部那一排关键字段。
  2. 记录名旁边的状态标签就是阶段。有编辑权限的人看到标签带一个小箭头,点它出下拉;没有权限的人只看到标签。
  3. 下拉里按顺序列出全部阶段,当前的打勾。按对象的流转规则不能去的阶段置灰,并写一句原因。
  4. 选了需要补信息的阶段(例如改成「失败」必须填原因):弹出只含那几个字段的小表单,填完才生效;校验不通过时说明缺什么,不能悄悄失败。
  5. 审批锁定期间下拉不可点。
  6. 阶段字段在字段分组里照常显示,和头部是同一个值。
  7. 对象没有阶段字段、只有普通状态字段时:头部状态标签同样可以点开下拉改,规则相同。

保留的

  • 阶段条和关键字段条这两个组件保留,手写记录页仍然可以放。只是默认页不再放。维护者:「我们已经开发好的功能也没必要作废」。
  • 「关键字段」这个声明保留,它还管着悬停卡片、子表默认显示的列、选择关联记录时的列。

协调席加的(有异议以维护者为准)

  • 第 3 条「列出全部并把不能去的置灰」(另一种是只列能去的)。
  • 第 7 条把普通状态字段也做成同样的下拉。

取代和影响

不做的

  • 不做参照产品里「每个阶段的指导说明、该填的字段清单」。
  • 不改列表、看板里改阶段的方式。

验收

  • 声明了阶段字段和关键字段的对象(商机):默认记录页上没有阶段条,没有顶部关键字段排;这些字段在各自的分组里都在。
  • 有编辑权限:点状态标签出下拉,选一个可去的阶段,头部标签和分组里的阶段字段同时变化,刷新后保持。
  • 流转规则不允许的阶段在下拉里是灰的,点不动,悬停或旁注能看到原因。
  • 选「失败」:出现只含「失败原因」的小表单;不填点确定,提示必填,阶段不变;填了之后才变。
  • 只读权限:标签没有箭头,点了没有反应。
  • 审批中的记录:下拉不可点。
  • 手写了记录页并放了阶段条的对象:阶段条照常显示。
  • 键盘:焦点在标签上按回车打开,上下键选择,回车确认,Esc 关闭且不改值。

Reader: domain:ui 车道。ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts、记录页头部组件。

Dedupe: 阶段条 去掉 下拉、关键字段 顶部 不显示(objectstack,open)→ 0。相邻:#35849(关系见上)。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-20T17:22Z
    Area: b1-R2
    Session: session_01L6bhgTcbvQNTSr6ij3TMW7 (the card thread)
    Account: os-sales
    Branch: claude/project-thread-tpkpoi (this card thread can push only this branch, a measured platform exception to the issue-numbered branch name)
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (the default page stops emitting record:highlights and record:path; headerDrawnFields goes, the body keeps every grouped field; an authored highlights slot is still honoured), ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx, new ui/packages/plugin-detail/src/RecordStageMenu.tsx and its export, ui/packages/components/src/renderers/layout/containers.tsx and record-header-bar-context.ts (the status tag renders the host's stage control), one hunk in ui/packages/app-shell/src/views/RecordDetailView.tsx (a file seat 5's #35853 is also editing; kept to that hunk), packages/lint/src/validate-semantic-roles.ts and its test (field-group-shadowed narrows to the title field, since groups are no longer emptied; rule id unchanged), i18n keys, tests, changesets. Not packages/spec, not related-list-body-table.ts.
    Container & model: L (two cards folded), mode:thread, model: default (opus) — dispatch-gates --tier on the paths: no path-derived mandate, effort: high
    Clause-②: yes (widening: an optional RecordHeaderState member and a new @object-ui/plugin-detail export; declaration face at TIER_DEFAULT)
    Metadata-protocol: semantic (the default record page no longer draws the stage bar and key-field strip for objects that declare them)
    Premise: re-read on main 8c18a362 by the thread: holds.
    Basis: epic #35590 children; the maintainer took the epic into this seat on 2026-11-20 17:14Z 「继续记录详情页的子任务 … #35590」 and confirmed this direction at 17:16:59Z: 「把阶段条和关键字段条去掉,是的」.
    Resume-from: none
    Fold-or-serial: fold. #35891 and #35849 are one PR per the coordinator's order in 7045581845 (same default-page builder logic); the PR carries Fixes #35891 and Fixes #35849.

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:dispatched (as set); rationale: area:ux · Feature · the default record page drops the stage bar and the header key-field strip; the stage becomes a status chip beside the record name with a dropdown (figure 41); child of topic #35590 → p2 as set by the coordinator · size M.

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:dispatchedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions