Refactor to permit jsModify to work on contractOriginStep#1148
Merged
jordividaller merged 1 commit intoJul 8, 2026
Merged
Conversation
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (345 total)
✅ Bundle size check passed |
Contributor
📊 Coverage Report⚪ Coverage unchanged
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
cammellos
approved these changes
Jul 8, 2026
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.
Description
jsmodify was not working to override title and description on the radio buttons in ContractOriginStep
Note
Low Risk
Localized to contract-origin UI and schema customization; no auth or persistence logic changes beyond passing existing jsfModify through.
Overview
Contract origin step now honors
options.jsfModify.contract_originthe same way other onboarding steps do: the hook passes that block intouseGetContractOriginSchema, and the flow options type includescontract_origin?: JSFModify.The example app stops hardcoding step headings and radio copy (
CONTRACT_ORIGIN_CONTENTand thecontract_origincase layout).ContractOriginRadiorenders the field title/description fromfieldDataand each option’s label/description from the schema, so overrides fromjsfModify(includingoneOftitles) actually show up.Default France-facing copy in the demo is moved into
jsfModify.contract_originonContractorOnboardingFlow. A test asserts a customcontract_originfield title replaces the default “Contract options” text.Reviewed by Cursor Bugbot for commit 1abbf24. Bugbot is set up for automated code reviews on this repo. Configure here.