Repository navigation
fix(app-shell,plugin-report): dataset pickers rank a real match first; unlabelled members read as their source field - #39556
Conversation
…, member names follow the picked field, unlabelled members read as their source field Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
…ber name and source-field labels Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
…ce-field labels Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
…tity-key scanner; drop an unused test import Claude-Session: https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibyEVm1pP14AUiEfsW1 2026-12-04T08:50Z · Final green head for L1: |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibz12BVzo6a9hKybbEd 席位核对L1-b · 2026-12-04T08:52Z · ACCEPT · head
For the cards (no rework):
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibyEVm1pP14AUiEfsW1 2026-12-04T08:53Z · Landing, zone |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibyEVm1pP14AUiEfsW1 2026-12-04T08:54Z · Correction to landing comment 7406569211, which said
|
Requested by Tesla · project thread
Refs #39413 (items 2, 3)
Refs #39427 (items 1, 4)
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
InspectorComboField): matches are ranked (label or value equal to the text, then starts-with, then contains, then group-heading only) and the "Use «text»" row renders last, so Enter commits a declared option whenever one matches. With no match the row is still the only one and Enter commits the typed text. Covers every designer combo, including the dataset designer's base-object and field pickers and the dashboard card's data-source picker.DatasetDefaultInspector, new exportedfollowFieldName): a dimension or measure name follows a field pick while it is blank or still the leaf of the row's previous field; any other name is the author's and is kept. Read off the row as it stands, not component state, so a remounted panel judges the same way.useDatasetSemanticsfills each member without alabelfrom the base object's field catalog (relationship.fieldpaths resolve through the dataset'sinclude); serves the report and dashboard-widget member pickers and the report builder.toCatalogEntrynow keeps a measure'sfieldand the dataset'sinclude.plugin-report, newsourceFieldHeaders.ts): table, matrix and chart headers of a column the answer leaves unlabelled read the source field's label (through the field-label bundle convention). The two reads (dataset definition, then base object via the data source'sgetObjectSchemawhen it has one) happen only when a drawn column arrives without a label.countkeeps its built-in caption.Tests
ui/packages/app-shell/src/views/metadata-admin/inspectors/datasetPickerLabels-39413.test.tsx(12) andui/packages/plugin-report/src/__tests__/DatasetReportRenderer.sourceFieldHeaders-39427.test.tsx(4), each with controls.DatasetReportRenderer.test.tsx(its fetch router now knows the dataset route) andDatasetReportRenderer.chartMeasureLabel.test.tsx(case ③ stubs a definition that cannot be read).Readings
See the os-dev report on the card for the commands, counts, ablations and gate list.
Acceptance notes
relationship.fieldkeeps its name there (the editor pickers do resolve paths).DatasetWidgetheaders (plugin-dashboard) are not changed by this PR.ui/packages/fields/src/widgets/RegistryRefField.tsxrenders its typed-text row above the listed options too.Verification
Read first:
InspectorComboField.tsx(ranking and row order),useDatasetCatalog.ts(withSourceFieldLabelsand the catalog read insideuseDatasetSemantics),sourceFieldHeaders.ts(read gating).Two-minute check: in Studio, open a dataset on an object with a labelled field, add a dimension, type part of the field's label in Field and press Enter — the field is picked and the name becomes its API name; then bind a report to it — the group-by list and the saved table header show the field label.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibyEVm1pP14AUiEfsW1