Skip to content

chore(example): bump MEX contract_details schema version to 8 - #1558

Merged
gabrielseco merged 3 commits into
mainfrom
chore/bump-mex-contract-details-v8
Oct 14, 2026
Merged

gabrielseco merged 3 commits into
mainfrom
chore/bump-mex-contract-details-v8

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The example app now uses Mexico's latest contract details form (v8). The MEX schema changelog now covers v3–v8.

Why

  • MEX was still pinned to v2 while the backend has frozen snapshots up to v8.
  • Pinning the example to latest makes us run the form partners will get when they upgrade.

What changed

Toggle details
  • jsonSchemaVersions.ts: MEX contract_details 2 → 8.
  • schemaVersions.ts: unchanged, because it already lists MEX v1–v8.
  • Docs: MEX.md gains v3–v8 and the README version matrix row moves to v8. Tiger has no x-rmt-schema-changelog for MEX, so every entry is inferred from the snapshot diffs.
    • v3: new required ergonomic_chair_ack (reimburse up to 3,000 MXN); indefinite-only duration expressed via indefinite_duration_only.
    • v4: shared non_compete, non_solicitation, non_interference components added.
    • v5: those components removed again.
    • v6: admin-only fixed-term contracts; contract_end_date definition removed.
    • v7: reserve messaging and fieldset on annual_gross_salary; jsf v1 engine.
    • v8: extreme-salary acknowledgement covers christmas_bonus; Christmas bonus copy now says 13th month salary.
  • Breaking for submits: v3 makes ergonomic_chair_ack required.
  • Tiger master's current MEX schema is already a v9 (new mex_probation_period component, seniority block). It's not in schemaVersions.ts yet, so it is not part of this bump.
  • No public API change.

Screenshots

N/A

Related Resources

  • Tiger snapshots: apps/tiger/priv/json_schemas/contract_details/snapshots/MEX/{3..8}.json

Testing

  • Tested against the example/ app in a browser
  • npm run schema-canary -- --country=MEX --checks=pinned,latest,submit against sandbox after the bump (pinned v8, latest, submit v8): all pass.

🤖 Generated with Claude Code


Note

Low Risk
Documentation and example-app pinning only; no library API change. Integrators who jump from v2 must handle v3+ validation (notably required ergonomic chair acknowledgement).

Overview
Pins the example onboarding app to Mexico contract details v8 (contract_details 2 → 8 in jsonSchemaVersions.ts) so it matches the latest frozen snapshot partners get when they upgrade.

Docs now treat v8 as current: MEX.md adds inferred changelogs and migration snippets for v3–v8 (e.g. required ergonomic_chair_ack from v3, non-compete add/remove in v4–v5, admin fixed-term and removed contract_end_date in v6, JSF v1 + salary fieldset in v7, extreme-salary acknowledgement on christmas_bonus in v8), and the country README matrix row updates to v8 / October 2026.

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

Pin Mexico to contract_details v8 in the example app and document v3-v8
in the MEX schema changelog and the version matrix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-5omt0pwyq-remotecom.vercel.app
Latest Commit:0453d87

Deployed with vercel-action

@github-actions

github-actions Bot commented Oct 14, 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-6s0pt0hl7-remotecom.vercel.app
Latest Commit:0453d87

Deployed with vercel-action

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

📊 Coverage Report

✅ Coverage increased! 🎉

Metric Current Previous Change Status
Lines 89.59% 89.58% +0.02% 🟢
Statements 89.47% 89.45% +0.02% 🟢
Functions 88.48% 88.48% 0% ⚪
Branches 81.24% 81.21% +0.02% 🟢

Detailed Breakdown

Lines Coverage
  • Covered: 5397 / 6024
  • Coverage: 89.59%
  • Change: +0.02% (1 lines)
Statements Coverage
  • Covered: 5462 / 6105
  • Coverage: 89.47%
  • Change: +0.02% (1 statements)
Functions Coverage
  • Covered: 1428 / 1614
  • Coverage: 88.48%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3351 / 4125
  • Coverage: 81.24%
  • Change: +0.02% (1 branches)

✅ Coverage check passed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ct-details-v8

# Conflicts:
#	docs/schema-changes/eor/contract-details/countries/README.md
@gabrielseco
gabrielseco merged commit f97fa5b into main Oct 14, 2026
12 checks passed
@gabrielseco
gabrielseco deleted the chore/bump-mex-contract-details-v8 branch October 14, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants