Repository navigation
chore(example): bump GBR contract_details schema version to 7 - #1571
Merged
Merged
Conversation
Pin the United Kingdom to contract_details v7 in the example app and document v7 in the GBR schema changelog and the version matrix. v7 stops hiding wage_type and the daily schedule from Partners API consumers. Depends on the Tiger change shipping first (tiger!100534). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
1 of 2 tasks
gabrielseco
marked this pull request as ready for review
October 14, 2026 16:03
remotecom
approved these changes
Oct 14, 2026
Contributor
📊 Coverage Report✅ Coverage increased! 🎉
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Partners API integrators onboarding UK employees get the hourly wage type and the daily schedule in the contract details form. The example app is pinned to the new UK schema version.
Why
Until now the UK hourly wage type and daily schedule were hidden from Partners API (
remote_api) consumers, while the Remote product already had them. Partners could not onboard hourly UK employees. The backend change ships this as a new schema version (v7) because it is breaking for that surface.What changed
Toggle details
example/src/flows/Onboarding/jsonSchemaVersions.ts: GBRcontract_details6 to 7.wage_type,hourly_gross_salary,schedule_typeanddaily_schedule(replacing the plainwork_hours_per_week).annual_gross_salaryis only required whenwage_typeissalary.contract_amendmentGBR v3 in the same MR. The example app has no amendment demo, so it is not pinned or covered here.Screenshots
N/A
Related Resources
dump:schema --env)Testing
Checked against a local backend running the schema change:
GET /v1/countries/GBR/contract_details?json_schema_version=7returnswage_type,hourly_gross_salary,schedule_typeanddaily_schedule. v6 returns none of them.The example app requests v7 and renders the new "Employee schedule" section.
Not yet confirmed in the UI: the
wage_typeradio (Annual salary / Hourly pay) did not appear in the Salary section in my run. This needs a look before merge.Tested against the
example/app in a browserFeature flag: N/A
🤖 Generated with Claude Code
Note
Low Risk
Docs and example schema pin only; no runtime library changes, though the example will fail against backends that do not yet expose GBR v7.
Overview
Pins the example onboarding app to UK (GBR) contract details schema v7 and documents the upgrade for Partners API integrators.
The GBR changelog now describes v7:
wage_typeandhourly_gross_salaryare exposed (no longer hidden fromremote_api), the plainwork_hours_per_weekfield is replaced by the daily schedule component (daily_schedule,schedule_type,work_hours_per_week,shift_pattern), andannual_gross_salaryis required only whenwage_typeissalary. The country version matrix lists GBR at v7;jsonSchemaVersions.tschanges GBRcontract_detailsfrom 6 → 7. Integrators on v6 or earlier are unchanged until they bump their pin.Merge is intended after the backend ships
json_schema_version=7for GBR.Reviewed by Cursor Bugbot for commit f61b507. Bugbot is set up for automated code reviews on this repo. Configure here.