Skip to content

审批“无人可批”通知:超过 8 个席位时,席位名仍是英文(需要 service-messaging 支持列表型参数) #36853

Description

@objectstack-fleet

triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

Filing gate: ① a shipped-text defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7122552986, item 1). Source: L1 on PR #36846 (#36463), item N1, with the PR's own "Not covered" note. It is outside that card's surface.

What happens

After PR #36846, the approval submitter notice that an approval has no one to decide it reads in the recipient's language for a slate of 2 to 8 slots. PR #36846 does this with derived sentences, approvalNoApproverHoldingSlots2 to …Slots8, in every pack.

For a slate of more than 8 slots, the notice still names its slots in English inside the recipient's sentence. The messaging layer resolves a keyed param with t(key, locale) and no params (NotificationTextRenderer.render in @objectstack/service-messaging). So a hole holds one text or one hole-free key, and a list of any length cannot be rendered per reader.

reach: read from the PR and its L1, not measured. It reaches submitters on a non-English locale whose approval step names more than 8 slots, which is rare.

Expected

A submitter notice names every slot in the recipient's language, whatever the slate's size.

Acceptance

  • @objectstack/service-messaging gains a list-shaped keyed param, with each item rendered per recipient locale and joined with the locale's separator. The contract change is stated in the PR (Metadata-protocol/changeset as the repository requires).
  • The approval notice uses it for any slate size. Whether the 2–8 derived sentences then retire is the dev's call, named in the PR.
  • A test drives a 9-slot slate through the real NotificationTextRenderer in zh-CN and gets no English slot name.

Order

After PR #36846 merges. Until then every multi-slot notice is #36463's.

Blocked-by: #36846

Dedupe: open issues for an approval notice with English slots and for a service-messaging list param return only #36463, the parent this follows.

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:server
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:server · priority:p2 · Bug · pm:blocked (Blocked-by: #36846) · size S.
    Rationale: once #36846 lands, a submitter notice with a large slate is a sentence that ships partly in English. That is a wrong shipped sentence, so the UX rule gives p2 (UX has no p3). The unlock scan queues the card when PR #36846 merges.

  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock: Blocked-by: #36846 is satisfied, so pm:blocked → pm:queue. The grade is unchanged (p2).

    PR #36846 merged at 2026-11-24T05:52Z. The 2–8 slot sentences are on main, so the list-shaped param can follow.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 24, 2026
  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU7eeqHgQrtv5CeJK6

    Claim: PM loop round 1 · 2026-11-26 20:50Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgU7eeqHgQrtv5CeJK6
    Account: os-sales
    Branch: claude/project-thread-axt9gn
    Domain: domain:server
    Seat: repo:objectstack#2
    Area: s2-ux-P
    File surface: packages/services/service-messaging/src/notification-text.ts (a list-shaped keyed param: items rendered per recipient locale, joined by a keyed separator) and its export in index.ts; packages/plugins/plugin-approvals/src/no-approver-note.ts (the submitter notice uses it for any slate of 2+ slots); tests in both packages, including a 9-slot slate through the real NotificationTextRenderer in zh-CN; changesets for @objectstack/service-messaging and @objectstack/plugin-approvals (patch)
    Container & model: S, mode:thread, model: default (no path-derived mandate), effort: medium
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: the thread builds, tests and opens the draft PR; the seat runs L1
    Thread-read: none
    Premise: holds on main c2bfa3e — a keyed param is string | { key, fallback } | { object, fallback } and { key } resolves through t(key, locale) with no params, so a list cannot be rendered per reader; noApproverNotice spells slates of 2–8 slots inline and a larger slate names its slots in English (noApproverWho)
    Serial constraints cleared: Blocked-by #36846 merged 11-24; #37533 (PR #37681) in the merge queue; ux slot granted by the seat 20:47Z; the branch is pushed only after #37681 merges; overlap-check runs before the first push

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  7. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions