Skip to content

chore(example): bump BGD, COL contract_details schema versions - #1910

Open
gabrielseco wants to merge 1 commit into
mainfrom
workbench/g-2026-11-09-bump-contract-details-BGD-COL
Open

gabrielseco wants to merge 1 commit into
mainfrom
workbench/g-2026-11-09-bump-contract-details-BGD-COL

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Moves the example app's contract details schema version for Bangladesh from v8 to v9 and for Colombia from v6 to v7. In both new versions the probation period is blocked for employees with a recognized seniority date, unless the request comes from a Remote Admin, so partners with custom UIs should send no probation or a zero length for those employees. The migration guides and the version matrix in the README are updated, and baseline snapshots are added for the new versions while the old ones are kept. There is no public API change.

Decisions to review

  • The probation-period restriction is documented as applying without any backend setting, so reviewers should check that the wording matches the changelog for both countries.
  • Bangladesh's has_probation_period field is documented as a yes/no radio without the N/A option, which a reviewer should confirm against the schema diff.
  • Old baseline snapshots are kept alongside the new v9 and v7 baselines rather than replaced.

Why

The example app pins older contract details schema versions for Bangladesh and Colombia, and both countries have newer versions that need to be adopted and documented.

What changed

Files and behaviour (6 files +502 −8)
  • docs/schema-changes/eor/contract-details/countries/BGD.md +25 −2
  • docs/schema-changes/eor/contract-details/countries/COL.md +26 −2
  • docs/schema-changes/eor/contract-details/countries/README.md +2 −2
  • example/src/flows/Onboarding/jsonSchemaVersions.ts +2 −2
  • snapshots/contract-details/BGD.v9.json +244 −0
  • snapshots/contract-details/COL.v7.json +203 −0

Related Resources

Testing

Check: passed (exit 0, 2s)


Note

Low Risk
Documentation, example schema pins, and snapshot baselines only; no application logic changes in this diff.

Overview
Adopts Bangladesh contract details v9 and Colombia v7 in the example onboarding config (jsonSchemaVersions.ts), and documents both upgrades with migration snippets.

BGD v9 blocks probation for employments with a recognized seniority date: has_probation_period must be "no" (or omitted) and probation_length must be 0 (unless Remote Admin). The has_probation_period UI becomes a yes/no radio without N/A.

COL v7 applies the same seniority-date rule by locking probation_length to 0, swaps a custom max-error string for the default message, and adds a help-center link on probation_length.

The country version matrix is updated to v9/v7 (November 2026), and new baseline snapshots BGD.v9.json and COL.v7.json are added alongside prior versions.

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

Workbench-Thread: g-2026-11-09-bump-contract-details-BGD-COL
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

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

Deployed with vercel-action

@github-actions

github-actions Bot commented Nov 9, 2026

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-cpi1w41cq-remotecom.vercel.app
Latest Commit:d97ddf4

Deployed with vercel-action

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Preview employments

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 90.29% 90.29% 0% ⚪
Statements 90.17% 90.17% 0% ⚪
Functions 89.19% 89.19% 0% ⚪
Branches 81.89% 81.89% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 5876 / 6508
  • Coverage: 90.29%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 5945 / 6593
  • Coverage: 90.17%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1560 / 1749
  • Coverage: 89.19%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3644 / 4450
  • Coverage: 81.89%
  • Change: 0% (0 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