feat(onboarding) - add dummy logic to show the preview employment step#1073
Merged
Conversation
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (339 total)
✅ Bundle size check passed |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
Contributor
📊 Coverage Report
|
| Metric | Current | Previous | Change | Status |
|---|---|---|---|---|
| Lines | 88.35% | 88.41% | -0.06% | 🔴 |
| Statements | 87.75% | 87.81% | -0.06% | 🔴 |
| Functions | 84.77% | 84.87% | -0.10% | 🔴 |
| Branches | 79.64% | 79.66% | -0.02% | 🔴 |
Detailed Breakdown
Lines Coverage
- Covered: 3813 / 4316
- Coverage: 88.35%
- Change: -0.06% (7 lines)
Statements Coverage
- Covered: 3875 / 4416
- Coverage: 87.75%
- Change: -0.06% (7 statements)
Functions Coverage
- Covered: 1035 / 1221
- Coverage: 84.77%
- Change: -0.10% (3 functions)
Branches Coverage
- Covered: 2378 / 2986
- Coverage: 79.64%
- Change: -0.02% (1 branches)
✅ Coverage check passed
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 5 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a75c201. Configure here.
jordividaller
approved these changes
Jun 16, 2026
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.

I added the new step preview employment step, this a work in progress but its better to merge little PRs instead of creating a big one.
To enable this feature partners need to use the feature flag and I only have enabled the step for Spain in partners...
Vite.+.React.+.TS.-.16.June.2026.mp4
Note
Low Risk
Onboarding changes are gated by feature flag and country availability, and the preview UI is non-functional beyond navigation; risk is mainly from the large generated client export surface if consumers pick up new APIs unintentionally.
Overview
Adds an optional Preview Employment Agreement onboarding step between benefits and review, wired through the flow’s step builder, example app, and
PreviewEmploymentAgreementStep(currently a stub that only advances on submit).Partners enable it with the
ea_previewfeature plusdynamic_steps. The step is shown only when the selected country’s onboarding country list reportsemployment_agreement_preview_available(from the regenerated client / Countries API). Country options now carry that flag viauseCountriesSchemaField.The generated
src/clientbundle is updated in the same PR (employment agreement preview/download, employee bank account, COR termination list, offboardings-by-employment, v2 basic information GET, GP sandbox/state taxes, webhooksubscribe_to_all_events, payslip scope docs, etc.); onboarding does not call the preview/download endpoints yet.Reviewed by Cursor Bugbot for commit 9a3eb9a. Bugbot is set up for automated code reviews on this repo. Configure here.