Skip to content

Related list: the record-count badge's accessible name is hard-coded English ("3 records") in every locale #39680

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

What happens

On a record page in a 简体中文 console, for example a HotCRM opportunity's 商机产品明细 list, the count badge beside the list title has aria-label="3 records". A screen reader therefore announces English in a Chinese console, while the visible text and the rest of the page are Chinese.

Source: ui/packages/plugin-detail/src/RelatedList.tsx:4761:

aria-label={`${recordCount} records`}

The translated strings already exist and the same file uses them elsewhere: detail.relatedRecords / detail.relatedRecordOne (zh-Hans 「{{count}} 条记录」, ja 「{{count}} 件のレコード」), reached through the count === 1 ? … : … helper around line 3981.

Expected

The badge's accessible name goes through the same t('detail.relatedRecords' | 'detail.relatedRecordOne', { count }) helper, so it reads 「3 条记录」 in zh-CN.

Found during the new-company walkthrough retest on main at f7c60e5b86.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:queue · size XS, touched 2026-12-04T13:13Z. Rationale: the related list's count badge has the hard-coded aria-label "3 records" (RelatedList.tsx:4761), so a screen reader announces English in a Chinese console, while the translated string already exists in the same file. No UX problem is p3, accessibility included, so p3 → p2. A one-line swap plus its pin, size XS. Issue type set to Bug.
    Grade: p2 · reach: screen-reader users of every non-English console with related lists · evidence: read at the named line · claimable.

  3. added
    priority:p2
    and removed on Dec 4, 2026
  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Claim: PM loop round 8 · 2026-12-04T13:23Z
    Session: session_016WV4d1cnRvyiAqrarmDhZV
    Account: os-elon-musk
    Area: em-admin
    Branch: claude/issue-39680-wip
    Worktree: objectstack-issue-39680
    Domain: domain:ui
    Seat: repo:objectstack@os-elon-musk
    File surface: ui/packages/plugin-detail/src/RelatedList.tsx (the count badge's aria-label only), a pin test beside it, and a changeset.
    Container & model: XS, mode:subagent, model: default, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: a screen-reader user of a non-English console hears the related list's count in the console language.
    Thread-read: none
    Premise: per the card and its triage 7412572072.
    Pre-claim lane: zone em-admin, p2 pm:queue card, triage says claimable; picked by customer value.
    Pre-claim deps: none.
    Prior rulings read: none.
    Serial constraints cleared: check-handover.mjs --inflight --card=39680 reads no overlap. The two unread surfaces, #38415 and #35238, were read by hand; both claims say "File surface: none". Card comments re-read: triage only, no live claim.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV
    os-dev-report

    {
    "issue": 39680,
    "status": "blocked",
    "branch": "claude/issue-39680-wip",
    "pr": null,
    "session": "session_016WV4d1cnRvyiAqrarmDhZV",
    "premise_still_valid": true,
    "summary": "Premise holds on origin/main fcdb79d: the RelatedList header count badge hard-coded the English template 'N records' as its aria-label, while the same component already has the translated helper tabRecordCountLead (detail.relatedRecordOne at count 1, detail.relatedRecords otherwise). Commit af72942 on claude/issue-39680-wip routes the aria-label through that helper and adds the pin ui/packages/plugin-detail/src/RelatedList.i18n.test.tsx (zh-CN 3 rows reads '3 条记录', en 1 reads '1 record', en 3 reads '3 records', de 1 reads '1 Datensatz'); all four pass. STOPPED before the changeset and the PR on a file-surface breach: the existing test RelatedList.countPending-36235.test.tsx locates the badge by an aria-label ending in ' records', and its case 'a list whose parent reloads through no scope draws no count during the new parent's read' answers one row, whose label is now the correct singular '1 record', so that test goes red (expected '1', received null). The repair is one line in that test's headBadge selector, but that file is outside the ordered surface. Nothing else is blocked.",
    "tests": "pnpm --dir ui exec vitest run --maxWorkers=2 on RelatedList.i18n.test.tsx + RelatedList.countPending-36235.test.tsx + RelatedList.addPickerGuard.test.tsx at af72942 under os-verify-lock: 'Test Files 1 failed | 2 passed (3)', 'Tests 1 failed | 14 passed (15)', VERDICT command-exit 1. Pin 4/4 green; addPickerGuard green; the one red is countPending-36235's one-row case, AssertionError: expected null to be '1'. Prereq builds: @objectstack/spec build VERDICT 0; turbo build of the seven @objectstack packages objectui consumes VERDICT 0, 46/46 tasks. No ablation (stopped).",
    "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: exit 0, tree at af72942, 2 paths, 85 changed lines. Derived families NOT MEASURED, reason: stopped on the file-surface breach before the final commit; --ran not reconciled. No PR, so no check-runs.",
    "mcp_calls": "0",
    "api_writes": "1 — this comment via post-stamped (POST issues/39680/comments); plus git push of the probe and one commit (not REST).",
    "classifier_refusals": [],
    "open_questions": [
    { "question": "Widen the file surface to RelatedList.countPending-36235.test.tsx so its badge selector stops assuming the plural label?", "options": ["A: allow the one-line selector change in that test, then finish changeset + draft PR", "B: keep the surface and drop the singular from the badge, so en count 1 reads '1 records'"], "recommendation": "A, because the red is a direct consequence of the ordered change (a stale test selector), the fix is one line, and B ships the '1 records' grammar the helper exists to avoid." }
    ],
    "security_findings": "none",
    "out_of_scope_findings": []
    }

  7. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Claim amendment: 2026-12-04T13:41Z · amends claim 7412829177 · Area: em-admin
    File surface: adds ui/packages/plugin-detail/src/__tests__/RelatedList.countPending-36235.test.tsx, for the one-line headBadge selector only. The selector assumes the badge's aria-label is always plural, but after the fix the one-row case correctly reads "1 record" (dev report 7413216635). The pin test sits beside the component at ui/packages/plugin-detail/src/RelatedList.i18n.test.tsx.
    Serial constraints cleared: re-ran check-handover.mjs --inflight --card=39680 --paths=<that file>.
    Scope unchanged: Fixes #39680.

  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV
    os-dev-report

    {
    "issue": 39680,
    "status": "done",
    "branch": "claude/issue-39680-wip",
    "pr": "#39719",
    "session": "session_016WV4d1cnRvyiAqrarmDhZV",
    "premise_still_valid": true,
    "summary": "The related list header count badge's aria-label now reads the component's existing translated helper tabRecordCountLead (detail.relatedRecordOne at one record, detail.relatedRecords otherwise) instead of the hard-coded English 'N records'; a zh-CN console announces 「3 条记录」. New pin RelatedList.i18n.test.tsx beside the component covers zh-CN plural, en singular, en plural and de singular. Under claim amendment 7413253105, the headBadge selector in RelatedList.countPending-36235.test.tsx now matches either label suffix (one line). Changeset: @object-ui/plugin-detail patch, Clause-②: no, Metadata-protocol: none. Draft PR #39719 at head 646a0f3, CI all green.",
    "tests": "At 646a0f3: vitest over the pin, countPending-36235, addPickerGuard, RelatedPanel.header-27524, RelatedList.tab-35892: 'Test Files 5 passed (5)', 'Tests 46 passed (46)', lock VERDICT 0. Reverse check: badge label put back to the English template on disk, pin reads 'Tests 3 failed | 1 passed (4)' (zh-CN, en-singular, de-singular red; en-plural control green), restored from HEAD. Whole plugin-detail suite not run locally (ran past the foreground limit, stopped); Test UI ran it in CI, success.",
    "gates": "dispatch-gates --commands at 646a0f3: 39 commands; 36 exit 0 (including pnpm --dir ui exec vitest run scripts/: 172 passed, 2 skipped files). NOT MEASURED: check-comment-mask-corpus, check:query-options-erasure, check:type-check-debt, exit 124 from my per-command timeout wrapper on the shared box. --ran: '39 derived famil(ies) accounted for — 36 run, 3 NOT-MEASURED', exit 0. PR check-runs on 646a0f3: 57 total, 42 success, 15 skipped, 0 failed. Required set: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Temporal Conformance skipped. CI covered two of the three: Lint · scoped · query-options erasure success, Type Check · debt ledger success.",
    "mcp_calls": "0",
    "api_writes": "3 via the fleet-write relay: comment 7413216635 (blocked report), pr_create #39719 (draft, assignee os-elon-musk, no labels), this comment. Plus 3 git pushes to claude/issue-39680-wip (not REST).",
    "classifier_refusals": [],
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": []
    }

  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Delivered · 2026-12-04T15:16Z · zone em-admin
    PR #39719 merged (merge commit 22d5eeed94), closing this card. L1 → PR #39719 comment 7414994439 (no L2 owed); landed by zone em-admin (7415013337). pm:dispatched removed in this stroke.

  10. removed
    pm:dispatched
    on Dec 4, 2026
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:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions