Skip to content

feat(ui/ingest): localize the ODCS recipe form and add the contract urn and physical binding options - #21899

Open
acrylJonny wants to merge 8 commits into
odcs/05-docsfrom
odcs/06-ui-form
Open

acrylJonny wants to merge 8 commits into
odcs/05-docsfrom
odcs/06-ui-form

Conversation

@acrylJonny

@acrylJonny acrylJonny commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

The ODCS ingestion form had hard-coded English strings and no way to set the options added earlier in this stack.

  • Localized form: every label, helper, tooltip, select option, placeholder and validator message in the ODCS recipe form now goes through i18next, following the sqlmesh, hightouch and microstrategy forms. There are 72 odcs.* keys in ingestion.sourceBuilder.json, translated in all 14 locales, with product names left as they are.
  • New advanced fields:
    • Data Contract URN (data_contract_urn): keyed on the dataset (default) or on the ODCS id.
    • Data Contract URN Prefix (data_contract_urn_prefix): shown only for the id mode.
    • Bind to Physical Dataset (bind_to_physical_dataset). The form rejects it unless the id mode is chosen and Emit Logical Parent Link is on, matching the connector's own validation.
  • Not in the form: classification_glossary_term_mapping and retention_glossary_terms stay YAML-only. No recipe form has a widget for maps or lists of objects.

Checks: the flat-keys check passes, the parity check reports no drift in ingestion.sourceBuilder, eslint and prettier pass on the changed files, and the Vitest suite passes, including 6 new ODCS form tests.

Stacked on the docs PR.

  • Tests added/updated

🤖 Generated with Claude Code


Summary by cubic

Localizes the ODCS recipe form and adds the data contract URN and physical binding options to the UI. The form previously showed hard-coded English strings and had no way to set these options.

New Features

  • All labels, helpers, tooltips, select options, placeholders, and validator messages now resolve through i18next, matching the sqlmesh, hightouch, and microstrategy forms; 72 odcs.* keys were added to ingestion.sourceBuilder.json across all 14 locales.
  • data_contract_urn is keyed on the dataset by default or on the ODCS id, with data_contract_urn_prefix shown only in id mode.
  • bind_to_physical_dataset is rejected unless id mode is selected and Emit Logical Parent Link is on, matching the connector's own validation.
  • classification_glossary_term_mapping and retention_glossary_terms stay YAML-only; no recipe form has widgets for maps or lists of objects.
  • Adds 6 new form tests for the translated labels and the new advanced fields.

Written for commit 9d7cc78. Summary will update on new commits.

View guided diff Turn on auto-fix

acrylJonny and others added 2 commits December 4, 2026 12:26
…rn and physical binding options

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acrylJonny
acrylJonny added this pull request to stack #21895 December 4, 2026 12:27
@github-actions github-actions Bot added the product PR or Issue related to the DataHub UI/UX label Dec 4, 2026
@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

Overview
The ODCS ingestion recipe form no longer uses hard-coded English copy: labels, helpers, tooltips, select options, placeholders, and validation errors resolve through i18next via lazy getters (same pattern as other localized source forms), with new odcs.* strings added across all supported ingestion.sourceBuilder locales. Location-required validators now build messages from translation keys instead of inline field/location names.

Three advanced options are exposed in the form and wired to source.config.*: Data Contract URN (ENTITY vs ID, case-normalized on load), URN prefix (visible and kept only in ID mode; stripped from the recipe when switching to dataset-keyed mode), and Bind to Physical Dataset (blocked unless ID mode and emit logical parent are enabled, matching connector rules).

Tests cover lazy i18n resolution, the new fields’ recipe read/write/hide behavior, and localized validator output.

Reviewed by Cursor Bugbot for commit 4aa16f0. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Smart test selection

Playwright E2E tests

This run: smart

  • Selection: smart: specs tagged assertions, data-contracts, ingestion, ingestion:connector, lineage, schema-metadata plus the tests the change affects
  • Size: 93 tests in 23 spec files, ~14 min predicted on 2 shard(s)
Specs selected because of this PR (23)
Spec Tests Why
column-lineage-controls/column-lineage-controls.spec.ts 8/8 tagged lineage
column-lineage-hidden/column-lineage-hidden.spec.ts 2/2 tagged lineage
data-product-lineage/data-product-bounding-box.spec.ts 2/2 tagged lineage
entity-pages/summary-tab/v2-summary-tab-about-section.spec.ts 2/2 tagged schema-metadata
ingestion-v3/odcs-source.spec.ts 2/2 tagged ingestion
ingestion-v3/run-history.spec.ts 6/6 tagged ingestion
ingestion-v3/secrets-tab.spec.ts 4/4 tagged ingestion
ingestion-v3/sources.spec.ts 10/10 tagged ingestion
lineage-cll/cll-highlighting.spec.ts 12/12 tagged lineage
lineage-controls/lineage-filters.spec.ts 4/4 tagged lineage
lineage-controls/lineage-node-columns.spec.ts 2/2 tagged lineage
lineage-controls/lineage-sidebar.spec.ts 1/1 tagged lineage
lineage-controls/schema-field-lineage.spec.ts 1/1 tagged lineage
lineage-v3/v3-download-lineage-results.spec.ts 1/1 tagged lineage
lineage-v3/v3-lineage-column-level.spec.ts 1/1 tagged lineage
lineage-v3/v3-lineage-column-path.spec.ts 1/1 tagged lineage
lineage-v3/v3-lineage-graph.spec.ts 13/13 tagged lineage
lineage-v3/v3-lineage-impact-analysis.spec.ts 10/10 tagged lineage
mutations/manage-ingestion-secret-privilege.spec.ts 3/3 tagged ingestion
nested-column-stats/nested-column-stats.spec.ts 3/3 tagged schema-metadata
quality/assertion-list.spec.ts 1/1 tagged assertions
schema-blame/schema-blame.spec.ts 2/2 tagged schema-metadata
schema-scale/schema-scale.spec.ts 2/2 tagged schema-metadata

Add the run-all-tests:playwright label to run the full Playwright suite on this PR.

commit 9d7cc78 · workflow run

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.63498% with 22 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...src/app/ingestV2/source/builder/RecipeForm/odcs.ts 91.53% 22 Missing ⚠️

