Repository navigation
Description
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Filing gate: ① an experience defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7122552986, item 2). Source: L1 on PR #36846 (#36463), item N2, with the PR's own "Not covered" note. It existed before that PR.
What happens
In the Approval Center, a bulk approve or reject that partly fails shows a toast like "3 succeeded, 2 failed: 报价单 A, 报价单 B". It names the failed rows by record title only, at most three of them, and never says why each one failed.
On main 5c2e34c, runBulk in ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx (~line 1383) catches each failure with a bare catch {} and keeps only the title. The refusal's own text is dropped. After #36846, that includes the localized userMessage the server now sends for a submitter refusal. The single-row Approve already shows that text.
reach: read from code, not measured in a browser. It reaches approvers who bulk-act on a selection where some requests are refused, for example their own submission or one already decided.
Expected
The user can tell why each failed row failed, in their language, and can act on it.
Acceptance
- Each failure keeps the refusal's user-facing text (
userMessagewhen present, through the same reader the single-row Approve uses), else a generic line. - The partial-failure feedback shows each failed row with its reason. When there are more failures than fit in a toast, all of them can still be reached.
- A test drives a bulk approve with one refused row and asserts that the reason is shown.
Dedupe: open issues for Approval Center bulk approve and for bulk approve failure reasons return none.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p2· Bug ·pm:queue· size XS.Rationale: an approver cannot tell why a bulk action left some rows undone. The UX rule gives p2, because this does not reach every user every time, and UX has no p3. Seat 3 takes the card, as its request said.
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Claim: PM loop round 1
Session:
session_01QSeKYnagJvGbCtNg2PhvgWAccount:
os-justinBranch:
claude/issue-36855-bulk-approve-reasonsWorktree:
objectstack-issue-36855Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-C (named for this zone by the seat)
Epic: none
File surface:
ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx(runBulk~1471 and the partial-failure feedback), the shared refusal-text reader the single-row Approve already uses (read, reuse; touched only if it must be exported), the console locale packs for any new feedback string (all packs, key parity), their tests,.changeset/*. Stop on breach; explain in the report.Container & model:
XS,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: yes (narrowing)
Metadata-protocol: none
Responsibility:
platform UI code in objectstack (the Approval Center's bulk approve/reject drops each refusal's text, so a partial failure names rows but never why) | none | approvers who bulk-act on a selection where some requests are refusedThread-read: 7122613661
Premise: holds. On
origin/main,runBulk(ApprovalsInboxPage.tsx:1471) catches each failure at:1484with a barecatch {and keeps only the title.Serial constraints cleared:
open-PR search for ApprovalsInboxPage finds only #36638 (a CI test-timings dataset refresh, which names the file as data, not code).Pre-claim lane:
domain:ui; every path is underui/**.Pre-claim deps: none.
Prior rulings read: none governing; the single-row Approve's
userMessagereader (after #36846) is the pattern to reuse.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
{ "issue": 36855, "status": "done", "branch": "claude/issue-36855-bulk-approve-reasons", "pr": "https://github.com/objectstack-ai/objectstack/pull/37282", "session": "session_01QSeKYnagJvGbCtNg2PhvgW (parent PM session; subagent)", "premise_still_valid": true, "summary": "runBulk now keeps each failure as {id,title,reason}, with reason read through humanizeError, the same reader the single-row Approve uses (userMessage via declaredUserMessage, else the page's localized refusal line, else the error text or 'Action failed'). The error toast reads 'N succeeded, M failed' and lists the first 3 rows as 'title: reason'. Past 3, the toast is sticky with a close button and has a 'Show all (M)' action that opens an AlertDialog listing every failed row with its reason. No existing console pattern capped a bulk toast's overflow, so the nearest primitives were used (toast action plus AlertDialog). In all 11 locale packs, approvalsInbox.bulkPartial is replaced by 6 keys (bulkPartialSummary, bulkFailureLine, bulkFailuresShowAll, bulkFailuresTitle, bulkFailuresBody, close), with key parity. zh-Hant is regenerated via gen:zh-hant, and bulkFailureLine is allowlisted as a format string in untranslated-identity-4376. The surface grew past the claim's literal file list into ui/packages/i18n/src/__tests__/untranslated-identity-4376.test.ts, which is a locale-pack test the claim covers as 'their tests'. Card assignee untouched.", "tests": "Head 935499b5e: `cd ui && pnpm exec vitest run apps/console/src/pages/system/ApprovalsInboxPage packages/i18n/src/__tests__/{untranslated-identity-4376,zh-hant-generated,all-locales-key-parity,en-zh-key-parity}.test.ts`: Test Files 25 passed (25), Tests 185 passed (185). New pins are in the shared harness ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx, as a top-level describe: (1) one refused row out of 2 makes the toast description equal 'Bulk Invoice 2: ' + marked userMessage; (2) CONTROL: all 3 succeed, giving a success toast and no error; (3) 5 of 6 fail, the toast lists 3 with reasons, the action reads 'Show all (5)', duration is Infinity, and clicking it gives a dialog with 5 listitems, each with its reason. Earlier full i18n package run (aafd9234a): 130/132 files. The 2 failures (zh-Hant stale, ko/ru/ar identity of bulkFailureLine) were fixed in 935499b5e and re-run 3/3 files, 63/63 tests. Ablation via scripts/ablation-replace.mjs replaced `reason: humanizeError(err, tr('actionFailed', 'Action failed')),` with `reason: '',`: anchor x1->x0, blob d21c8808ce8e->8724dfc2388a, and 2 pins red (Tests 2 failed | 7 passed; 'expected Bulk Invoice 2: to be Bulk Invoice 2: ...'). Restore: blob == HEAD d21c8808ce8e, git diff HEAD empty. No dist build is involved (the test imports page source). Type-check: `pnpm --filter @object-ui/console type-check && pnpm --filter @object-ui/i18n type-check` exit 0, after building the console ^... closure (77 tasks). The console tsconfig includes src, so the test is compiled.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 41 families. 40 exited 0, captured before any pipe; most ran on aafd9234a. The final commit 935499b5e touched only zh-Hant.ts and an i18n test, and re-derivation on 935499b5e is identical. `pnpm --dir ui exec vitest run scripts/` first hit lock queue-timeout exit 99 (never ran). The re-run on 935499b5e exited 0: Test Files 172 passed | 2 skipped. `--ran` with exit codes: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check.mjs exited 0 (VERDICT clean) before each push; it found shared locale files with #37249/#37226/#37210/#37166, all merging cleanly. check-platform-checklist was not needed (no exported symbol renamed or removed). CI check-runs on PR #37282: in_progress at report time, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes, plus git push x3: (1) fleet-write pr_create to POST /repos/objectstack-ai/objectstack/pulls, plus POST /issues/37282/assignees (os-justin); (2) post-stamped comment to POST /repos/objectstack-ai/objectstack/issues/36855/comments (this report)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — humanizeError's last fallback returns err.message for a refusal with no userMessage and no recognised code/status. That is shared with the single-row Approve and kept as one reader by design. It is in the PR's Acceptance notes." ] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
Follow-up (rework: released-key retirement declared). Supersedes the head and declaration fields of comment 7161255543.
{ "issue": 36855, "status": "done", "branch": "claude/issue-36855-bulk-approve-reasons", "pr": "https://github.com/objectstack-ai/objectstack/pull/37282", "head": "c98f1ce625", "session": "session_01QSeKYnagJvGbCtNg2PhvgW (parent PM session; subagent)", "premise_still_valid": true, "summary": "Rework round. I took the RETIRE branch: approvalsInbox.bulkPartial is retired and declared, not kept. Grep evidence on 935499b5e4: `git grep` for bulkPartial (excluding bulkPartialSummary) across ui packages apps examples skills gives exit 1, no hits. The dynamic `approvalsInbox.${key}` constructions are in the console page's tr, and in app-shell's RecordApprovalsPanel, ApprovalDecisionPanel and ApprovalActionTimeline. All four are wrappers, and none is called with a non-literal key (`git grep` exit 1). The test-side constructions (de-quote-pairing, stepLine, eligibleApprovers, DecisionProgressIndicator) iterate their own key lists, which do not include bulkPartial. The tag @object-ui/i18n@18.6.0 carries the key in all 11 packs. Changeset and PR body now read `Clause-②: yes (narrowing)`, plus a Skills-docs: none line. The changeset gains a 「Removed translation keys」 list in the format #37169 uses, a BREAKING line for hosts that override the key, and an ADR-0087 marker `not-required (no-migration-prescription)`. check-adr-0087-registration accepts it. No line-start 'Removed translation keys' format existed on main; the one source was #37169's open branch. Conflict noted: the PM asked for the signature on the first line of the PR body, while os-dev.md asks for `Fixes #N` first. The signature is line 1 and `Fixes #36855` is line 2; GitHub parses the closing keyword anywhere.", "tests": "Unchanged code since 935499b5e (Test Files 25/25, Tests 185/185, ablation red 2 pins and restored, console and i18n type-check exit 0). Dogfood battery, owed now by the narrowing arm: closure build, then `pnpm --filter @objectstack/dogfood test` under the lock on b6468047c5. VERDICT command-exit 0, Test Files 487 passed | 3 skipped (490), Tests 4128 passed | 68 skipped (4196). c98f1ce625 adds only a changeset line.", "gates": "Derivation unchanged on the new head: 41 families. The 40 non-vitest families were re-run on b6468047c5 and 39 exited 0. check:type-check-debt first exited 3 (PREREQUISITE NOT MET: its closure build lost the lock queue to this PR's own dogfood run). The re-run under the lock exited 0: 130/133 type-checked, none above record. Re-run on c98f1ce625: check-adr-0087-registration exit 0 (1 declared-breaking changeset, disposition not-required), check-changeset-no-major exit 0, check-empty-changeset exit 0, check:nul-bytes exit 0. `pnpm --dir ui exec vitest run scripts/` was not re-run after the changeset-only commits; its reading is exit 0 on 935499b5e. overlap-check gave VERDICT clean exit 0 before the push. CI check-runs on the new head: not awaited.", "dogfood_battery": "b6468047c5 · VERDICT command-exit 0 · Test Files 487/490 (3 skipped) · Tests 4128/4196 (68 skipped) · no failures; final head c98f1ce625 differs only in the changeset", "mcp_calls": "0", "api_writes": "This round: git push x1 (935499b5e4..c98f1ce625); post-stamped --body=37282 (PATCH /repos/objectstack-ai/objectstack/issues/37282, read-back identical); post-stamped --comment=36855 (POST /repos/objectstack-ai/objectstack/issues/36855/comments, this follow-up). Earlier round: pr_create + assignees, report comment 7161255543, 3 pushes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — unchanged from the first report (humanizeError err.message fallback shared with single-row Approve; in Acceptance notes)." ] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
Follow-up for rework round 2 (L1 S1 and S2 at c98f1ce). It supersedes the head, tests and gates fields of comment 7162465061.
{ "issue": 36855, "status": "done", "branch": "claude/issue-36855-bulk-approve-reasons", "pr": "https://github.com/objectstack-ai/objectstack/pull/37282", "head": "bc989143b4", "session": "session_01QSeKYnagJvGbCtNg2PhvgW (parent PM session; subagent)", "premise_still_valid": true, "summary": "Rework round 2 (L1 at c98f1ce6). S1 fixed: the sticky toast's 'Show all' action now closes over its own run's failure list (setBulkFailures(failures) runs in onClick, not at the end of each run), so a later run cannot empty or replace what an earlier toast shows. The page dismisses its sticky failure toasts on unmount. I did not take the seat's 'dismiss on the next run' suggestion: the PM asked to pin exactly the repro of clicking the first toast after a second run, and that repro needs the first toast still up. S2 fixed: the changeset sentence now names the error's own text (`CODE: message`, e.g. `APPROVAL_APPROVE_FAILED: ` plus the server text) as the last fallback, with 'Action failed' only for an error with no text. The PR body says the same. Optional items: N2 taken (every partial-failure toast stays until dismissed) and N6 taken (body says five definitions in four files). N1 not taken: it is in the ADR-0087 marker and the Removed-keys sentence, which this round leaves untouched. N3, N4 and N5 not taken. The Clause-② declaration and Removed translation keys are untouched. The shared scratchpad clobbered one of my files (cmds.txt) during the round, so this round's files moved to an issue-36855/ subdir. The derivation was re-taken and is unchanged at 41.", "tests": "Head bc989143b4. The harness file has 10 passing tests (10). The new pin: two runs on one page, the first with 5 failures and the second clean; the first toast's 'Show all (5)' must open 'Not decided: 5' listing rows 1-5. `pnpm --filter @object-ui/console type-check && vitest run apps/console/src/pages/system/ApprovalsInboxPage`: type-check exit 0, Test Files 21 passed (21), Tests 120 passed (120). Ablation on e1ea082076 (the page is identical at bc989143b4) used two --hold mutations through scripts/ablation-replace.mjs. The onClick `setBulkFailures(failures);` became `void failures;`, and a `setBulkFailures(failures);` was put back at run end. Both landed: blob a729e1db98b7 -> 7cfb74cd2d70 -> c783de858825. The pin went red, with the dialog DOM reading 'Not decided: 0' (the L1 repro), Tests 1 failed | 9 passed. Restored with --restore under an EXIT trap: hash-object == HEAD blob a729e1db98b7, git diff HEAD empty.", "gates": "dispatch-gates --commands on bc989143b4: 41 families (identical to round 2). All 41 exited 0; `vitest run scripts/` and `check:type-check-debt` ran under the lock. `--ran` with exit codes: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check gave VERDICT clean exit 0, then the push c98f1ce625..bc989143b4. CI on the new head: not awaited.", "dogfood_battery": "bc989143b4 · VERDICT command-exit 0 · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "mcp_calls": "0", "api_writes": "This round: git push x1 (c98f1ce625..bc989143b4); post-stamped --body=37282 --ack-through=7162988889 (PATCH /repos/objectstack-ai/objectstack/issues/37282, read-back identical 10611 bytes); post-stamped --comment=36855 (POST /repos/objectstack-ai/objectstack/issues/36855/comments, this follow-up). Earlier rounds: pr_create + assignees, comments 7161255543 and 7162465061, body refresh, 4 pushes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (N3 card via triage, per the L1 record) · humanizeError's raw CODE: text fall-through and its reminder/recall lines for 429/501 are single-row behaviour and outside #36855; not filed by dev." ] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Delivered (2026-11-25T17:12Z): PR #37282 merged (2026-11-25T17:07Z), landed by the seat after the maintainer's approval (narrowing hand-off 7165958218). This card was closed by its
Fixes #36855.A bulk approve or reject in the Approval Center that partly fails now says why each row failed. The toast reads "N succeeded, M failed" and lists the first three failed rows as "title: reason", and it stays until dismissed. With more failures it carries "Show all (M)", which opens a dialog listing every failed row and reason; each toast keeps its own run's list. The reason is the server's
userMessage, else the page's line for the refusal, else the error's own text, else "Action failed".Clause-②: yes (narrowing):approvalsInbox.bulkPartialis retired in all 11 packs, listed under "Removed translation keys". A follow-up for a run that ends after leaving the page is filed separately. Nothing is left on this card;pm:dispatchedremoved.