Skip to content

chore(example): bump LVA, MDA contract_details schema versions - #1935

Open
gabrielseco wants to merge 1 commit into
mainfrom
workbench/g-2026-11-11-bump-contract-details-LVA-MDA
Open

gabrielseco wants to merge 1 commit into
mainfrom
workbench/g-2026-11-11-bump-contract-details-LVA-MDA

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Moves the pinned contract_details schema version in the example app for Latvia (LVA) and Moldova (MDA) from v1 to v6. Both countries now use the newer form engine, so they are added to the list of such countries, and a v6 baseline snapshot is added for each. A migration guide for each country is added and the README version matrix is updated; the guides cover v2 to v6 for partners with custom UIs. There is no public API change.

Decisions to review

  • Latvia and Moldova are added to the newer-form-engine country list, and the tests that used Latvia as the non-engine example now use Bolivia instead.

Differences from the goal

  • Beyond the pin bump, two test fixtures that used Latvia as the non-newer-engine example were changed to Bolivia, which goes beyond a plain version bump.

Why

The example app pins Latvia and Moldova to v1, far behind the latest published contract_details schemas (v6), so the example does not exercise current onboarding forms for these countries.

What changed

Files and behaviour (9 files +822 −8)
  • docs/schema-changes/eor/contract-details/countries/LVA.md +138 −0
  • docs/schema-changes/eor/contract-details/countries/MDA.md +132 −0
  • docs/schema-changes/eor/contract-details/countries/README.md +2 −2
  • example/src/flows/Onboarding/jsonSchemaVersions.ts +2 −2
  • snapshots/contract-details/LVA.v6.json +265 −0
  • snapshots/contract-details/MDA.v6.json +275 −0
  • src/flows/Onboarding/tests/OnboardingFlowJobTitleEligibility.test.tsx +2 −2
  • src/flows/Onboarding/tests/utils.test.ts +4 −2
  • src/flows/Onboarding/utils.ts +2 −0

Related Resources

Testing

Check: passed (exit 0, 2s)


Note

Low Risk
Documentation, example version pins, snapshots, and test/country-list updates only; no production API or auth changes.

Overview
Pins Latvia (LVA) and Moldova (MDA) contract_details from v1 to v6 in the example app's jsonSchemaVersionByCountry, and adds v6 baseline snapshots plus country migration guides (v2–v6) with an updated README version matrix.

Both countries are added to JSF_V1_CONTRACT_DETAILS_COUNTRIES, so onboarding uses the build-once / jsf v1 contract-details path for them. Tests that needed a non–jsf-v1 country now use Bolivia (BOL) instead of Latvia.

No public API change—example pins, docs, snapshots, and internal country routing for the newer form engine.

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

Workbench-Thread: g-2026-11-11-bump-contract-details-LVA-MDA
@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 247.55 kB 247.54 kB +6 B (+0.0%) 🔴
Total (raw) 681.16 kB 681.16 kB +8 B (+0.0%) 🔴
CSS (gzip) 22.03 kB 22.03 kB 0 B (0%) 🟢
CSS (raw) 114.89 kB 114.89 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 247.55 kB / 350 kB (70.7%)
  • ✅ Total raw: 681.16 kB / 850 kB (80.1%)
  • ✅ CSS gzipped: 22.03 kB / 25 kB (88.1%)

Largest Files (Top 5)

  1. index.esm-wIkXrqU6.js - 11.4 kB (0 B (0%))
  2. styles.css - 11.02 kB (0 B (0%))
  3. index.css - 11.02 kB (0 B (0%))
  4. internals-BR88dp0u.js - 6.17 kB (0 B (0%))
  5. hooks-CZ-7BjDc.js - 5.82 kB (0 B (0%))
View All Files (317 total)
File Size (gzip) Change
index.esm-wIkXrqU6.js 11.4 kB 0 B (0%)
styles.css 11.02 kB 0 B (0%)
index.css 11.02 kB 0 B (0%)
internals-BR88dp0u.js 6.17 kB 0 B (0%)
hooks-CZ-7BjDc.js 5.82 kB 0 B (0%)
index.js 5.65 kB 0 B (0%)
sdk.gen-D_5dqKZ5.js 5.63 kB 0 B (0%)
FieldSetField-BU5lSRw-.js 4.7 kB 0 B (0%)
flows/Onboarding/hooks.js 4.69 kB 0 B (0%)
EstimationResults-DfJw-l0i.js 3.79 kB 0 B (0%)

✅ Bundle size check passed

@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for adp-cost-calculator ready!

Project:adp-cost-calculator
Status: ✅  Deploy successful!
Preview URL:https://adp-cost-calculator-73ge26a85-remotecom.vercel.app
Latest Commit:342bddd

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-ibb2v745r-remotecom.vercel.app
Latest Commit:342bddd

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

Preview employments

Seeded through https://remote-flows-ibb2v745r-remotecom.vercel.app. Each link opens onboarding with the employment prefilled: continue through Select Country and Basic Information to reach Contract Details.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚠️ Coverage decreased

Metric Current Previous Change Status
Lines 90.77% 90.80% -0.03% 🔴
Statements 90.65% 90.68% -0.03% 🔴
Functions 89.66% 89.66% 0% ⚪
Branches 82.36% 82.38% -0.02% 🔴

Detailed Breakdown

Lines Coverage
  • Covered: 5930 / 6533
  • Coverage: 90.77%
  • Change: -0.03% (-2 lines)
Statements Coverage
  • Covered: 6001 / 6620
  • Coverage: 90.65%
  • Change: -0.03% (-2 statements)
Functions Coverage
  • Covered: 1578 / 1760
  • Coverage: 89.66%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3688 / 4478
  • Coverage: 82.36%
  • Change: -0.02% (-1 branches)

✅ Coverage check passed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant