Skip to content

fix(app-showcase): label the invoice pre-tax roll-up Subtotal / 小计, not Total / 合计 - #36563

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-36314-showcase-invoice-subtotal
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-36314-showcase-invoice-subtotal

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #36314
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:示例应用里发票的记录页和编辑表单上,税前金额的标签从「Total / 合计」改为「Subtotal / 小计」,不再和旁边的「Total incl. Tax / 含税总额」看着像两个总额。
  • 为什么做:发票页面体验问题——替看发票的人分清哪个是税前、哪个是含税。
  • 出错会怎样:只动示例应用里一个字段的显示文字,最坏是标签措辞不合适,可直接撤回。
  • 要你做什么:无。

What changes

  • examples/app-showcase/src/system/translations/index.ts: showcase_invoice.fields.total.label reads Subtotal (en, was Total) and 小计 (zh-CN, was 合计). The object metadata already labels the field Subtotal (examples/app-showcase/src/data/objects/invoice.object.ts), and the line-grid summary stack calls the same figure Subtotal; only the bundle disagreed.
  • The bundle ships exactly two locales, en and zh-CN — no other locale key exists anywhere under examples/app-showcase (grep for ja-JP / es-ES: zero hits), so "every shipped language" is these two.
  • The comment above showcase_expense_report that said 「合计 is showcase_invoice's total」 moves with the label: 合计 is now the report's own total, and the invoice's pre-tax total reads 小计 beside its 含税总额.
  • Not changed: the field name, any other field's label, the expense report's own 合计 (total_amount), the source metadata.
  • No test, QA checklist item or fixture pinned the old label: a grep over examples/, packages/qa/, docs/qa/ and every *.test.ts for the old invoice label finds nothing to update (the records-forms checklist 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 above showcase_expense_report in the same file.

Two-minute check: boot the showcase, open invoice INV-1010 — the record page and the edit form read Subtotal €230.00 beside Total 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 merging origin/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).
  • Lock verdict: os-verify-lock: VERDICT command-exit 0 (closure build + typecheck + test in one locked run).

Acceptance notes

  • No changeset, skip-changeset: the only path touched is examples/app-showcase (@objectstack/example-showcase, a private package) — nothing any released package ships moves.
  • Screenshot of INV-1010: NOT MEASURED. pnpm dev refuses to boot in this worktree until the whole workspace is built (its prerequisite check names 35 of 108 packages without a dist/, most under ui/); 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/objectstack derived 37 commands for this diff; each was run on head 60d6b511 and 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

… 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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD

L1 · 2026-11-22T23:40Z · PR #36563 @ 60d6b5110fdaf1ce293bcf15a1e153232f032d4b · card #36314 · area s2-A · first read

席位核对

ACCEPT — area s2-A self-review (area-lease: ≤50 lines, text only, Clause-②: no, no contract face) at 60d6b5110fdaf1ce293bcf15a1e153232f032d4b.

  1. Shape: draft to main, Fixes #36314, merging delivers the card; l1-face.mjs --pr 36563 CLEAN (13 items, none flagged).
  2. Premise measured: on main the showcase bundle read Total (en) / 合计 (zh-CN) for showcase_invoice.total, which the object metadata labels Subtotal; the diff sets Subtotal / 小计 and moves the :794 comment with it. The bundle ships only en and zh-CN (the dev's grep, re-read in the diff).
  3. Gates: check-runs at this head 29 success, 21 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success. Dev: example-showcase typecheck clean, its tests 554 passed; 37 derived gates run, 0 NOT-MEASURED (/mnt/project-files/objectstack-seat2/36314-gates-ran.txt).
  4. Accepted deviations: the INV-1010 screenshot is NOT MEASURED (the dev server needs a full workspace build); the label is read straight from the diff. overlap-check ran after the first push, clean at this head.
  5. Out of scope: none. skip-changeset: the only touched package, @objectstack/example-showcase, is unpublished. ADR carrier: none.
  6. Landing: check-governed-merges.mjs --pr 36563: NOT governed, 7 lines ⇒ the area lands it.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 23:40
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit abe95a9 Nov 22, 2026
51 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36314-showcase-invoice-subtotal branch November 22, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Showcase invoice: the pre-tax roll-up reads "Total" / "合计" beside "Total incl. Tax" because the translation bundle labels the Subtotal field Total

2 participants