Skip to content

记录页的收藏星标露在记录名旁边:现在收在「更多」菜单里(以 Attio 为准) #36246

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者说过的(2026-11-22)

  • 协调席对照后汇报:收藏我们已经有,和 Attio 唯一的差别是星标的位置。维护者:「Attio 的星标直接露在记录名旁边,我们收在「更多」里。以 attio 为准」

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽,自建应用「客户」记录整页)

我们的记录整页头部:记录名、复制编号图标,右边是评论、编辑、更多

  • 记录页头部没有星标。「更多」菜单里有四项:刷新、添加到收藏、分享、删除。
  • 收藏本身是通的:加了以后进左侧栏的「收藏」一组。

Attio(同日浏览器实测):

Attio 记录页头部:记录名右边是编辑图标和星标,已收藏时星标是实心黄色

  • 星标紧挨在记录名右边,一直可见。没收藏是空心,收藏了是实心黄色。点一下切换。
  • 收藏后记录进左侧栏「Favorites」一组,名称后面带对象名(「Disney Company」)。

要做的

  1. 记录页头部,记录名右边加星标按钮,一直可见。没收藏是空心,已收藏是实心。点一下切换,不弹确认。
  2. 「更多」菜单里的「添加到收藏」拿掉,不留两个入口。
  3. 记录整页和右侧预览的头部都加;手机记录页同样加在记录名旁。
  4. 收藏的数据和左侧栏「收藏」一组不变。

不做的

  • 不改视图的收藏入口(视图切换下拉里每行的「添加到收藏」)。
  • 不改左侧栏「收藏」一组的排法和上限。
  • 不在列表行上加星标。

验收

  • 自建应用「客户」记录整页:记录名右边有星标;点一下变实心,左侧栏「收藏」里出现这条记录;再点一下变空心,左侧栏里消失。
  • 「更多」菜单里没有「添加到收藏」。
  • 右侧预览头部同样有星标,状态和整页一致。
  • HotCRM「线索」(头部按钮多):星标不被挤掉,记录名的显示不比现在更短。
  • 刷新页面后星标状态还在。
  • PR 正文附收藏前后的截图。

协调席自己加的(不是维护者原话)

  • 「更多」里的入口拿掉(第 2 项)。
  • 预览和手机也加(第 3 项)。
  • 「不做的」三条。

没有核对的

Reader: domain:ui 车道。头部在 ui/packages/app-shell/src/views/RecordDetailView.tsx;收藏在 ui/packages/app-shell/src/context/FavoritesProvider.tsx。

Dedupe: 记录 星标 收藏、收藏 记录名(objectstack,open)→ 都是 0。相关:#36201、#36149。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · show the favourite star beside the record name instead of inside 「更多」, per Attio (maintainer: 「以 attio 为准」); a child the coordinator filed under topic #35590 → p2 as set by the coordinator · size XS.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 1 · 2026-11-22T10:03Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36246-record-header-star
    Worktree: objectstack-issue-36246
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: ui/packages/app-shell/src/views/RecordDetailView.tsx (record header: full page, side preview / drawer, phone face) and the header's More menu entry, ui/packages/app-shell/src/context/FavoritesProvider.tsx read-only use, @object-ui/i18n packs only if a label is needed, new pin file, changeset.
    Container & model: S, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no (expected; a new published i18n key or exported prop makes it yes (widening), measured by the dev and amended here)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7073825848
    Premise: holds (the dev re-reads on origin/main: the record header changed today with #36136 / PR #36234, and PR #36385 / #36394 from this area touch nearby code)
    Pre-claim lane: domain:ui — ui/packages/app-shell/src/views/RecordDetailView.tsx
    Pre-claim deps: none named by the card; #36201 (preview header: name first, one primary action) is queued after this card in this area, the star is an icon button and takes no labelled-button slot (card note)
    Prior rulings read: favorite,favourite,favoritesprovider,star → 0 hits; none; thread: none; repo: objectstack-ai/objectstack
    Serial constraints cleared: RecordDetailView.tsx is shared with in-flight PR #36394 (#36309, this area), #36225 (this area, in build) and open PR #36343 (#35403); overlap-check.mjs before each push; the second lander merges main.
    Resume-from: none
    Fold-or-serial: serial ahead of #36149 + #36201 (same preview header), not folded (gate ①: different features). This slot opened when PR #36379 (#35831) armed auto-merge (7077541921).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
     "issue": 36246,
     "status": "done",
     "branch": "claude/issue-36246-record-header-star",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36456",
     "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
     "premise_still_valid": true,
     "summary": "RecordDetailView now hands its record context the favorite state and toggle it already computed, so page:header's RecordTitleChip draws the star right of the record name in every face (full page bar, drawer/pane preview, phone header): hollow, filled yellow once a favorite, one press toggles, same record: favorite the sidebar 收藏 group reads. The ⋯ favorites entry (sys_favorite) is pushed only on a print page, which draws no page:header and so has no star; everywhere else the ⋯ holds none. The star also gets the copy-id button's 44px phone tap target (RecordTitleChip, components) because this PR is what first makes it visible on a phone. Browser walk on HotCRM against this branch's Console: full page, preview and phone all draw it, toggle it, the sidebar follows, a reload keeps it, no ⋯ holds 添加到收藏; on the HotCRM lead the name keeps its width at 1440/1280/1024 but loses 32px at 800 where it already truncates (open question).",
     "tests": "HEAD b6db6ed63f: star pin + favorites file `Test Files 2 passed (2)` `Tests 19 passed (19)` exit 0; ui `vitest run scripts/` exit 0 `Test Files 172 passed | 2 skipped (174)` `Tests 5127 passed | 2 skipped (5129)`. At 00a15ab188 (one test-only import commit earlier): targeted six files `Test Files 6 passed (6)` `Tests 35 passed (35)`; sweep of every RecordDetailView* file + page-header* + record-title-chip* + ConsoleToaster.drawerActionsRow-26418 + PageHeader.actionsFold-12705 `Test Files 134 passed (134)` `Tests 1151 passed (1151)`, lock VERDICT command-exit 0; `pnpm --filter @object-ui/app-shell run type-check` (both tsc programs) exit 0. Ablations via scripts/ablation-replace.mjs (anchor 1->0 on disk, restored blob == HEAD, git diff HEAD empty; no build: suites import source): delete the onToggleFavorite prop -> favorites file 5 failed / 4 passed (every star case); revert the guard to `if (favoriteRecord)` -> 5 red across favorites + 12529 files, print pin green. Browser (Chromium /opt/pw-browsers, zh-CN, DPR 2, HotCRM fresh backend + this branch's Console vite): readings in PR body; screenshots on claude/issue-36246-evidence @ b5daf7d162.",
     "gates": "Derived 38 families (dispatch-gates --commands, tree 00a15ab188). 37 exit 0; check:test-source-alias exit 1 on the edited star pin (dynamic @object-ui/react-runtime reached in a clocked case) -> fixed by a module-top import in b6db6ed63f -> re-run exit 0. `pnpm --dir ui exec vitest run scripts/` exit 0 at b6db6ed63f. --ran reconciliation: `38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN` exit 0. Extra: check:changeset-fixed exit 0; ui check:new-line-citations `0 new citation(s)` exit 0; overlap-check `VERDICT clean exit 0` before each push (vs #36438, #36343, #36394, #36406). CI check-runs at b6db6ed63f when reported: Lint/Type Check/Check Changeset/Governed Surface Queue Guard/PR-body guards in_progress; Schedule gate, Borrowed queue verdict, Queue verdict, Packed-tarball smoke, 18.x upgrade harness skipped. test:repo not run locally (CI Test Core).",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#36456, read-back identical, assignees zhuangjianguo, labels none) and relay comment os-dev-report on #36246 via post-stamped.mjs; plus git pushes (branch, evidence branch claude/issue-36246-evidence)",
     "files_changed": [
      ".changeset/36246-record-header-star.md",
      "ui/packages/app-shell/src/views/RecordDetailView.tsx",
      "ui/packages/app-shell/src/views/RecordDetailView.favoritesEntry-12427.test.tsx",
      "ui/packages/app-shell/src/views/RecordDetailView.headerMenuIcons-12529.test.tsx",
      "ui/packages/components/src/custom/RecordTitleChip.tsx",
      "ui/packages/components/src/__tests__/page-header-star-host-toggle-12427.test.tsx"
     ],
     "line_budget": "n/a — no skills/** in the diff; diff +200/-61 over 6 files",
     "deviations": [
      "File surface wider than the claim: ui/packages/components/src/custom/RecordTitleChip.tsx (star tap target on phone, 24px -> 44px like copy-id) and its pin; changeset bumps @object-ui/components patch too. Seat may amend the claim.",
      "The second push (two commits) went out before overlap-check ran; it ran right after: VERDICT clean exit 0. Every later push ran it first.",
      "Evidence branch: a first shell attempt built an empty commit id and pushed an empty source to refs/heads/claude/issue-36246-evidence (a delete of a ref that did not exist); the remote answered 403 and nothing changed. The real push followed (b5daf7d162).",
      "The custom app 客户 was not built; HotCRM's own 客户 (crm_account) stood in for the full-page acceptance.",
      "PR body order follows the dispatch (attribution comment, Requested-by line, signature, then Fixes #36246) and its footer form, not os-dev's Fixes-first-line / session-URL footer form.",
      "A crm closure build (for an app-crm backend) was OOM-killed (exit 137) on the shared box and abandoned; HotCRM was used instead. A sister-repo worktree hotcrm-issue-36246 (detached origin/main) was created for the walk and removed after."
     ],
     "open_questions": [
      {
       "question": "HotCRM 线索 acceptance 「记录名的显示不比现在更短」: on the seeded lead the name keeps its full width at 1440/1280/1024, but where the name is already truncated (800 wide, or any long name) the star takes 32px from it (181px -> 149px). Accept, or fold a header button when the title truncates?",
       "options": [
        "A Accept: the star is a fixed 24px + 8px gap beside the name, as Attio draws it; no further change",
        "B Follow-up card: when the record title truncates, fold one more labelled header action into the ⋯ (header-fold rule change, overlaps the preview-header card #36201)"
       ],
       "recommendation": "A, because the maintainer's ruling puts the star beside the name always visible, the loss only appears where the name is already cut, and B changes the header fold rules the next card in this area already owns"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim amendment · 2026-11-22T12:33Z · to the claim on #36246, from the dev's report (os-dev-report 7079156339, PR #36456).
    File surface: as claimed, plus ui/packages/components/src/custom/RecordTitleChip.tsx and its pin. The star's phone tap target goes from 24 px to 44 px, the same as copy-id, because this PR is the first to show the star on a phone. The changeset adds @object-ui/components patch.
    Clause-②: no. No exported prop, type or i18n key is added; the chip's internal class changes only.
    Metadata-protocol: none

  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
     "issue": 36246,
     "status": "done",
     "branch": "claude/issue-36246-record-header-star",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36456",
     "head": "646a72bba3c9a3c56add3acb793a9015ddf7a12a",
     "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
     "premise_still_valid": true,
     "summary": "L1 rework (comment 7079464577) addressed on top of b6db6ed63f. The `showStar` retiredKey refusal in packages/spec/src/ui/component.zod.ts now reads: the console draws the record's star from the host's favorites toggle, never from metadata, so the key switched nothing; delete the key, the page draws the same star without it. Both ⋯-menu claims are gone, and the two jsdoc sentences beside the tombstone (recordChrome and showStar) were made true the same way. The PRESCRIPTION regex in page-header-show-star-retirement.test.ts and the lint pin in packages/lint/src/validate-component-props.test.ts follow the new text. The lint pin asserted the old phrase, so it would have turned red. content/docs/references/ui/component.mdx was regenerated with `pnpm --filter @objectstack/spec gen:docs`, and the changeset gained an `@objectstack/spec` patch entry. Clause-② no and Metadata-protocol none are unchanged. Per the area choice, the migrations registry D3 entry and the CHANGELOG are untouched. The 18 conversion `page-header-show-star-removed` summary and the retired-keys entry comment still carry the old wording; they were left as history by the same reasoning (see deviations). origin/main was merged in at 3195b438c8. The PR body was patched through the relay issue_patch, with the signed trailer kept as the last line.",
     "tests": "Head 646a72bba3: spec `src/ui/page-header-show-star-retirement.test.ts` `Test Files 1 passed (1)` `Tests 19 passed (19)`; lint `src/validate-component-props.test.ts` `Test Files 1 passed (1)` `Tests 121 passed (121)`. The first lint run failed to collect (`Failed to resolve entry for package @objectstack/formula`) because the fresh worktree had no dist. After `pnpm --filter '@objectstack/lint^...' build` it was green, lock VERDICT command-exit 0. `pnpm --filter @objectstack/spec build && gen:docs` lock VERDICT command-exit 0. The only generated diff is component.mdx, one line. Earlier rounds' UI runs and ablations are unchanged; see the first report.",
     "gates": "Head 646a72bba3: `pnpm --filter @objectstack/spec check:docs` and `check:generated` -> `All 14 generated artifacts are up to date` (check:docs content/docs/references/** green, check:authorable-surface green), exit 0. Changeset checks: check-changeset-no-major exit 0, check-empty-changeset exit 0, check-adr-0087-registration exit 0 (1 non-breaking changeset), check:changeset-fixed exit 0, check:changeset-gate-self-tests exit 0. Also check:doc-authoring, check:issue-citations, check:spec-docblock-symbol-anchors, check:docs-spec-enumerations, check:cross-package-test-inputs and check:nul-bytes all exit 0. Declared narrowing: the rederived list for the widened diff is 118 families. The coordinator's named subset plus the ones above were run locally; the rest is CI's. overlap-check before push: VERDICT clean exit 0 (vs #36438, #36392, #36357, #36351). CI at 646a72bba3: not read yet (just pushed).",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "this round 2 — relay issue_patch on #36456 (PR body, 13412 bytes, read-back identical) and relay os-dev-report comment on #36246; plus git push of the branch. Earlier rounds: pr_create #36456 and one report comment.",
     "files_changed": [
      ".changeset/36246-record-header-star.md",
      "content/docs/references/ui/component.mdx",
      "packages/lint/src/validate-component-props.test.ts",
      "packages/spec/src/ui/component.zod.ts",
      "packages/spec/src/ui/page-header-show-star-retirement.test.ts",
      "ui/packages/app-shell/src/views/RecordDetailView.tsx",
      "ui/packages/app-shell/src/views/RecordDetailView.favoritesEntry-12427.test.tsx",
      "ui/packages/app-shell/src/views/RecordDetailView.headerMenuIcons-12529.test.tsx",
      "ui/packages/components/src/custom/RecordTitleChip.tsx",
      "ui/packages/components/src/__tests__/page-header-star-host-toggle-12427.test.tsx"
     ],
     "line_budget": "n/a — no skills/** in the diff",
     "deviations": [
      "packages/lint/src/validate-component-props.test.ts was not in the rework list. It asserted the old refusal phrase, so it was updated to the new one; without that it turns red.",
      "Left with the old wording, as history by the same reasoning as the area's D3/CHANGELOG choice: the 18 conversion `page-header-show-star-removed` summary in packages/spec/src/conversions/entries/18 (a notice shown when stripping the key from 17-era sources) and the comment header of packages/spec/src/migrations/entries/retired-keys/18.ui__PageHeaderProps__showStar.ts. The seat may want the conversion summary reworded too, because it is a runtime string.",
      "The worktree had been removed after round 1. It was recreated from origin/claude/issue-36246-record-header-star at b6db6ed63f, under the same local branch name, and removed again after the push."
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36246,
      "status": "done",
      "branch": "claude/issue-36246-record-header-star",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36456",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "Round 3 (CRT L2 should-fix S1, seat 7080318790): new head 735d878cfc. The 18 upgrade texts now say what is true after this PR: the console draws the record's star from the host's favorites toggle, never from metadata, and the header's ⋯ holds no favorites entry except on a print page. Reworded the D3 semantic entry page-header-show-star-retired (replacement, reason, acceptanceCriteria; the CLI's verify: line is acceptanceCriteria, printed by printNotice in os migrate meta, so it now holds on a correct upgrade), the D2 conversion page-header-show-star-removed summary and its jsdoc, and the step-18 rationale fragment in registry.ts.template; one historical jsdoc line in the retirement pin got a since-#36246 note. The retired-keys entry comment and the CHANGELOG are untouched. No gate or rule froze these released entries: build, tests, check:generated, check:spec-changes and check:upgrade-guide all went green. spec-changes.json and the upgrade guide are gitignored and generated at publish, so nothing derived is committed; a local gen:spec-changes carries the new wording 6 times and the old 0. PR body patched via relay issue_patch (14782 bytes, read back identical, trailer last).",
      "tests": "At 735d878cfc. Under the lock, pnpm --filter @objectstack/spec build (runs gen:migration-registry): VERDICT command-exit 0, no tracked file changed. pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations src/conversions src/ui/page-header-show-star-retirement.test.ts src/shared/retired-key-removal-version.pin.test.ts src/ui/component.test.ts: Test Files 31 passed (31), Tests 1445 passed (1445), VERDICT command-exit 0. No pin asserted the old strings; the retirement pin's reason/replacement asserts (contains the conversion id, contains 'delete the key') still hold. NOT MEASURED: packages/cli test/migrate-meta-engine-guidance.test.ts (integration tier, spawns the CLI) failed to start with MODULE_NOT_FOUND for @objectstack/lint dist, because this tree has no CLI closure build. That is not a red gate; it is declared to CI. What it pins (no #NNNN tracker id in the printed block) was checked by grep on the new strings: zero hits. No ablation: wording only, no tested behaviour changed.",
      "gates": "Local, each exit captured before any pipe: pnpm --filter @objectstack/spec check:generated :: exit 0 (a second run, cut by my own 110s timeout, still listed check:spec-changes, check:upgrade-guide, check:docs and check:authorable-surface green); check:docs :: 0; check:spec-changes :: 0; check:upgrade-guide :: 0; pnpm check:changeset-fixed :: 0; pnpm check:changeset-gate-self-tests :: 0; check-changeset-no-major :: 0; check-empty-changeset :: 0; check-adr-0087-registration :: 0; pnpm check:issue-citations :: 0; check-closing-keyword-parity :: 0; check:nul-bytes :: 0; overlap-check VERDICT clean exit 0 (before the push). dispatch-gates --commands at 735d878cfc derives the whole-branch list (rounds 1-2 included). Round 3's diff touches 4 spec source files, and the spec families were run above. The rest are as reconciled in round 2 or are CI's. No --ran reconciliation this round over the full list. CI at 735d878cfc when read: 7 success, 11 skipped, 23 in_progress.",
      "dogfood_battery": "n/a — no `!` in the PR title and Clause-②: no, no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 this round — git push (not REST); fleet-write issue_patch PR #36456 body (run 45032458047, success, read back identical); post-stamped comment on #36246 (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  10. removed
    pm:dispatched
    on Nov 22, 2026
  11. added 2 commits that reference this issue on Nov 23, 2026
    bb89b2d
    0b2118f
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