Skip to content

fix(contractor-onboarding) - pass employment_id to contract details to get the right schema#736

Closed
gabrielseco wants to merge 3 commits intomainfrom
add-employment-id-to-contract-details
Closed

fix(contractor-onboarding) - pass employment_id to contract details to get the right schema#736
gabrielseco wants to merge 3 commits intomainfrom
add-employment-id-to-contract-details

Conversation

@gabrielseco
Copy link
Collaborator

@gabrielseco gabrielseco commented Feb 12, 2026

For COR we have a different contract_details schema, that's. why we need to pass the employment_id


Note

Low Risk
Small, localized change to schema-fetching parameters and query caching; primary risk is unintended cache misses or backend rejecting the new optional query parameter.

Overview
Contractor onboarding now includes the current employment_id when fetching the contractor contract_details JSON schema, and keys the React Query cache by both countryCode and employmentId to avoid reusing the wrong schema across employments.

The generated API types are updated to allow employment_id as an optional query param for getShowContractorContractDetailsCountry, and SDK docs/security metadata for getShowFormCountry are refreshed (auto-generated changes).

Written by Cursor Bugbot for commit 95f73c0. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 186.44 kB 186.41 kB +34 B (+0.0%) 🔴
Total (raw) 498.97 kB 498.9 kB +73 B (+0.0%) 🔴
CSS (gzip) 19.35 kB 19.35 kB 0 B (0%) 🟢
CSS (raw) 101.78 kB 101.78 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 186.44 kB / 200 kB (93.2%)
  • ✅ Total raw: 498.97 kB / 550 kB (90.7%)
  • ✅ CSS gzipped: 19.35 kB / 25 kB (77.4%)

Largest Files (Top 5)

  1. chunk-ZSJ6YADQ.js - 12.43 kB (0 B (0%))
  2. styles.css - 9.68 kB (0 B (0%))
  3. index.css - 9.68 kB (0 B (0%))
  4. index.js - 5.86 kB (0 B (0%))
  5. chunk-BYX2YS2B.js - 5.61 kB (new)
View All Files (283 total)
File Size (gzip) Change
chunk-ZSJ6YADQ.js 12.43 kB 0 B (0%)
styles.css 9.68 kB 0 B (0%)
index.css 9.68 kB 0 B (0%)
index.js 5.86 kB 0 B (0%)
chunk-BYX2YS2B.js 5.61 kB new
chunk-BBOEQU3O.js 4.07 kB new
chunk-3UTVRF4U.js 3.76 kB new
chunk-T7O3YYOG.js 3.29 kB 0 B (0%)
chunk-QIBRRCQX.js 3.29 kB new
chunk-4DZWRQWY.js 3.21 kB new

✅ Bundle size check passed

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Deploy preview for remote-flows ready!

✅ Preview
https://remote-flows-jekxy9bpl-remotecom.vercel.app

Built with commit 95f73c0.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Deploy preview for remote-flows-example-app ready!

✅ Preview
https://remote-flows-example-29capt9vg-remotecom.vercel.app

Built with commit 95f73c0.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

npm warn exec The following package was not found and will be installed: tsx@4.21.0

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 87.82% 87.82% 0%
Statements 87.46% 87.46% 0%
Functions 83.71% 83.71% 0%
Branches 79.46% 79.46% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 2999 / 3415
  • Coverage: 87.82%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 3056 / 3494
  • Coverage: 87.46%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 858 / 1025
  • Coverage: 83.71%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 1888 / 2376
  • Coverage: 79.46%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco gabrielseco changed the title fix employment_id fix(contractor-onboarding) - pass employment_id to contract details to get the right schema Feb 13, 2026
@gabrielseco gabrielseco self-assigned this Feb 13, 2026
@gabrielseco gabrielseco marked this pull request as ready for review February 13, 2026 10:21
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

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.

1 participant