Skip to content

记录页编辑状态:「取消」是蓝色主按钮、「保存」是描边,主次反了;有默认值的必填列在新行上显示红框 #35816

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-20 原话:「更新最新的代码,再确认」。这是确认 #35599(PR #35755)合入效果时看到的。

已确认可用(主干 7878cf0557,本机环境,浏览器实测)

对象「会议」和它的主从子表「待办事项」:点头部「编辑」,主记录字段和子表的行在同一页一起进入编辑;改了「参会人数」并新增一行待办,点一次「保存」,两处都保存成功,动态里记了一条更新。

现状里的两处问题

  1. 按钮主次反了:编辑状态下头部是「× 取消」和「✓ 保存」。「取消」是蓝色实心的主按钮,「保存」是描边的次要按钮。用户的手会先落到蓝色按钮上,结果是放弃修改。
  2. 必填红框误报:新增一行只填了名称,「状态」列(必填)立刻显示红框。实际没选状态直接保存也成功了,保存后这一行的状态是「待处理」(字段的默认值)。也就是:默认值没有预填到新行里,界面却按「必填未填」报了红。

现状:取消是主按钮;新行的状态列显示红框

要做的

  • 编辑状态下「保存」是主按钮(实心),「取消」是次要按钮。顺序保持「取消、保存」或改为「保存、取消」由实现方按现有表单的惯例定,全站一致。
  • 新增的子表行预填字段的默认值(这里是状态 = 待处理)。预填后不再出现红框。
  • 必填且没有默认值的列:新行刚出现、用户还没碰过时不报红;点保存时还没填,再报红并说明。

不做的

  • 不改一起保存的事务和请求方式。

验收

  • 记录页进入编辑:「保存」是实心主按钮,「取消」不是。
  • 「待办事项」新增一行:状态列已是「待处理」,没有红框。
  • 给子表加一个必填且无默认值的列:新行不立刻报红;直接点保存,这一格报红并有文字说明,整次保存不提交。

Reader: domain:ui 车道。ui/packages/app-shell/src/views/RecordDetailView.tsx(编辑状态的头部按钮)、ui/packages/plugin-form/src/MasterDetailForm.tsx(新行的默认值与必填提示)。

Dedupe: 记录页 编辑 取消 保存 主按钮(objectstack,open)→ 无同题卡;相关:#35599(已关)。

正文最后更新:2026-11-20T09:38Z

Activity

  1. added
    bug
    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 · Bug · record-page edit state: 「取消」 is the blue primary button and 「保存」 the outline one; a required column with a default shows a red box on a new line although the save succeeds; child of the maintainer-directed record-page topic #35590 → p2 as set by the coordinator (not changed by triage) · size S.

  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_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 · child of the maintainer-directed record-page topic #35590, on seat 5's go (Bill 09:37Z 「都可以派」, recommended yes and pending his word; released if he says stop) · folded with #35816, #35835 and #35745 into one PR · 2026-11-20T12:29Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1
    Branch: claude/issue-35816-record-page-polish
    Worktree: objectstack-issue-35816
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface (shared by the three folded cards):

  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_01Utp6CbSphdunq2aJq7ktuY

    Release · area ux-1 · 2026-11-20T12:32Z

    Released on the maintainer's word via seat 5 (Bill 2026-11-20 12:31Z 「你处理完当前任务就不再处理专题卡任务」). No code was written: the dev was stopped before its first commit, and branch claude/issue-35816-record-page-polish holds only origin/main 2ad42b5, with no PR. Back to pm:queue, unassigned. The claim's readings (open-PR scan, 0 prior rulings) still hold at 2ad42b5 for whoever picks it up.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Fold pointer · 2026-11-20T18:14Z · This card rides card #35745 in one PR (claim on #35745, Area b1-R2, card thread session session_01L6bhgVhfKtUtFdDWNgeCCE, branch claude/project-thread-qtdpi0). The PR carries Fixes #35816.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-20T18:48Z · fold rider of #35745
    Area: b1-R2
    Session: session_01L6bhgVhfKtUtFdDWNgeCCE (the card thread)
    Account: os-sales
    Branch: claude/project-thread-qtdpi0
    Seat: repo:objectstack#1
    Domain: domain:ui
    Fold-or-serial: fold. This card rides #35745 in one PR (the card thread's PR), which carries Fixes #35816; the full claim (file surface, container and model, Clause-②, Metadata-protocol, premise, basis) is the one on #35745. It is restated here because a PR that closes a card needs a Claim: on that card naming its branch; the earlier fold pointer on this card was not a claim.
    Note: the branch is the card thread's harness push branch, a measured platform exception to claude/issue-<n>-<slug>.

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions