Skip to content

记录页子表页签恢复读者调整:每个子表页签的菜单可左移、右移、隐藏,「更多」里可恢复默认(承 #35595) #35783

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Ruling-ref: priority:p1 · the maintainer, 2026-11-20 (seat 5 decision card on the #35763 removal): 「先合并,另开卡恢复」

Split from #35595 by seat 5, area ux-1. ⛔ Not a claim.

What happens today (after PR #35763)

What to do

  1. Give each related-list tab a menu with 「左移」, 「右移」 and 「隐藏」. They write the same stored arrangement through relatedArrangement.ts's reducer, so a stored order and stored hides keep working.
  2. Put a reset entry in the tab row's 「更多」 menu: 「恢复默认顺序」 and show the hidden lists again. This also covers the drawer and the embedded pane, which have no rail foot.
  3. Reuse the existing i18n keys. Add a key only where none fits.
  4. Delete RelatedCardStack, RelatedCardMenu and useRelatedArrangement if nothing else imports them, along with their tests. Move the reducer's tests over if they live with the deleted files.
  5. Overview, Attachments, Approvals and Activity cannot be moved or hidden.

Done when

Reader: domain:ui lane, ui/packages/plugin-detail/src/{RecordTabRow.tsx,synth/recordTabRow.ts,synth/relatedArrangement.ts}.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 · follow-up to #35595, filed by the area on the maintainer's 2026-11-20 decision 「先合并,另开卡恢复」 (p1) · 2026-11-20T08:45Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1
    Branch: claude/issue-35783-related-tab-arrangement
    Worktree: objectstack-issue-35783
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface:

    • ui/packages/plugin-detail/src/{RecordTabRow.tsx,synth/recordTabRow.ts,synth/relatedArrangement.ts,RecordPageColumns.tsx}
    • the removal of RelatedCardStack.tsx, RelatedCardMenu.tsx and useRelatedArrangement.ts (if nothing else imports them) and their tests
    • ui/packages/components/src/renderers/layout/containers.tsx, the tabs container only
    • i18n keys in ui/packages/i18n/src/locales/*.ts, only where no existing key fits
    • the record-tab items in docs/qa/platform-checklist/areas/*.json
    • these files' tests, one e2e under ui/e2e/, and the root .changeset/
    • ⛔ RecordDetailView.tsx: stop and report first.
    • ⛔ No packages/spec/**.
      Container & model: M, mode:subagent, model: default tier, effort: high
      Clause-②: no
      Metadata-protocol: none
      Responsibility: n/a. This puts back reader arrangement that PR feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs #35763 removed on purpose; the maintainer chose to restore it in a follow-up.
      Thread-read: none
      Premise: holds at origin/main df81f4c. relatedArrangement.ts and the three card-era files exist, and feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs #35763 has merged (b0c624a).
      Prior rulings read: check-prior-rulings --terms "related arrangement,reorder,hide related,tab menu" --paths RecordTabRow.tsx,synth/relatedArrangement.ts returned 0 ADR hits and 0 thread rulings.
      Serial constraints cleared: os-verify-lock --depth is depth 1 → go. The open-PR file scan runs at dispatch.
      Scope: card items 1–5. Fixes #35783.
  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
    os-dev-report

    {
      "issue": 35783,
      "status": "done",
      "branch": "claude/issue-35783-related-tab-arrangement",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35818",
      "session": "session_01Utp6CbSphdunq2aJq7ktuY",
      "premise_still_valid": true,
      "summary": "Each related-list tab is its own menu again: the open related tab draws a chevron and its second click (or Enter/Space/ArrowDown) opens 左移 / 右移 / 隐藏, all written through editRelatedArrangement into the same stored per-reader arrangement, so stored orders and hides keep working; hiding the open tab returns to 概览. 「更多」 ends with 「恢复默认顺序」 (restore-default-arrangement) whenever the arrangement is not the default, drawn as a bare 「更多」 if nothing else is in it, so the drawer and embedded pane (no rail) can reset too; 概览/附件/审批/动态 carry no menu. RelatedCardStack.tsx and useRelatedArrangement.ts are deleted (their two foot-line helpers moved into RecordPageColumns.tsx); RelatedCardMenu.tsx is KEPT because RelatedList.tsx (outside the fence) still imports it. Two i18n keys added in all 11 packs (detail.recordTabMoveBefore/After, no existing key fitted 左移/右移); hide, reset and the bare trigger reuse existing keys. RecordDetailView.tsx untouched. PR #35818, final head 17dd9e49a85, 21 files +535/-461 (996 changed lines, 435 of the deletions are the two removed files). The unreleased #35763 changeset bullet saying arrangement is gone is rewritten as a declared DELIBERATE CORRECTION (check-empty-changeset red by design).",
      "tests": "From ui/ under os-verify-lock: vitest packages/plugin-detail/ + packages/i18n/ + app-shell defaults-maps-mirror-en-pack at 819ea87ca9a (later commit 17dd9e49a85 touches .changeset only): Test Files 498 passed | 1 skipped, Tests 5549 passed | 31 skipped, VERDICT command-exit 0. RecordPageColumns.readerArrangement-35595.test.tsx: 15 passed (9 existing + 6 new pins: move, hide, reset in drawer, bare-更多 reset, fixed tabs, inactive tab selects on click/Enter). Playwright record-tabs-rail-35595.spec.ts Chromium (temporary config without webServer, removed after): 6 passed (5 existing + 1 new move/hide/reset case, order-only, no width assertions). type-check @object-ui/plugin-detail and @object-ui/i18n: both Done, VERDICT 0; ui type-check:e2e VERDICT 0. Ablations via scripts/ablation-replace.mjs (subject imported from src by relative path, no dist in between; each anchor x1→x0, blob changed, restored blob == HEAD 93e1fe9249b5 and git diff HEAD empty): move no-op → 1 failed/14 passed; hide no-op → 1 failed/14 passed; reset (onResetArrangement → void 0) → 2 failed/13 passed (the first attempt with replacement 'undefined' was refused by the tool because the text already occurs in the file: it ran nothing and restored, then redone); fixed (Attachments given arrange) → 1 failed/14 passed.",
      "gates": "Local, head 17dd9e49a85: dispatch-gates --commands derived 48 families; all run (--ran: 48 derived, 48 run, 0 NOT-MEASURED, 0 UNRUN). Exit codes captured per command before any pipe: 47 exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 1 = the declared DELIBERATE CORRECTION of .changeset/35595-35596-record-tabs-rail.md (red by design, confirmation is the seat's record). pnpm --dir ui exec vitest run scripts/: 171 files passed | 2 skipped, 5092 tests, VERDICT 0. check-platform-checklist --changed-from origin/main: OK, 2 anchors judged, 0 lost (owed for the deleted exports). overlap-check before each of 3 pushes: exit 0 (shares locale files with #35747, merges cleanly). Closure build pnpm turbo run build --filter='@object-ui/plugin-detail^...' --concurrency=2: 52/52, VERDICT 0. CI on PR #35818 at report time: in_progress (23 check-runs listed, none concluded beyond skipped opt-ins); not waited on.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35818/assignees, one dispatch fw-20261120T094115Z-8cb052, read back identical, assignee os-bill, no labels); relay os-dev-report comment on #35783 via post-stamped.mjs. Plus 3 git push to the claim branch (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — with RelatedCardStack gone nothing in production provides RelatedCardChromeContext, so RelatedList.tsx's cardChrome branch (RelatedPanelHandle, RelatedCardMenu) can no longer draw; dead code outside the fence (RelatedList.tsx), only tests provide the context. RelatedCardMenu.tsx kept for that reason.",
        "carrier: none · noted, not filed — stale comments naming RelatedCardStack in ui/packages/app-shell/src/views/RecordDetailView.tsx (~1277, ~4327), ui/packages/plugin-detail/src/RelatedList.tsx (~1370) and ui/packages/plugin-detail/README.md:849; outside the fence."
      ]
    }
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-20T10:32Z: PR #35818 merged as 1d7015a. L1-a gave ACCEPT 7036869352 with no required items, and the landing comment is 7036879349. This card closed on the merge.

    What changed

    • Readers can arrange related lists again from each related tab's menu: 左移, 右移 and 隐藏.
    • 「更多」 carries 「恢复默认顺序」, and it works in the drawer and the embedded pane too.
    • Stored orders and hides keep applying.
    • The fixed tabs (概览, 附件, 审批, 动态) have no menu.
    • RelatedCardStack and useRelatedArrangement are deleted.

    Noted, not filed: in RTL locales the ←/→ icons are still not mirrored. RelatedList's cardChrome branch is dead in production, and stale RelatedCardStack comments remain.

    pm:dispatched removed.

  6. removed
    pm:dispatched
    on Nov 20, 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:uienhancementpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions