Skip to content

Commit 8b0e790

Browse files
committed
test(platform-objects): the Dataset twin points at the dataset type label
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
1 parent 82110ad commit 8b0e790

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@
9696
// `dataset_binding` description, the `drilldown` hint and the `runtimeFilter`
9797
// hint — and each row says its verdicts were taken against the old English.)
9898
//
99+
// (#36838 gave the top-level `dataset` / `values` / `rows` / `columns` rows the
100+
// blocks grid's titles — Data Source / Metrics / Group By / Group Columns By —
101+
// where they read the humanized keys. Each label leaf already existed, so the
102+
// population, the field leaves and the inward negatives did not move, and none
103+
// of the six decided rows moved. The "Dataset" twin below now points at the
104+
// English the heading was rendered from on the dataset type's own label.)
105+
//
99106
// ## ⚠️⚠️ The phantom-translation trap — and why this family is the SHARP case
100107
//
101108
// `reportForm` declares NO label on `drilldown` and NO label on `runtimeFilter`
@@ -788,7 +795,13 @@ describe('#19403 round 9 — one schema key, one rendering', () => {
788795
// Round 5's discipline, from the other side: a row that names a twin has to
789796
// be able to point at it.
790797
const en = enMetadataForms as Record<string, any>;
791-
expect(en.report?.fields?.dataset?.label).toBe('Dataset');
798+
// #36838 renamed the report row's English to "Data Source", the blocks
799+
// grid's term; its translated values (asserted below) did not move. The
800+
// English word "Dataset" this heading was rendered from still has an
801+
// authored home with the SAME three renderings: the metadata type's own
802+
// label, asserted below as well.
803+
expect(en.report?.fields?.dataset?.label).toBe('Data Source');
804+
expect(en.dataset?.label).toBe('Dataset');
792805
expect(en.dataset?.sections?.measures?.label).toBe('Measures');
793806
expect(en.dataset?.sections?.dimensions?.label).toBe('Dimensions');
794807
expect(String(en.dataset?.fields?.filter?.helpText)).toContain('ANDed into every query');
@@ -817,6 +830,7 @@ describe('#19403 round 9 — one schema key, one rendering', () => {
817830
for (const [locale, forms] of TRANSLATED_LOCALES) {
818831
const want = expected[locale];
819832
expect(String(forms.report?.fields?.dataset?.label), `${locale} the Dataset twin moved`).toBe(want.dataset);
833+
expect(String(forms.dataset?.label), `${locale} the dataset type label no longer reads the Dataset twin`).toBe(want.dataset);
820834
expect(String(forms.dataset?.sections?.measures?.label), `${locale} the Measures twin moved`).toBe(want.measures);
821835
expect(String(forms.dataset?.sections?.dimensions?.label), `${locale} the Dimensions twin moved`).toBe(
822836
want.dimensions,

0 commit comments

Comments
 (0)