Repository navigation
fix(app-showcase): label the invoice pre-tax roll-up Subtotal / 小计, not Total / 合计 - #36563
Merged
objectstack-fleet[bot] merged 2 commits intoNov 22, 2026
Merged
Conversation
… the translation bundle The bundle labelled showcase_invoice.total "Total" (en) and "合计" (zh-CN), so the record page and edit form read Total right beside Total incl. Tax while the object metadata and the line-grid summary call the same figure Subtotal. Both shipped locales now read Subtotal / 小计; the expense-report comment that named 合计 as the invoice's total moves with it. Claude-Session: https://claude.ai/code/session_01ADHkmNmMEXS4EzeVz9RjvD Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD L1 · 2026-11-22T23:40Z · PR #36563 @ 席位核对ACCEPT — area s2-A self-review (area-lease: ≤50 lines, text only,
|
objectstack-fleet
Bot
deleted the
claude/issue-36314-showcase-invoice-subtotal
branch
November 22, 2026 23:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #36314
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
examples/app-showcase/src/system/translations/index.ts:showcase_invoice.fields.total.labelreadsSubtotal(en, wasTotal) and小计(zh-CN, was合计). The object metadata already labels the fieldSubtotal(examples/app-showcase/src/data/objects/invoice.object.ts), and the line-grid summary stack calls the same figure Subtotal; only the bundle disagreed.enandzh-CN— no other locale key exists anywhere underexamples/app-showcase(grep forja-JP/es-ES: zero hits), so "every shipped language" is these two.showcase_expense_reportthat said 「合计 is showcase_invoice'stotal」 moves with the label: 合计 is now the report's own total, and the invoice's pre-taxtotalreads 小计 beside its 含税总额.total_amount), the source metadata.examples/,packages/qa/,docs/qa/and every*.test.tsfor the old invoice label finds nothing to update (therecords-formschecklist item already calls this field "the Subtotal (total)").Read first (risk order): the two label lines in
examples/app-showcase/src/system/translations/index.ts(en block, zh-CN block); the rewritten comment aboveshowcase_expense_reportin the same file.Two-minute check: boot the showcase, open invoice INV-1010 — the record page and the edit form read
Subtotal €230.00besideTotal incl. Tax €276.00; switch to zh-CN and they read 小计 beside 含税总额.Tests
Text-only change in a private example; no behaviour moved, so no new pin and no ablation. Run on the final head
60d6b511(after mergingorigin/main):showcase typecheck + tests (under the shared verify lock)
pnpm --filter @objectstack/example-showcase typecheck— clean (tsc --noEmit, no output).pnpm --filter @objectstack/example-showcase test—Test Files 49 passed (49),Tests 554 passed (554).os-verify-lock: VERDICT command-exit 0(closure build + typecheck + test in one locked run).Acceptance notes
skip-changeset: the only path touched isexamples/app-showcase(@objectstack/example-showcase, a private package) — nothing any released package ships moves.pnpm devrefuses to boot in this worktree until the whole workspace is built (its prerequisite check names 35 of 108 packages without adist/, most underui/); a full workspace build for a screenshot was outside this card's budget, and no full dogfood run was made for it.Verification
Derived gate families — 37/37 exit 0 on 60d6b51
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 37 commands for this diff; each was run on head60d6b511and every one exited 0. Reconciliation:dispatch-gates --ran: 37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED. Families CI runs beyond that list (the required contexts,test:repo, dogfood shards) are CI's.node scripts/pm/overlap-check.mjs --repo=objectstack-ai/objectstack --branch=HEAD:VERDICT clean exit 0(merges cleanly onto origin/main, 0 open PR heads overlap).🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmNmMEXS4EzeVz9RjvD