Skip to content

Phone comments thread page: the header shows the record name and opens the record; list comments helpers deduped #39171

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhdHJJKEk4qyMAEUoz

立卡门类别:③ 专题子卡的后续(#39086 / PR #39170 交回时,座位裁定「照现状上线,§9 页头记录名另立 p3 卡」,席位消息 2026-12-02T20:09Z)。Source: #39086
Part of #39077 · follow-up of #39086 (U4)
定级:area:ux · Feature · priority:p3 (seat ruling on hand-back) · reach: phone list page, a thread opened from the view's comments page · evidence: read (PR #39170 os-dev report, #39086 comment 7357227732)

维护者速读

Scope and acceptance

  • 1 — header title. CommentsPage (ui/packages/plugin-detail/src/comments/CommentsPage.tsx, published @object-ui/plugin-detail) draws a fixed back label and title in its header and takes no title or press prop. Add one optional prop, a header title the host supplies with an optional press handler, and pass the record's name and an open-record press from the list page's thread level (ui/packages/app-shell/src/views/objectViewCommentsPage.tsx). The record page's own phone comments page keeps today's header (it passes nothing).
    • Acceptance (phone viewport): on the list page's comments page, a thread's header reads the record's name; tapping it opens the record page; Back from the record returns to the thread. The record page's phone comments header is unchanged. A component test pins both hosts.
  • 2 — helper dedupe. The mention roster (useMentionRoster) and the record-discussion mount in objectViewCommentsPage.tsx mirror the private helpers in objectViewCommentsColumn.tsx. Fold both into one shared private module under ui/packages/app-shell/src/views/. No behaviour change: the desktop column's and the phone page's tests stay green unchanged.
  • Size: S (about 40 lines for item 1, plus a small move for item 2).
  • Clause-②: yes (widening) — one new optional prop on a published package's component. No locale key: the record name is data.
  • Metadata-protocol: none
  • Card thread: yes — per pm-dispatch dispatch-runbook.md 卡线程 (Clause-② yes).
  • Likely files: CommentsPage.tsx and its test, objectViewCommentsPage.tsx, objectViewCommentsColumn.tsx, a new shared helper module beside them, the changeset.

Dedupe: CommentsPage title, phone comments header record name, useMentionRoster (open issues) → none.

Activity

  1. added
    pm:queue
    domain:ui
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhdHJJKEk4qyMAEUoz

    2026-12-02T20:16Z · L1 nits on PR #39170 carried here (not owed there; L1 record 7357387855). Item 2 above is L1's N2. Two more for whoever builds this card to weigh, each in or out with a reason:

    • N1: on a deployment with a data page size set, a thread that sits past the first page of its record's comment read is reported gone, and the phone thread page falls back to the cards (ThreadGone reads useRecordComments().threads).
    • N3: the focus return to the comments icon after closing the page finds the icon by a test id.
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim: card thread of seat repo:objectstack@os-support-ai, epic #39077 (list-page comments), follow-up of U4 (#39086)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufzi28DWsvPcvybRuSrY
    Account: os-support-ai
    Branch: claude/project-thread-u2zmrv
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: ui/packages/plugin-detail/src/comments/CommentsPage.tsx and its test; ui/packages/app-shell/src/views/objectViewCommentsPage.tsx (added by #39170); ui/packages/app-shell/src/views/objectViewCommentsColumn.tsx; one new private module ui/packages/app-shell/src/views/objectViewCommentsShared.tsx (the name may shift); ui/packages/app-shell/src/views/ObjectView.phoneCommentsPage-39086.test.tsx; content/docs/frontend/plugins/plugin-detail.mdx (the prop's doc line); a changeset. Stop on breach; explain in the report.
    Container & model: S, mode:card-thread (built in the thread), model: TIER_DEFAULT (dispatch-gates --tier at 360820b4 prints no MANDATORY line), effort: high (reason: the coordinator brief ordered effort high for every card thread of this epic, and the card widens a published component); contract-tier L2 at CONTRACT_REVIEW_TIER; L1 by osa-L1-a.
    Clause-②: yes (widening): one optional prop on the published @object-ui/plugin-detail CommentsPage
    Metadata-protocol: none
    Responsibility: n/a — follow-up card
    Premise: CommentsPage on main takes no title or press prop. Per #39077 §9, the phone thread page header shows the record's name, and tapping it opens the record. U4 (#39170) shipped the header as "Thread", deferring the name to this card. The mention roster and the record-discussion mount in objectViewCommentsPage.tsx mirror private helpers in objectViewCommentsColumn.tsx; this card moves them into one private module. L1 nits N1 and N3 from 7357497592 are weighed in the PR body, in or out with a reason each.
    Serial constraints: objectViewCommentsPage.tsx arrives with #39170 (in the merge queue); no code starts before #39170 merges. No other in-flight claim names these paths.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    2026-12-02T21:50Z · Takeover · seat repo:objectstack@os-support-ai (os-support-ai) is out of tokens; seat repo:objectstack@os-bill continues its claim. The seat does not change hands (席不过户); only the card does.

    Release: claim 7357627095 (session session_01WGufzhPdWmTd47Fi2bKYZS (card thread session_01WGufzi28DWsvPcvybRuSrY), account os-support-ai, seat repo:objectstack@os-support-ai) — taken over, not abandoned. Provenance: who = the maintainer (Bill, os-bill); words, verbatim: 「os-support-ai 没有 token了,他的任务你都接手,包括他处理中的专题你也接手 https://github.com/objectstack-ai/objectstack/pull/38766」; where = the fleet project of seat repo:objectstack@os-bill, 2026-12-02T21:45Z, relayed into the seat thread by the project coordinator with his message attached.
    Handover: branch claude/project-thread-u2zmrv at e32afa6c3d9073ace43047274cf3f793ac5abfbf, three commits on main (dea4816 prop, e2a415d phone header and shared helpers, e32afa6 docs and changeset); no PR and no os-dev report yet, so the gates are unread. Picked-up work is UNVERIFIED until this seat re-reads it at that head.
    Assignee: os-support-ai → os-bill in this stroke.

    Claim: PM loop round 8 (takeover of 7357627095)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Account: os-bill
    Branch: claude/project-thread-u2zmrv
    Seat: repo:objectstack@os-bill
    File surface: unchanged from 7357627095.
    Container & model: S, mode:thread (the build continues in a new card thread, Clause-② yes), model: TIER_DEFAULT, effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Thread-read: 7357627095
    Premise: holds (#39171 open; the three commits sit on the branch, read now).
    Resume-from: claude/project-thread-u2zmrv@e32afa6c3d9073ace43047274cf3f793ac5abfbf
    Serial constraints cleared: none new — the surface is the one 7357627095 cleared.

  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CYTmR3vxCiMuB31LAk
    os-dev-report

    2026-12-02T22:58Z · takeover of claim 7357627095 (seat claim 7359882255) · PR #39193 · head f03d511

    {
      "issue": 39171,
      "status": "done",
      "branch": "claude/project-thread-hb5wap",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39193",
      "session": "session_01Utp6CYTmR3vxCiMuB31LAk",
      "premise_still_valid": true,
      "summary": "Resumed claude/project-thread-u2zmrv@e32afa6c on the card-thread branch claude/project-thread-hb5wap and merged origin/main (4 commits behind; #39170 already in). Re-read the inherited head: CommentsPage takes an optional threadTitle { label, onPress? }; the phone list page's thread level names its record from the thread's card and opens it; the mention roster and record-discussion mount live once in objectViewCommentsShared.tsx. One change this round: the inherited head exported a new CommentsPageThreadTitle type from plugin-detail's two index files, outside claim 7357627095's surface, so the type is now inline on the prop and both index files are reverted (diff stays inside the surface; the widening is the one prop). L1 N1 and N3 are weighed out in the PR body, each with a reason.",
      "tests": "On tree d0b9f838 (head f03d5112 differs only in a commit message). 5 comment files: 75 passed. pnpm --filter @object-ui/plugin-detail test: 426 files passed + 1 skipped, 4044 tests passed + 18 skipped. app-shell src/views ObjectView*, RecordDetailView.comment*, useViewCommentThreads*, recordCommentsPanel*: 121 files, 1082 passed (whole app-shell package left to CI). Ablation via scripts/ablation-replace.mjs on objectViewCommentsPage.tsx: threadTitle={recordName ? -> threadTitle={false ? (blob 8c7952cd -> 2104b009), header case red (1 failed, 10 passed); restored, blob == HEAD, git diff HEAD empty.",
      "gates": "type-check plugin-detail and app-shell: exit 0 each. dispatch-gates --commands: 71 derived; first pass with a 240 s per-gate cap 67 exit 0; re-run uncapped, exit 0 each: check:skill-examples (first exit 3, client-react unbuilt, then built), pnpm --dir ui exec vitest run --maxWorkers=2 scripts/ (172 files, 5159 passed), check:query-options-erasure and check:type-check-debt (first exit 124 on the shared box). --ran with an exit code on every line: 71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN. check-new-cross-file-line-citations: 0 new. PR check-runs: not yet concluded at report time; CI owns them.",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39193/assignees, one stroke, run 46990031957), and this os-dev-report comment via post-stamped.mjs on issue 39171",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "carrier: seat (L1 N1, #39171 comment 7357497592) · a thread past the first page of its record's comment read (data page size set) reads as gone and the phone page falls back to the cards; the cap is readComments in useRecordDiscussion.ts, which the record page shares; outside this surface · noted, not filed",
        "carrier: seat (L1 N3, same comment) · the focus return after closing the phone comments page finds the icon through the phone bar's test id (objectViewComments.tsx); outside this surface and works today · noted, not filed"
      ]
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-02T22:59Z · Claim amendment to 7359882255 (zone comments-39077 of seat repo:objectstack@os-bill)
    Area: comments-39077
    Thread session: session_01Utp6CYTmR3vxCiMuB31LAk (the card thread that resumed the build)
    Branch: claude/project-thread-hb5wap (the card thread's own branch, started from claude/project-thread-u2zmrv@e32afa6c with main merged; replaces the Branch: line of 7359882255). PR #39193, draft.
    File surface: unchanged; the two plugin-detail index files the inherited commits touched are reverted (the new type is inline on the prop).

  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-03T00:06Z · Close-out · PR #39193 merged (2026-12-02T23:43Z, merge commit 4b1be66d33), closing this card as Fixes #39171 intended (sweep-closed-cards --pr 39193: named target, exit 0).

    • Delivered: the phone list page's thread header reads the record's name and opens the record; the list comment surfaces share one roster and discussion mount. ACCEPT 7361865836, contract review 7361543523 (TIER_DEFAULT, PASS).
    • Follow-up: Phone list comments: a thread past the first page of its record's comment read is reported gone #39195 (a thread past the first page of the record's comment read is reported gone; L1 N1). N3 accepted as a deviation.
    • pm:dispatched removed in this stroke; domain:* and area:* stay.
  9. removed
    pm:dispatched
    on Dec 3, 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:uipriority:p3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions