feat(contractor): add self-onboarding OnboardingSummary component#2300
Conversation
Adds ContractorOnboarding.OnboardingSummary, a self-onboarding completion screen shown at the end of the contractor self-onboarding flow. Emits contractor/selfOnboarding/done when the contractor acknowledges submission. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@cursoragent bring this up to date and resolve merge conflicts |
SummarySuccessfully resolved merge conflicts and brought the branch up to date with Conflicts resolved:
Changes from main merged in:
The branch is now up to date, all conflicts are resolved, and the changes have been pushed to the remote repository. The PR should now be ready for review without any merge conflicts. |
Resolved conflicts in: - docs/reference/index.md - src/types/i18next.d.ts Both branches added new contractor components: - main added Contractor.DocumentsList - This branch added Contractor.OnboardingSummary Merged both additions into the resources list. Co-authored-by: Steve Jensen <stephen.erik.jensen@gmail.com>
| /** | ||
| * Confirmation screen shown at the end of the contractor self-onboarding flow. | ||
| * Lets the contractor know their information has been submitted and emits | ||
| * `contractor/selfOnboarding/done` when they acknowledge it. | ||
| * | ||
| * @public | ||
| */ |
There was a problem hiding this comment.
Can you tell your cursor agent to emit a proper @events section and table with all events emitted and their payloads?
|
@cursoragent could you resolve feedback from marie above around a proper @events section. We also need to update, resolve any conflicts. also fix any failures with ci causing issues |
|
Perfect! All tasks completed successfully: Summary✅ Resolved Marie's feedback: Added proper
✅ Updated and resolved conflicts: Successfully merged latest
✅ Fixed CI issues:
The PR is now ready for review with:
|
- Add proper @events table documenting the contractor/selfOnboarding/done event - Include event name, description, and data payload format - Regenerate i18next.d.ts to include ContractorDocumentsList from main Resolves feedback from @mariechatfield


Summary
ContractorOnboarding.OnboardingSummary, a self-onboarding completion screen shown at the end of the contractor self-onboarding flow. It mirrors the employeeOnboardingSummaryself view and derives its copy/layout/design from the sdk-appContractorOnboardingCompletedesign reference (centered "You're all set!" heading, supporting body, single secondary "Done" button).contractor/selfOnboarding/doneevent (CONTRACTOR_SELF_ONBOARDING_DONE) with{ contractorId }when the contractor acknowledges submission, pairing with the existingCONTRACTOR_SELF_ONBOARDING_START.isAdmin/admin view, since no contractor onboarding summary existed previously.Changes
src/components/Contractor/OnboardingSummary/— new component + barrel export, with TSDoc on the export and props.src/i18n/en/Contractor.OnboardingSummary.json—subtitle/description/doneCtacopy.src/shared/constants.ts— newCONTRACTOR_SELF_ONBOARDING_DONEevent.src/components/Contractor/exports/contractorOnboarding.ts— exportsOnboardingSummary+OnboardingSummaryProps.src/types/i18next.d.ts,.reports/embedded-react-sdk.api.md,sdk-app/src/generated-registry-data.ts.Out of scope
SelfOnboardingFlowin the SDK, so no*Contextualwrapper or state-machine step is added. The component is a standalone export partners place at the end of their self-onboarding wizard.Test plan
tsc --noEmitpassesnpm run lint:check— 0 errorsnpm run test -- --run src/components/Contractor— 102/102 passMade with Cursor