Skip to content

chore(example): bump POL contract_details schema version to 5 - #1527

Merged
gabrielseco merged 3 commits into
mainfrom
chore/bump-pol-contract-details-v5
Oct 13, 2026
Merged

gabrielseco merged 3 commits into
mainfrom
chore/bump-pol-contract-details-v5

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The example app now uses Poland's latest contract details form (v5). Poland also gets its own schema changelog.

Why

  • POL was still pinned to v1 while the backend is on v5.
  • Pinning the example to latest makes us run the form partners will get when they upgrade. v5 blocks fixed-term contracts for employees with a recognized seniority date (flag-gated).

What changed

Toggle details
  • jsonSchemaVersions.ts: POL contract_details 1 → 5.
  • schemaVersions.ts: unchanged, because it already lists POL v1–v5.
  • Docs: new POL.md covering v2–v5, plus Poland in the README's migration list and version matrix. Tiger's version_changelog covers v3–v5 only; v2 is inferred from the v1 to v2 snapshot diff.
    • v2 (inferred): inline non-compete fields replaced by the shared non_compete component, plus new non_solicitation and non_interference components.
    • v3 (tiger): high-salary reserve messaging, jsf v1 engine. The part-time minimum salary rule is restructured for v1 (inferred, intent unchanged).
    • v4 (tiger): extreme-salary acknowledgement, flag-gated.
    • v5 (tiger): fixed-term blocked when seniority is recognized (eor_seniority_block, eor_seniority_block_v2_ftc), Remote Admins exempt. Tiger says no action is required for existing contracts. From the snapshot diff, contract_duration_type/contract_end_date move to the shared contract_duration component (inferred).
  • Nothing is marked breaking for submits beyond the flag-gated v5 seniority block. The v2 non-compete component swap could affect payloads relying on the old inline fields.
  • No public API change.

Screenshots

N/A

Related Resources

  • Tiger commits that cut each version: 820bb93e (v2, non-compete components, inferred), 7c87181a (v3, reserve messaging and jsf v1), 2c754ed0 (v4, extreme salary), a97eda87 (v5, seniority block)

Testing

  • Tested against the example/ app in a browser
  • npm run schema-canary -- --country=POL --versions=pinned,latest against sandbox, before the bump (pinned v1 vs latest): both pass.
  • Same canary after the bump (pinned v5 vs latest): both pass.
  • Feature flag: eor_seniority_block, eor_seniority_block_v2_ftc (v5 seniority block); extreme-salary acknowledgement (v4)

🤖 Generated with Claude Code


Note

Low Risk
Documentation and example-app schema pin only; no public API or runtime library change.

Overview
Aligns the example onboarding app with Poland’s current contract details v5 (was pinned at v1) and documents Poland’s schema history for integrators.

jsonSchemaVersions.ts sets POL.contract_details from 1 → 5, so the demo runs the same form partners see on latest backend—including shared contract_duration, salary messaging/acknowledgements (v3–v4), and the flag-gated seniority rule that blocks fixed-term when has_seniority_date is yes (v5).

Docs: new POL.md (v2–v5 changelog and migration snippets) and README link plus version matrix row (POL v5, October 2026).

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

gabrielseco and others added 2 commits October 12, 2026 19:42
Pin Poland to contract_details v5 in the example app and document v2-v5
in a new POL schema changelog, the migration list and the version matrix.

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

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

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

Deployed with vercel-action

@github-actions

github-actions Bot commented Oct 12, 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-6j1whu3ri-remotecom.vercel.app
Latest Commit:b71ab32

Deployed with vercel-action

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

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 89.58% 89.58% 0% ⚪
Statements 89.45% 89.45% 0% ⚪
Functions 88.47% 88.47% 0% ⚪
Branches 81.20% 81.20% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 5389 / 6016
  • Coverage: 89.58%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 5454 / 6097
  • Coverage: 89.45%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1427 / 1613
  • Coverage: 88.47%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3343 / 4117
  • Coverage: 81.20%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco
gabrielseco merged commit 8d65b44 into main Oct 13, 2026
14 checks passed
@gabrielseco
gabrielseco deleted the chore/bump-pol-contract-details-v5 branch October 13, 2026 15:17
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