Skip to content

记录页两处:页签上方有约 48 的空白带;日期字段显示成「6天前」,和列表里的「11月13日」不一致 #35745

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-20 原话:「更新并验证」。这是验证记录页几个已合入 PR(#35679、#35691、#35708)时看到的两处。

现状(主干 598a34d043,本机环境,1280 宽,整页记录页,浏览器实测)

  1. 页签上方的空白带:顶栏 48 加一行头部 44,头部底边在 92;页签一行的顶边实测在 140。中间约 48 是空的。没有阶段条的对象(会议、客户)都是这样,头部压成一行省下的高度又被这条空白占掉了。
  2. 日期显示成相对时间:「会议」的「会议日期」是日期字段,值是 11 月 13 日。记录页上显示「6天前」,列表里同一条显示「11月13日」。同一环境里「销售商机」的「预计成交日期」是未来日期,记录页显示「2026年9月20日」。业务日期用相对时间,读的人要自己换算是哪天。

现状:页签上方的空白带,会议日期显示为 6天前

要做的

  • 头部和页签之间不留空白带:没有阶段条时,页签一行紧跟头部,间距和列表页「页面栏到视图栏」一致。
  • 日期、日期时间字段在记录页上显示具体日期,写法和列表一致;相对时间只作为悬停提示或跟在后面的次要文字。创建时间、修改时间这类系统时间可以保留相对写法(页脚的「2天前」)。

不做的

  • 不改互动页签里每条动态的相对时间。
  • 不改列表里的日期写法。

验收

  • 「会议」记录页(没有阶段条):页签顶边到头部底边的距离不超过 12。
  • 「会议日期」在记录页和列表里显示同一个具体日期。
  • 过去 7 天内、今天、未来的日期各验一条,都显示具体日期。

Reader: domain:ui 车道。ui/packages/app-shell/src/views/RecordDetailView.tsx(头部与页签之间的布局)、日期字段的只读显示(ui/packages/fields)。

Dedupe: 记录页 日期 相对时间、记录页 页签 上方 空白(objectstack,open)→ 无同题卡。

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 (a blank band of about 48 px above the record tabs, and date fields shown as "6 days ago" where the list shows the date) · from the maintainer's record-page topic #35590 walkthrough → p2 as set.

  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:30Z
    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:33Z

    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

    Claim: PM loop · 2026-11-20T18:13Z
    Area: b1-R2
    Session: session_01L6bhgVhfKtUtFdDWNgeCCE (the card thread)
    Account: os-sales
    Branch: claude/project-thread-qtdpi0 (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/fields/src/index.tsx (date cell: a new optional prop shows the absolute date when no format is declared, relative as the hover hint), ui/packages/plugin-detail/src/DetailSection.tsx and HeaderHighlight.tsx (pass it), ui/packages/fields/src/widgets/GridField.tsx (LineItemsField: optional new-row start values; a new row's empty required cell is not flagged before the host reports it), ui/packages/plugin-form/src/RecordBodyTableEditor.tsx and masterDetailTx.ts (new rows prefill the child object's static defaults; a row holding only defaults still counts as blank and is not submitted), ui/packages/components/src/renderers/layout/containers.tsx (a host button declared primary takes the primary style and keeps its place; order 「取消、保存」 per form convention), ui/packages/app-shell/src/views/RecordDetailView.tsx (Save declared primary; the header-to-tabs gap last, after git merge origin/main), tests, one ui/e2e spec, changesets. Not packages/spec, not the server, not the save transaction, not buildDefaultPageSchema.ts. Shared files with neighbours: containers.tsx and RecordDetailView.tsx with #35891 (branch claude/project-thread-tpkpoi) and seat 5's #35853 (branch claude/project-thread-ntrvrh, another seat); kept to the hunks named here.
    Container & model: M (two bugs folded), mode:thread, model: default (opus) — dispatch-gates --tier on the paths: no path-derived mandate, effort: high
    Clause-②: yes (widening: optional props on published @object-ui/fields and @object-ui/components surfaces; declaration face at TIER_DEFAULT)
    Metadata-protocol: semantic (a date field with no declared format shows an absolute date on the record page instead of a relative one)
    Premise: re-read on main f44758b2 by the thread: holds (date cell defaults to relative outside grid columns; Cancel's order 99 puts it first, so the header styles it primary; blankRow sets every cell to null and ignores child defaults).
    Basis: epic #35590 children; the maintainer took the epic into this seat on 2026-11-20 17:14Z 「继续记录详情页的子任务 … #35590」 and at 18:04:35Z asked for full speed: 「全速开发」. Seat 5 released both cards to pm:queue (7039629914, 7039652583).
    Resume-from: none (seat 5's claude/issue-35816-record-page-polish holds only origin/main 2ad42b5, no commits)
    Fold-or-serial: fold. #35745 and #35816 are one PR (seat 5's earlier fold reading: both are record-page polish found in the same verification round, same view); the PR carries Fixes #35745 and 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_01L6bhgVhfKtUtFdDWNgeCCE
    os-dev-report

    {
      "issue": 35745,
      "status": "done",
      "branch": "claude/project-thread-qtdpi0",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35937",
      "session": "session_01L6bhgVhfKtUtFdDWNgeCCE",
      "premise_still_valid": true,
      "summary": "One PR for #35745 and #35816 (folded). Record page: a date field with no format writes the date with its year (relative phrase as tooltip) in field sections and the highlights strip; the 48px band above the tabs is now 12px; Save is the edit state's one filled button after Cancel (page:header honours a host button declaring variant primary); a new master-detail line starts on the child's static defaults, its empty required cells read red only after a refused save, and a line left on its defaults is skipped at save. #35853 had not landed, built on main.",
      "tests": "Under the verify lock: @object-ui/fields 308 files/4688 passed, plugin-form 241/2697, plugin-detail 393/3606, components 492/4733, app-shell 2350/22040, each exit 0; type-check exit 0 in all five. After merging main 643fe3bc: 12 touched files/156 passed. Migrated recordPage.deadlineSettled-11815 (text = absolute date, phrase moved to tooltip); voided none. Ablations (restored, tree clean): DetailSection absoluteDate removed 3/9 red; hostPrimary undefined 2/8 red; GridField !newRowWaits removed 1/54 red; isBlankRow newRowValues dropped 1/7 red.",
      "gates": "dispatch-gates --ran: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN; 39 exit 0. `pnpm --dir ui exec vitest run scripts/` exit 1 = OOM-killed by the container memory limit after the console closure built (76/76) -> not measured locally, covered by CI Lint checks. check:test-source-alias found one test missing the module-top react-runtime import, fixed, exit 0. check:type-check-debt --re-measure OK. overlap-check clean vs main, #35910, #35921. CI on head 0baf37d5: 62 check runs, none failed or pending (45 success, the rest skipped) (Lint & Repo Gates, Lint UI, TypeScript Type Check, Lint · PM dispatch-gates success); mergeable_state clean.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — mcp__github__issue_read (read-only); subscribe_pr_activity is the harness subscription, not a GitHub write",
      "api_writes": "0 — GitHub writes went through scripts/pm/fleet-write/dispatch.mjs: pr_create #35937 (assignee os-sales), issue_patch #35937 body (follow-up #35940 line)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: MasterDetailForm new rows (prefill defaults, early required flags) · evidence: raised by L1-c · filed by seat as #35940 · noted in PR body"
      ]
    }

    Generated by Claude Code

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