Repository navigation
feat(spec,plugin-report): report chart showEmptyGroups — show the declared options that have no records - #38284
Conversation
… no records Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…ness counts for showEmptyGroups Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…er chart.showEmptyGroups Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
… the date-axis no-op Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
… records Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…in-report README Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…nder Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
The chart reads emptyGroupValueFor from @objectstack/spec/data at runtime, so the package moves from devDependencies to dependencies. Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin a69968a31aa5d8db0e96be35b96f61f0404c0879 && git checkout a69968a31aa5d8db0e96be35b96f61f0404c0879
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5f741ed524c320cbc784a2917cb2e40ceea5f42a cee3fef8d956f973322a40cdcd93ac8ef9677f2d && git checkout -B drift-repro 5f741ed524c320cbc784a2917cb2e40ceea5f42a && git merge --no-ff cee3fef8d956f973322a40cdcd93ac8ef9677f2d
node scripts/docs-audit/affected-docs.mjs --json 5f741ed524c320cbc784a2917cb2e40ceea5f42a |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 86c2dbe · 2026-11-28T11:48Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Inputs read: card #36722, its body and all five comments (triage, claim 7237658512, amendment 1 7237862534, os-dev-report 7238447636, amendment 2 7238456293); PR #38284, its body, both comments, the 30-file list (+677, -10) and the net diff from merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The remaining checks on the first consumer hold. A mark on an added group opens no list (added rows are appended, and the click handler returns for an index at or past S1 (should-fix) — the published contract lists two no-fill conditions and the renderer has a third: a zero-row answer.
S3 (should-fix) — "left out" is decided by matching spellings, where the answer carries the stored value. The fill builds
S2 (should-fix) — the builder removes an authored Generated and baseline rows ( Nits, none of which moves correctness:
No must-fix. S1, S2 and S3 are open on this head, and a delta review of their fix is owed. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38284 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a REWORK at
|
…ue drillRawRows carries A label the server translated at the request locale can differ from the one the client holds, and a spelling miss drew a false zero beside the real group. A row whose raw twin states the x-axis value is now matched by that value alone; only a row with no raw twin falls back to spellings. Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
… series chart type An unrelated edit dropped an authored switch from a stored funnel, pie or any series type the builder does not offer. The switch now follows the renderer's series plan: kept and shown on every type it fills, dropped only on the single-value and tabular types. Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…carries its liveness row The TSDoc and describe now state that nothing is added when the report's order reaches the chart and that an answer with no rows draws no chart, and that a derived measure stays empty. The reference page is regenerated. The key gets its own liveness row citing the reader and its tests. Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…DME and changesets Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…tcher the chart's type allows Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 1c290e5 · 2026-11-28T13:11Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: DELTA review from Inputs read: card #36722, its body and all five comments (no new one since amendment 2); PR #38284, its body as it stands, its comments through the claim for this head (7239766892), the 31-file list (+788, -12), the net diff from merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix. One should-fix, owing a delta review.
The sentences carried over from the earlier head still hold as judged there: S4 (should-fix) — on the chart types that size a mark by its value, an added group is not drawn, and the builder now offers the switch on them.
So on six of the 13 types the switch is kept, shown in the builder and described as drawing groups, and on treemap, sankey and scatter nothing is drawn for them; on pie, donut and funnel the only trace is a footnote that reads as a data warning, and on a funnel over an avg, min, max or derived measure the fill can cost the real stages. The TSDoc and This was reachable at the earlier head too, through the schema on any of these types and through the builder's own donut. The earlier record did not read the chart component, and its S2 remedy pointed at the series plan. The delta followed that remedy and so widened the builder's offer from one such type to six. The reading above is from the chart's code and its own measured comments, not from a run, and no browser reading in the PR covers one of these types. The fix is one predicate, shared by the renderer and the builder, for the types where an empty group has somewhere to be drawn:
Keeping the fill on pie, donut and a count or sum funnel is a legitimate choice if the contract says what is and is not drawn there; treemap, sankey and scatter cannot be kept as they stand.
Nits:
S1, S2 and S3 are closed on this head. S4 is open on it. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a delta: REWORK at Closed at this head. The contract-review delta record above (7239843832) is PASS and confirms it, and my own read agrees:
Open, should-fix S4 (from the record; I spot-checked it in
So the constant's comment, the Asked:
Keeping pie, donut, and a count-or-sum funnel filled is acceptable if the contract says what is drawn there. Treemap, sankey and scatter cannot stay as they are. While the changeset is open for S4: the ui changeset's "never" drawn as a second zero group holds only where the answer carries a raw row. Soften it. Seat bookkeeping: This head is green (64 success, 0 failed, mergeable clean). Another L2 and L1 delta is owed on the S4 head. |
…ts with a category axis A chart that sizes its marks by value (pie, donut, funnel, treemap, sankey) draws a zero group as nothing, and scatter takes no select axis, so one shared predicate, chartDrawsEmptyGroups, now bounds the renderer's fill and the builder's switch to bar, column, horizontal-bar, line, area, radar and combo. The builder still keeps an authored key on every series type, and shows no switch over a date axis. The TSDoc, describe, reference page, reports page, README, ledger note and changesets name the families. Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
…into claude/project-thread-19thpz
Claude-Session: https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T14:56Z · zone
|
…age service presigned flow (objectstack-ai#38237) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoAoNwrZVJoUEFfvMURpRPKJ)_ Fixes objectstack-ai#38163 Clause-②: no Metadata-protocol: none Route taken: (a). `uploadFile` and `uploadFiles` now upload through the package's own presigned storage adapter, `createObjectStackUploadAdapter`. `recordId` maps to `attachTo` with scope `attachments`, and the adapter's result maps to `FileUploadResult`. The declared `DataSource` contract promises an upload that returns a stored file, and the storage service is the one upload route the standard server serves, so (a) keeps that promise and (b) would not. Two options cannot be mapped: `fieldName` and `metadata`. Neither presigned request carries them. Those two are refused before any request, in the (b) manner, with an error that names the supported path, so nothing is dropped silently. Neither method sends a request to `/api/data/RESOURCE/upload` any more. Why refusing `fieldName` / `metadata` is not a narrowing (`Clause-②: no` stands): before this PR every call to either method failed. The standard server answers the old route 404 `ENDPOINT_NOT_FOUND` (405 with the version segment), whatever options were passed, so no caller had a working upload that carried those options. This PR removes no working behaviour. A call that always failed now succeeds without the two options, and with them it fails at once with an error that names the supported path, instead of a 404. The public types (`DataSource.uploadFile` / `uploadFiles`, `FileUploadResult`) are unchanged, and no metadata an author writes is affected (`Metadata-protocol: none`). ## 维护者速读 - 用户能看到什么变化:用界面数据层「上传文件」接口的应用和插件,上传现在真正落到存储服务,拿回已存好的文件;以前每次都失败。普通控制台用户无感,因为仓库里没人调用它。 - 为什么做:修复界面数据层对外声明却发往一条不存在地址的上传接口,替以后要调用它的应用解决问题。 - 出错会怎样:调用方传了直传流程带不了的两个附加选项,会立刻收到写明改法的报错,而不是被悄悄丢掉。其余改动可直接撤回。 - 要你做的:无。 ## What changes - `ui/packages/data-objectstack/src/index.ts`: `uploadFile` delegates to `createObjectStackUploadAdapter`, which sends `POST /api/v1/storage/upload/presigned`, the byte `PUT`, then `POST /api/v1/storage/upload/complete`. The adapter is built per call because `attachTo` is one of its construction options. The fetch it uses is built once per data source (`storageUploadFetch`). That fetch is the injected `uploadTransport` (objectstack-ai#37506), plus the data source's `token` on every request to this server and never on a presigned URL on another origin. The same-origin check compares resolved origins: the URL is resolved against `baseUrl`, or the page's origin when `baseUrl` is empty, and it counts as this server only when the origins match (and, for a `baseUrl` with a path, the resolved path lies under it). A server that cannot be read, or a URL that does not parse, is not this server. `uploadFiles` is N sequential presigned uploads. The first refused file stops the batch, and the rejection's `details` carry `failedIndex` plus, as `uploaded`, the files already stored. The files after it are not sent. - Option mapping: `recordId` maps to `attachTo: { parentObject: resource, parentId: recordId }` and `scope: 'attachments'`. Without it, no scope is sent, so the server default applies, and `resource` is not sent. `onProgress` maps the adapter's 0 to 1 ratio to 0 to 100, spread across the batch for `uploadFiles`. `fieldName` and `metadata` reject with `UNSUPPORTED_OPERATION` before any request. - Errors: a refused storage request rejects `ObjectStackError` with `UPLOAD_ERROR`, the server's status, and `details.serverCode`. A failure that got no HTTP answer reaches the caller unchanged, as before. - `ui/packages/data-objectstack/src/upload-adapter.ts`: the presign refusal and the byte-PUT refusal now carry `status` (and `code`), as the completion refusal already did, so the mapping above can read them. Messages are unchanged. - No public shape changes: `DataSource.uploadFile` / `uploadFiles` and `FileUploadResult` are untouched. - `packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts`: the real-stack pin. `packages/qa/dogfood/package.json` gains one devDependency, `@object-ui/data-objectstack` (`workspace:*`), and `pnpm-lock.yaml` gains only that importer entry, written by `pnpm install`. With that, the pin resolves the adapter, the dogfood closure builds it, and the dogfood test hash follows adapter changes. `packages/qa/dogfood/vitest.config.ts` gains the one anchored alias `check:test-source-alias` prescribes, so the pin resolves the adapter's SOURCE in this checkout and not its last build. The dogfood package is private, so it needs no changeset. ## Tests - `uploadTransport-37506.test.ts` is updated, because its fake server now answers 404 on `/api/data/RESOURCE/upload` as the real one does. The objectstack-ai#37506 pins keep their meaning: injected fetch, bearer on every request, connection state unchanged. A new top-level describe for objectstack-ai#38163 checks that no request reaches the unserved route, the exact three-step sequence per file, the `recordId` mapping and result, the default scope without `recordId`, the refusal of `fieldName` and `metadata` with zero requests, token-only signing with no token on a foreign presigned URL, `UPLOAD_ERROR` code, status and serverCode, the partial-batch report, progress, and presigned URLs spelled protocol-relative (`//host`), slash-backslash and double-backslash getting no token while the presign and complete requests keep it. Ablation, run after the commit: with the previous string check restored, the slash-backslash case fails (1 of 15). The double-backslash case already got no token under that check. With the origin comparison removed, all three spellings and the cross-origin case fail (4 of 15). After restoring, git status is clean. - Unit ablation: with the base `index.ts` restored on disk, the file reported 12 of 12 failed. With the fix restored, it reported 21 of 21 passed (this file plus `objectstack-upload-scope-12055.test.ts`). - Package run: 128 of 128 test files and 1450 of 1450 tests passed, and `type-check` exited 0, both on 95e3f9f. - Real-stack pin (2 of 2 passing again on 95e3f9f; its `baseUrl` is a bare origin, so no path rule applies), first measured on head 9725c42, resolving the adapter source through the alias (the dependency is declared, and no link was made by hand). The stack is `bootStack` with `StorageServicePlugin`, the attachments fixture and a bearer-only session. `uploadFile` with a `recordId` (token only) and `uploadFiles` (host bearer fetch) pass 2 of 2. They assert committed `sys_file` rows, the `sys_attachment` row with its `attachmentId`, and that no request reached an unserved upload path. Ablation: with the base `index.ts` restored on disk (the file shows the old route twice), both tests fail with `UPLOAD_ERROR` "Not found", the server's 404. After `git checkout HEAD`, git status is clean and both pass again. The dogfood `typecheck` exits 0. ## Acceptance notes - `README.md` (File Uploads) does not describe `uploadFile` / `uploadFiles`, and it is outside the claimed surface. No sentence in it became false. ## Verification Read first: `index.ts`, at `uploadThroughStorage` and `storageUploadFetch` (where the token goes, and which URLs get it), then `uploadFiles` (what a partial batch reports). Two-minute check: run `pnpm --dir ui exec vitest run packages/data-objectstack/src/uploadTransport-37506.test.ts`. Expected: 15 passed. <details><summary>Local gates on head 95e3f9f</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 87 families over the 8 changed paths, and all 87 exited 0, `check:test-source-alias` included. The `--ran` reconciliation reported: 87 derived, 87 run, 0 NOT-MEASURED. `overlap-check` reported clean: origin/main, objectstack-ai#38192 (which shares the dogfood `package.json`) and objectstack-ai#38284 (which shares `pnpm-lock.yaml`) all merge cleanly. All other CI families are left to the PR's check-runs. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibx7DSQZnugnuX8CpCM)_ <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…udio in the other languages (objectstack-ai#38339) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoTBeBeWuhs82hXPgJRyTok8)_ Fixes objectstack-ai#37618 repo:objectstack#3 · os-tesla · session_01L9qibz59TqsYwACVq1LPf9 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:中文界面里所有提到搭建工具的句子都改叫「应用搭建」,比如「在应用搭建中编辑」「这个对象在应用搭建里有未发布的改动」「应用搭建菜单」;英文和其他语言改叫「App Studio」。标志、入口和句子里的叫法从此一致。 - 为什么做:属于「App Studio 改版」专题。上一步只改了标志、应用名和入口,句子里还写着「Studio」,中文界面两个名字混着出现。 - 出错会怎样:最坏是某句话的叫法或语序不顺,不影响任何功能;地址、权限名和包名都没动,可以直接撤回。 - 要你做什么:无。 ## What changes Display text only, per ADR-0084's 2026-11-26 amendment (`docs/adr/0084-application-builder-information-architecture.md:368`: "Its name is App Studio, and 应用搭建 in a Chinese interface … A Chinese interface shows 应用搭建 and not the English name"). The `/studio` address, the `studio.access` capability name, package names, identifiers, code comments and `skills/**` are untouched. PR objectstack-ai#37581 already renamed the brand, the app label and the doors; this PR renames every sentence that still said "Studio". - **UI packs (`ui/packages/i18n/src/locales/`)**: 24 keys, in every pack. `en`, `zh-Hans`, `ar`, `de`, `es`, `fr`, `ja`, `ko`, `pt-BR` and `ru` are edited by hand (240 values); `zh-Hant` is regenerated with `pnpm --filter @object-ui/i18n gen:zh-hant` (24 values, 應用搭建), never hand-edited. - `zh-Hans` reads 应用搭建 and drops the spaces that only separated the Latin word from Chinese text (「在 Studio 中编辑」 → 「在应用搭建中编辑」). - Every other pack swaps `Studio` for `App Studio` inside the existing sentence, as objectstack-ai#37581 did for the doors, the non-Latin packs included. `de` writes its compounds with the coupling hyphen (`App-Studio-Zugriff`, `App-Studio-Liste`). - `common.editInStudio`'s `en` value was lowercase (`Edit in studio`); it now reads `Edit in App Studio`. - The capability label `capability.label.studio_access` is included (seat ruling Q1 A on the claim). The spec registry's English label (`packages/spec/src/security/capabilities.ts:55`) stays, so this PR touches nothing under `packages/spec/src/**`. The picker reads the pack key, so the interface shows the new name. - **`studio` namespace (`ui/packages/i18n/src/namespaces/studio/{en,zh}.ts`)**: 20 keys, among them the refusal sentence `engine.studio.refusal.draftUnreadable`, `engine.studio.menu.label`, `engine.studio.backToAppTitle(NoApp)` and `engine.studio.landingHome`. The namespace ships only `en` and `zh`. - **Inline fallbacks**: `check-i18n-call-site-keys` requires every literal `defaultValue` to equal its `en` value, so 20 literals in 11 files follow (`StudioRoute.tsx`, `AppNoAccessEmptyState.tsx`, `DesignModeHeaderPinsPanel.tsx`, `DesignModeMenu.tsx`, `DashboardView.tsx`, `PageView.tsx`, `RecordDetailView.tsx`, `RecordTabsConfig.tsx`, `StudioReturnButton.tsx`, `DraftReviewCard.tsx`, and the capability fallback row in `useFieldTranslation.ts`). No logic changes. The `studio` namespace's call sites carry no inline fallbacks. - **Docs** (seat ruling Q2 A, only the two lines the card names): `content/docs/build-without-code.mdx:22` quotes the top bar's door as "Design in App Studio", and the `content/docs/ui/apps.mdx` example reads `label: 'App Studio'`, as `STUDIO_APP.label` does. - **Changeset** `.changeset/37618-app-studio-prose-name.md`: patch for `@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/fields`, `@object-ui/plugin-chatbot` and `@object-ui/console`. ## Tests Pins that read these sentences move to the new text; none is loosened, deleted or skipped. - **Pack pins**: `ui/packages/i18n/src/__tests__/residue-namespaces-3546.test.tsx` (`common.editInStudio` in `en`, `zh-Hans`, `ja`, `ko`, `ar`, the inline-default source pin on `PageView.tsx`, and its comment's quoted label), `studioAccessGrantor-27521.test.ts`, `DraftReviewCard.i18n-38048.test.tsx`. - **Rendered-name pins** (inline fallbacks or the resident `studio` catalogue): `StudioRoute.test.tsx`, `CapabilityMultiSelectField.test.tsx` (the rendered chip; the registry fixture's own English label stays `Studio Access`, as the spec registry does), `DraftReviewCard-38048.test.tsx`, `DashboardView.inPageEdit-36372.test.tsx`, `PageView.editInStudioFollowsPackagePosture-12615.test.tsx`, `PackageFormDialog.newAppStep-36748.test.tsx`, `MetadataListCreateDialog.newObjectJoinsAppMenu-36748.test.tsx`, `StudioDesignSurface.backToApp-36501.test.tsx`, `StudioDesignSurface.homeLoop-12513.test.tsx`, `StudioDesignSurface.packageLessFlows-11553.test.tsx`, `StudioDesignSurface.packageListErrorPosture.test.tsx`, `StudioMenu.test.tsx`. - Two of those are absence pins (`queryByRole(... 'Studio home')` and `/Open app|Studio home/` expected null); they now name `App Studio home`, so they still look for the label that exists. <details><summary>Local runs (final head 0519b38)</summary> - The 108 app-shell files and the 9 fields / chatbot / console files ran at 8880f66; the only later change is the `report.builder.savedOutsideApp` revert (pack values only) and the changeset count. The i18n suite, the i18n gates and the derived gates ran on the final tree. - i18n gates (from `ui/`): `check-i18n-en-drift` exit 0 ("24 en value(s) changed … 240 pack value(s) followed"; "20 en value(s) changed … 20 zh value(s) followed"), `check-i18n-call-site-keys` exit 0, `check-i18n-dead-keys` exit 0. - `dispatch-gates.mjs --commands`: 72 derived, 71 exit 0, 1 NOT MEASURED: `pnpm --filter @objectstack/spec run check:skill-examples` exits 3 (PREREQUISITE NOT MET, it reads a built client SDK this worktree did not build). `--ran` reconciliation: 72 accounted, 0 unrun. CI runs it. - `overlap-check.mjs` at 0519b38: clean against origin/main 4ebe9a1 and the 5 open PRs that share files (objectstack-ai#38318, objectstack-ai#38304, objectstack-ai#38285, objectstack-ai#38284, objectstack-ai#38204). - `vitest run packages/i18n/` (from `ui/`): Test Files 110 passed (110), Tests 1874 passed, 13 skipped. - `vitest run` on the 9 fields / plugin-chatbot / console StudioRoute files: Test Files 9 passed (9), Tests 119 passed (119). - `vitest run` on the 108 app-shell test files that name these sentences (assertions or fixtures): Test Files 108 passed (108), Tests 1409 passed (1409). - The full `fields`, `plugin-chatbot` and console runs did not finish inside the container's command limit and are left to CI (NOT MEASURED locally). </details> <details><summary>Ablation</summary> - Put `zh-Hans` `common.editInStudio` back to 「在 Studio 中编辑」: `residue-namespaces-3546.test.tsx` goes red, 2 failed, `expected '在 Studio 中编辑' to be '在应用搭建中编辑'`. Restored, green. - Put the `chatbot.draftReview.hint` inline default back to the old `en` sentence: `check-i18n-call-site-keys` exits 1, `DraftReviewCard.tsx:113:10 [default-value-drift] chatbot.draftReview.hint`. Restored, exit 0. </details> ## Acceptance notes - **Residue grep after the change**: walking the loaded catalogues key by key (case-insensitive), the only value left that names Studio outside "App Studio" / 应用搭建 is `report.builder.savedOutsideApp`, left on purpose (next note). Each of the 10 hand-edited packs changed exactly the same 24 keys, both `studio` catalogues the same 20, and no key was added or removed. - **`report.builder.savedOutsideApp` is left unchanged** (seat amendment to the claim): PR objectstack-ai#38204 removes its last use and a follow-up on objectstack-ai#38149 deletes the key, so renaming it here would only conflict. - **Not in this PR, filed by the seat** (claim ruling Q3): five Chinese strings in `packages/platform-objects` generated translations still say Studio (`zh-CN.metadata-forms.generated.ts` and `zh-CN.objects.generated.ts`). They are generated from spec form help and the `sys_email` field help, outside `domain:ui`. - **Positional fallbacks are not paired by the call-site gate**: `tt(key, 'fallback')` in `StudioReturnButton.tsx` and `DashboardView.tsx` were updated by hand here; reverting one of them leaves `check-i18n-call-site-keys` at exit 0 (measured). Noted, not filed. - The docs pages' other prose mentions of "Studio" are left as the shorthand for the surface (seat ruling Q2 A; ADR-0084:368 uses it the same way). ## 44 keys, before and after <details><summary>en and zh values</summary> | # | Catalogue | Key | en before → after | zh before → after | |--:|:--|:--|:--|:--| | 1 | main | `capability.label.studio_access` | Studio Access → **App Studio Access** | 访问 Studio → **访问应用搭建** | | 2 | main | `common.editInStudio` | Edit in studio → **Edit in App Studio** | 在 Studio 中编辑 → **在应用搭建中编辑** | | 3 | main | `studioReturn.close` | Back to Studio → **Back to App Studio** | 返回 Studio → **返回应用搭建** | | 4 | main | `studioReturn.closeLabel` | Close and go back to the Studio list → **Close and go back to the App Studio list** | 关闭并返回 Studio 列表 → **关闭并返回应用搭建列表** | | 5 | main | `dashboard.inPageEdit.pendingDraft` | This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here. → **This dashboard has unpublished changes in App Studio. Publish or discard them there, then edit it here.** | 这个仪表盘在 Studio 里有未发布的改动。请先在那里发布或放弃,再在这里编辑。 → **这个仪表盘在应用搭建里有未发布的改动。请先在那里发布或放弃,再在这里编辑。** | | 6 | main | `console.studio.accessRequired` | You need Studio access to open Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment. → **You need App Studio access to open App Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.** | 你需要 Studio 访问权限才能打开 Studio。管理员可以在“设置 → 权限集分配”中通过权限集授予。 → **你需要应用搭建访问权限才能打开应用搭建。管理员可以在“设置 → 权限集分配”中通过权限集授予。** | | 7 | main | `designMode.menu.pendingDraft` | This app has unpublished changes in Studio. Publish or discard them there, then save again. → **This app has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个应用在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 8 | main | `designMode.menu.translationPendingDraft` | This app's menu names in this language have unpublished changes in Studio. Publish or discard them there, then save again. → **This app's menu names in this language have unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在当前语言下的菜单名称在 Studio 里有未发布的改动。请先在那里发布或放弃,再保存。 → **这个应用在当前语言下的菜单名称在应用搭建里有未发布的改动。请先在那里发布或放弃,再保存。** | | 9 | main | `designMode.menu.newItemLeft` | The new dashboard "{{name}}" could not be removed again; remove it in Studio. → **The new dashboard "{{name}}" could not be removed again; remove it in App Studio.** | 新建的仪表盘「{{name}}」没能删除,请在 Studio 里删除它。 → **新建的仪表盘「{{name}}」没能删除,请在应用搭建里删除它。** | | 10 | main | `designMode.pins.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个对象在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个对象在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 11 | main | `designMode.recordTabs.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 此对象在 Studio 中有未发布的改动。请先在那里发布或丢弃,再保存。 → **此对象在应用搭建中有未发布的改动。请先在那里发布或丢弃,再保存。** | | 12 | main | `empty.recordPagePlacesNoComponentDescription` | The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 13 | main | `empty.recordPagePlacesNoComponentDescriptionUnnamed` | This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 14 | main | `empty.appMenuEmptyDescription` | Create objects for this app in Studio and they join its menu, or add entries in Design layout. → **Create objects for this app in App Studio and they join its menu, or add entries in Design layout.** | 在 Studio 里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。 → **在应用搭建里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。** | | 15 | main | `empty.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 16 | main | `chatbot.draftReview.hint` | Nothing is published yet. Review the drafts and publish them in Studio. → **Nothing is published yet. Review the drafts and publish them in App Studio.** | 还没有发布。请在 Studio 中审阅并发布这些草稿。 → **还没有发布。请在应用搭建中审阅并发布这些草稿。** | | 17 | main | `chatbot.draftReview.reviewAndPublishAria` | Review and publish the drafts of package {{name}} in Studio → **Review and publish the drafts of package {{name}} in App Studio** | 在 Studio 中审阅并发布包 {{name}} 的草稿 → **在应用搭建中审阅并发布包 {{name}} 的草稿** | | 18 | main | `chatbot.draftReview.reviewAria` | Review the draft {{name}} in Studio → **Review the draft {{name}} in App Studio** | 在 Studio 中审阅草稿 {{name}} → **在应用搭建中审阅草稿 {{name}}** | | 19 | main | `packagedAutomation.actionsSubtitle` | Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in Studio. → **Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in App Studio.** | 由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在 Studio 中另行编写自己的动作。 → **由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在应用搭建中另行编写自己的动作。** | | 20 | main | `packagedAutomation.actionsEmptyBody` | No installed package declares an action on this deployment. Actions you author yourself live in Studio. → **No installed package declares an action on this deployment. Actions you author yourself live in App Studio.** | 本部署中没有任何已安装软件包声明动作。你自己编写的动作在 Studio 中。 → **本部署中没有任何已安装软件包声明动作。你自己编写的动作在应用搭建中。** | | 21 | main | `publicFormsSetup.designHint` | Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in Studio. → **Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in App Studio.** | 关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在 Studio 里做。 → **关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在应用搭建里做。** | | 22 | main | `publicFormsSetup.emptyBody` | Public forms are designed in Studio. Once an app has one, it is listed here. → **Public forms are designed in App Studio. Once an app has one, it is listed here.** | 对外表单在 Studio 里设计。应用里有了对外表单,就会列在这里。 → **对外表单在应用搭建里设计。应用里有了对外表单,就会列在这里。** | | 23 | main | `publicFormsSetup.pendingDraft` | {{name}} has unpublished changes in Studio. Publish or discard them there first. → **{{name}} has unpublished changes in App Studio. Publish or discard them there first.** | {{name}} 在 Studio 里有未发布的修改,请先在那里发布或放弃。 → **{{name}} 在应用搭建里有未发布的修改,请先在那里发布或放弃。** | | 24 | main | `publicFormsSetup.switchedOnEarlierVersion` | {{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in Studio. → **{{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in App Studio.** | {{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在 Studio 中恢复原样。 → **{{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在应用搭建中恢复原样。** | | 25 | studio | `perm.field.systemCapabilitiesHelp` | Platform / org capabilities granted to holders of this set (e.g. Studio access, user management). Designed here; Setup shows them read-only. → **Platform / org capabilities granted to holders of this set (e.g. App Studio access, user management). Designed here; Setup shows them read-only.** | 授予此权限集持有者的平台/组织能力(如 Studio 访问、用户管理)。在此设计,Setup 中只读展示。 → **授予此权限集持有者的平台/组织能力(如应用搭建访问、用户管理)。在此设计,Setup 中只读展示。** | | 26 | studio | `engine.studio.refusal.draftUnreadable` | This item has an unpublished draft you are not allowed to read, so Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered. → **This item has an unpublished draft you are not allowed to read, so App Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered.** | 此项有一份您无权读取的未发布草稿,因此 Studio 没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。 → **此项有一份您无权读取的未发布草稿,因此应用搭建没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。** | | 27 | studio | `engine.inspector.servedLabel.kept` | Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in Studio › All metadata › Translation. → **Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 28 | studio | `engine.inspector.servedLabel.ifKept` | Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in Studio › All metadata › Translation. → **Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 29 | studio | `engine.packages.admin.description` | Turn the packages installed in this system on or off, or delete one. A new package opens in Studio, where it is designed. → **Turn the packages installed in this system on or off, or delete one. A new package opens in App Studio, where it is designed.** | 启用、停用或删除本系统中安装的软件包。新建的软件包会在 Studio 中打开,在那里设计。 → **启用、停用或删除本系统中安装的软件包。新建的软件包会在应用搭建中打开,在那里设计。** | | 30 | studio | `engine.packages.detail.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 31 | studio | `engine.packages.customizations.customize` | Customize in Studio → **Customize in App Studio** | 在 Studio 中定制 → **在应用搭建中定制** | | 32 | studio | `engine.packages.customizations.customizeTitle` | Open this app in Studio, where its items are customized → **Open this app in App Studio, where its items are customized** | 在 Studio 中打开这个应用,在那里定制它的条目 → **在应用搭建中打开这个应用,在那里定制它的条目** | | 33 | studio | `engine.packages.customizations.rowTitle` | Open {name} in Studio → **Open {name} in App Studio** | 在 Studio 中打开 {name} → **在应用搭建中打开 {name}** | | 34 | studio | `engine.studio.data.appMenu.pendingDraft` | The app has unpublished changes in Studio. → **The app has unpublished changes in App Studio.** | 这个应用在 Studio 里有尚未发布的改动。 → **这个应用在应用搭建里有尚未发布的改动。** | | 35 | studio | `engine.studio.desktopHint` | Studio is built for a desktop screen. → **App Studio is built for a desktop screen.** | Studio 专为桌面屏幕设计。 → **应用搭建专为桌面屏幕设计。** | | 36 | studio | `engine.studio.notFound.pillar` | This page does not exist. Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above. → **This page does not exist. App Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above.** | 页面不存在。Studio 没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。 → **页面不存在。应用搭建没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。** | | 37 | studio | `engine.studio.menu.label` | Studio menu → **App Studio menu** | Studio 菜单 → **应用搭建菜单** | | 38 | studio | `engine.setup.accessDirectory.notAllowed` | Opening this page needs the {capability} capability, the one Studio asks. → **Opening this page needs the {capability} capability, the one App Studio asks.** | 打开此页需要 {capability} 权限,即进入 Studio 所需的权限。 → **打开此页需要 {capability} 权限,即进入应用搭建所需的权限。** | | 39 | studio | `engine.studio.backToAppTitle` | Leave Studio and go back to {app} → **Leave App Studio and go back to {app}** | 离开 Studio,回到 {app} → **离开应用搭建,回到 {app}** | | 40 | studio | `engine.studio.backToAppTitleNoApp` | Leave Studio and go back to your apps → **Leave App Studio and go back to your apps** | 离开 Studio,回到你的应用 → **离开应用搭建,回到你的应用** | | 41 | studio | `engine.studio.customize.pendingDraft` | This item has unpublished changes in {package}. Publish or discard them in Studio, then edit it here. → **This item has unpublished changes in {package}. Publish or discard them in App Studio, then edit it here.** | 此项在 {package} 中有未发布的更改。请先在 Studio 中发布或丢弃它们,再在这里编辑。 → **此项在 {package} 中有未发布的更改。请先在应用搭建中发布或丢弃它们,再在这里编辑。** | | 42 | studio | `engine.catalog.readOnly.walled` | Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in Studio; your organization assigns them. → **Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in App Studio; your organization assigns them.** | 组织管理员只能查看。此部署中由平台运营方在 Studio 中为所有组织定义{type};您的组织负责分配。 → **组织管理员只能查看。此部署中由平台运营方在应用搭建中为所有组织定义{type};您的组织负责分配。** | | 43 | studio | `engine.studio.landingHome` | Studio home → **App Studio home** | Studio 首页 → **应用搭建首页** | | 44 | studio | `engine.studio.landing.customizations.pairTitle` | Open the customization package {pair} in Studio → **Open the customization package {pair} in App Studio** | 在 Studio 中打开定制包 {pair} → **在应用搭建中打开定制包 {pair}** | </details> ## Verification Read first, in risk order: 1. `ui/packages/i18n/src/locales/zh-Hans.ts`: the Chinese sentences, where the old Latin word took spaces with it. 2. `ui/packages/i18n/src/locales/de.ts`: the only pack with compounds (`App-Studio-Zugriff`, `App-Studio-Liste`). 3. `ui/packages/i18n/src/namespaces/studio/zh.ts`: the Studio front's own sentences (menu label, the way back, the refusal). Two-minute check: open `/_console/studio/PACKAGE_ID` in a Chinese UI. The left menu's accessible name is 「应用搭建菜单」, and the way back's tooltip reads 「离开应用搭建,回到 …」; in an English UI they read "App Studio menu" and "Leave App Studio and go back to …". --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibz59TqsYwACVq1LPf9)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#3 · os-tesla · session_01L9qibyFBwGSJLARjP5asi3
Requested by Tesla · project thread
Fixes #36722
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — an optional, off-by-default presentation switch; the skill's report block teaches the chart's data keys (
xAxis,yAxis,seriesBy), and the chart chrome beside it (showLegend,showDataLabels) is not taught there either维护者速读
What changes
packages/spec/src/ui/report.zod.ts:ReportChartSchemagainsshowEmptyGroups: z.boolean().optional(), no default. A report that does not set it parses exactly as before. The TSDoc and the.describe()state every case the switch adds nothing in: a field with no declared options, anorderthat reaches the chart, and an answer with no rows (it still draws no chart). They also say that a derived measure stays empty and that an option the report's own filter excludes reads as empty. Since review round 2 (S4) they name the chart families: the switch acts on the charts with a category axis (bar, column, horizontal-bar, line, area, radar, combo); a pie, donut, funnel, treemap or sankey sizes its marks by value and gets nothing added, a scatter takes no select axis, and on a single-value or table type the key is accepted and has no effect. Generated: the report reference page, the authorable surface (ui/ReportChart:showEmptyGroups) and the report liveness counts.packages/spec/liveness/report.json(claim amendment 3): the key's ownliverow underchart.children(review nit N1), citingfillEmptyOptionGroups,chartDrawsEmptyGroups,DatasetReportChartand their tests, beside theseriesByrow; its note names the families.ui/packages/plugin-report/src/emptyOptionGroups.ts(new):fillEmptyOptionGroups(rows, fill)adds one row for each declared option of thexAxisfield that no answer row carries. An added row carries the stored value, so relabelling, declared order and option colours treat it like a real group. Its measure cells areemptyGroupValueFor(aggregate)from@objectstack/spec/data, the table the analytics executor fills its own empty groups with:0for count and sum, no value for avg/min/max. WithseriesByan added option gets one row per series value in the answer. Added rows are appended, so every index below the answer's length still addresses the answer. Whether an option is missing is judged by the stored value the answer'sdrillRawRowscarries (index-aligned with the rows): a row whose raw twin states the x-axis value is matched by that value alone, so a label the server translated at the request locale never reads as a second, zero-valued group. Only a row with no raw twin falls back to spellings (stored value, authored label, localized label). The same module exportschartDrawsEmptyGroups(type), the one predicate for "this chart type can draw an empty group": bar, column, horizontal-bar, line, area, radar, combo. The renderer and the builder both read it.ui/packages/plugin-report/src/DatasetReportRenderer.tsx: the report chart calls the fill whenchart.showEmptyGroups === true, noorderreaches the chart's selection andchartDrawsEmptyGroups(chart.type)holds, before relabelling and the declared-order arrangement, and hands itstate.drillRawRows. A mark on an added group opens no record list. This is plugin-report's first runtime import of@objectstack/spec, so the package moves it fromdevDependenciestodependencies(check:undeclared-dep-imports). The library build externalizes every bare specifier, so the bundle does not grow, and plugin-dashboard already depends on@objectstack/specand imports@objectstack/spec/dataat runtime. No ui/ import rule refuses it.ui/packages/plugin-report/src/builder/: the report builder shows a "Show groups with no records" switch only where the renderer fills (chartDrawsEmptyGroups: bar and line among the builder's own choices, a stored column, area, radar or combo too), and not over a date axis (offersShowEmptyGroups; every bucket of the period already appears). It saveschart.showEmptyGroups: trueand turning it off removes the key. An edit keeps an authored key on every type the renderer plots as a series (planReportChart's 13 series types, so a donut or a stored funnel does not lose it, S2); only a single-value or tabular type drops it. One new locale key,report.builder.chart.showEmptyGroups, in all 11 packs.content/docs/ui/reports.mdxand a README note in plugin-report, both naming the no-fill cases and the chart families.@objectstack/specminor;@object-ui/plugin-report,@object-ui/i18npatch.Not changed: the analytics executor and the dataset query (route B of the pre-claim report is not built), the table under the chart, HotCRM.
Why
A grouped dataset query answers one row per value that holds rows, so a select option no record carries is absent from the answer. A "deals by stage" bar chart then has no bar for an empty stage, and the stage reads as not existing rather than as zero. The issue's date half already holds on
main: the executor fills every bucket of a report's period (#26893), so a date axis needs no switch.Tests
emptyOptionGroups.test.ts(new, 10 cases): presence by the raw twin's stored value (a server label the client does not know is still present, with the no-raw-twin control drawing the false zero; a raw value overrules a display spelling another option carries; a row without a raw twin falls back to spellings); presence by value, label and localized label; count and sum at 0, avg with no value; one row per series value, the null series included; duplicate declarations added once; the input array returned when nothing is missing.DatasetReportRenderer.test.tsx, a new top-leveldescribein the shared harness (9 cases): count fill in declared order at 0; a group the server labelled "Gewonnen" whose raw twin isclosed_wonis recognised, so no "Closed Won" at 0 is added; sum at 0 and avg empty;seriesByat 0 in every series; a mark on an added stage opens no list and a real one still drills; the selection sent is identical with the switch on and off; CONTROLS that add nothing: switch off, a measureorder, a text field with no declared options, and (S4) every value-sized type: pie, donut, funnel, treemap, sankey; a category-axis type the builder does not offer itself (area, column) is filled like a bar.DatasetReportRenderer.dateRange-25873.test.tsx, a newdescribe: a date axis over a period sends the same selection and draws the same buckets, the empty month included, with the switch on and off.reportBuilder-36374.test.tsx, a newdescribe: the switch saves, parses as a valid report, reopens checked, and off removes the key; it is offered on bar and line, hidden on a donut (which keeps the key) and on a number; the model keeps it across edits and drops it on metric and table; a stored funnel keeps it across a measure and a grouping edit and offers no switch, a stored gauge drops it; a date axis shows no switch and the model keeps an authored key there; and over the wholeChartTypeSchemavocabulary the key is kept on exactly the typesplanReportChartplans as a series and offered on exactlychartDrawsEmptyGroups, which is pinned to area, bar, column, combo, horizontal-bar, line, radar.packages/spec/src/ui/report.test.ts: absent stays absent, and a non-boolean is refused atshowEmptyGroups.Acceptance notes
limitoroffset, and the dataset answer carries no truncation signal, so a truncated chart answer does not occur on this path; there is nothing to test. (2) The fill declines under ANYorderthat reaches the chart, a dimension order included, not only a measure order. Appended rows have no place in an authored order, and the declared-option arrangement is already off under an order. This narrows when the switch acts; it refuses nothing..describe(), the reports page and the README now say so.orderreaches the chart. On both the renderer adds nothing, as the contract states.Verification
pnpm --dir ui exec vitest run packages/plugin-report/src/__tests__/emptyOptionGroups.test.ts packages/plugin-report/src/__tests__/DatasetReportRenderer.test.tsxpasses, the new blocks included.fillEmptyOptionGroups(emptyOptionGroups.ts), then thechartRowsline inDatasetReportChart(DatasetReportRenderer.tsx).Local readings at 2ac50c0
0at its declared place; sum reads0; avg has no value at the added stage (nothing to average).orderadds nothing; a text field with no declared options adds nothing. The selection sent to the dataset is identical with the switch on and off.scripts/ablation-replace.mjs, restore blob == HEAD: the renderer'schartDrawsEmptyGroups(chart.type)bound removed, 1 failed / 69 passed in the renderer suite (the value-sized CONTROL); the builder's offer predicate widened back to every series type, 3 failed / 107 passed in the builder suite (the donut, stored-funnel and vocabulary pins).planReportChartparity pin.emptyOptionGroups,DatasetReportRenderer,reportBuilder-36374110 passed;pnpm -s type-checkin@object-ui/plugin-reportexit 0;check:generatedandcheck:livenessexit 0 after regenerating the report reference page.emptyOptionGroups,DatasetReportRenderer,reportBuilder-36374107 passed,DatasetReportRenderer.dateRange-25873andreport-spec-paritygreen (5 files, 134 passed at 0d03b6f); at 86c2dbe the four touched files 115 passed andpnpm --dir ui exec vitest run packages/plugin-report packages/i18n149 files, 2292 passed, 20 skipped.packages/specsrc/ui/report.test.ts83 passed.@object-ui/plugin-reporttype-checkexit 0 at 1c290e5, after building its dependencies' declarations. CI's Type Check UI was red at a9c6b54 on one new test line (TS2339,chart?.typeread off{}), reproduced locally and fixed in 1c290e5.objectstack dev --freshplus the console on vite, Playwright): on the local fresh database the two Backlog tasks were moved to To Do, so thestatusoption Backlog holds no records. "Hours by Status (Chart)" drew To Do, In Progress, In Review, Done. In the report builder the "Show groups with no records" switch sits under "Show values". Switched on, the preview drew Backlog, To Do, In Progress, In Review, Done, with Backlog first (declared order) at no height. The switch is hidden on Number, and coming back to Bar it is off (the metric drops the key). Save sentPUT /api/v1/meta/report/showcase_hours_by_status_chartwithchart.showEmptyGroups: true, then publish. The reloaded report view drew the five statuses, and the builder reopened with the switch on.dispatch-gates --ranwith recorded exit codes, swept at 2ac50c0: 126 derived, 125 run exit 0, 1 NOT MEASURED (exit 3:check-plugin-teardown-shape --self-test, fixture commit outside the shallow clone), 0 unrun.check-plugin-teardown-shape --self-test, fixture commit outside the shallow clone), 0 unrun.check:dts-closureandcheck:dual-build-cjs-loadsfirst exited 1 on an incomplete local dist (no declarations forservice-cluster, missingplatform-objectsfiles), packages this diff does not touch; both exit 0 after rebuilding those packages. The first sweep at 6508986 found one real red,check:undeclared-dep-imports(@objectstack/specwas a dev dependency), fixed in 86c2dbe.overlap-check.mjsVERDICT clean exit 0 at 2ac50c0 against main and feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307, chore: version packages (next) #38192 (all merge cleanly).Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3