📢 Thoughts on this report? Let us know!

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 115.03kB (0.36%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 31.67MB 115.03kB (0.36%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/ru-*.js 11.78kB 525.49kB 2.29%
assets/ja-*.js 8.96kB 399.07kB 2.3%
assets/hu-*.js 8.37kB 396.28kB 2.16%
assets/fr-*.js 8.21kB 390.15kB 2.15%
assets/es-*.js 8.12kB 380.72kB 2.18%
assets/de-*.js 7.86kB 378.58kB 2.12%
assets/it-*.js 7.81kB 373.81kB 2.13%
assets/pt-*.js 7.91kB 373.23kB 2.17%
assets/fi-*.js 7.93kB 371.5kB 2.18%
assets/sv-*.js 7.7kB 364.76kB 2.16%
assets/en-*.js 7.08kB 359.29kB 2.01%
assets/nb-*.js 7.44kB 357.26kB 2.13%
assets/zh-*.js 6.75kB 327.68kB 2.1%
assets/zh-*.js 6.9kB 332.1kB 2.12%
assets/ConnectionDetailsSubTitle-*.js 1.99kB 262.28kB 0.76%
assets/useKeyboardControls-*.js 223 bytes 105.4kB 0.21%

Files in assets/ConnectionDetailsSubTitle-*.js:

  • ./src/app/ingestV2/source/builder/RecipeForm/odcs.ts → Total Size: 16.52kB

  • ./src/app/ingestV2/source/builder/RecipeForm/constants.ts → Total Size: 20.45kB

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 17 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@meticulous

meticulous Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Meticulous spotted 0 visual differences across 86 screens tested: view results.

Meticulous evaluated ~18 hours of user flows which tested 169/269 of the executable lines edited in your PR1.

1. These 100 untested lines will likely automatically gain test coverage over the coming days, however if you wish to increase coverage immediately you can do so by interacting with your feature on localhost.

Expected differences? Click here. Last updated for commit 9d7cc78 Merge branch 'odcs/05-docs' into odcs/06-ui-form. This comment will update as new commits are pushed.

@meticulous

meticulous Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Meticulous Agent Swarm

These results are from 4aa16f0. This PR's latest commit, 9d7cc78, doesn't change its diff, so they still hold.

Pass ODCS form labels and errors follow the chosen language

Labels, location options and required-region errors translate into German, Japanese and Simplified Chinese.

Watch: ODCS labels and location errors follow every supported locale

Open in Meticulous

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Initial JS bundle size ➡️

Base (5dbe547) This PR Diff
index.html (/login) 250 KB 250 KB -0 KB (-0.0%)
Logged-in shell 1.07 MB 1.07 MB -0 KB (-0.0%)
/search 1.25 MB 1.25 MB -0 KB (-0.0%)
/ (home) 1.27 MB 1.27 MB -0 KB (-0.0%)

index.html is the login page; logged-in pages add the shell. Gzip of the JS loaded before first paint. Codecov reports total bundle including lazy chunks — these intentionally differ.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

i18n locale parity

Status: ⚠️ drift detected (warn-only) — 135 issue(s) across 13 locale(s)

Locale Missing keys Stale keys Placeholder Files
de 153 10 0 10
es 153 10 0 10
fi 153 12 0 11
fr 153 10 0 10
hu 153 10 0 10
it 153 10 0 10
ja 153 12 0 11
nb 153 10 0 10
pt-BR 153 10 0 10
ru 153 13 0 12
sv 153 10 0 10
zh-CN 153 10 0 10
zh-TW 153 12 0 11

Per-key detail is in the job summary of the datahub-web-react-lint run, or reproduce locally:

./gradlew :datahub-web-react:yarnI18nParityCheck        # all locales
cd datahub-web-react && yarn check-i18n-parity --lang de  # one locale

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Boot web vitals (no backend)

Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP.

Web-vitals A/B — base (5dbe547) (A) vs pr (9d7cc78) (B)

Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B.

Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.

boot

Measured runs in the table: A 3/3, B 3/3.

metric A p50 B p50 Δ p50 Δ% A p95 B p95
fcp 853 ms 855 ms 2 ms +0.2% 857 ms 887 ms
lcp 1313 ms 1320 ms 8 ms +0.6% 1319 ms 1338 ms
cls 0.0000 0.0000 0.0000 — 0.0000 0.0000
tbt 16 ms 18 ms 3 ms +16.1% 18 ms 26 ms
tti 1314 ms 1322 ms 7 ms +0.6% 1320 ms 1342 ms
ttfb 1 ms 1 ms 0 ms +14.4% 1 ms 8 ms
transferredBytes 1077.1 KB 1079.1 KB 2.0 KB +0.2% 1077.1 KB 1079.1 KB
mainThread 321 ms 329 ms 7 ms +2.3% 341 ms 385 ms
bootup 176 ms 171 ms -5 ms -2.7% 176 ms 196 ms

Resource transfer by type (p50):

type A bytes B bytes Δ bytes A requests B requests
document 1.3 KB 1.3 KB -0.0 KB 1 1
script 645.3 KB 647.3 KB 2.0 KB 8 8
stylesheet 3.0 KB 3.0 KB 0.0 KB 2 2
image 48.7 KB 48.7 KB 0.0 KB 1 1
media 257.3 KB 257.3 KB 0.0 KB 1 1
font 106.6 KB 106.6 KB 0.0 KB 3 3
other 0.0 KB 0.0 KB 0.0 KB 0 0

LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub

These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.

@max-datahub max-datahub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Every fieldPath matches a Python config key. ENTITY/ID are written in upper case and read back in either case, the bind validator mirrors the backend rule, and all 14 locales have the same key set with matching placeholders.

Nits:

  • Untranslated placeholder. odcs.ts:79 still has an English "or" in it.
  • Tooltip. odcs.emitAssertions.tooltip doesn't mention latency SLA freshness assertions, which emit_assertions also controls.
  • Brittle test. odcs.test.ts:776 asserts exact English error text.
  • Claude (on behalf of Max)

This branch was successfully deployed

2 active deployments
Preview — 9d7cc78b Deployed Dec 4, 2026 by vercel[bot]
datahub-project-web-react (Preview) — 9d7cc78b Deployed Dec 4, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants