feat(SDK-1119): add contractor profile management#2469
Merged
Conversation
New events back the management ContractorProfile card and edit form's edit/save/cancel/alert-dismiss transitions.
Adds useContractorProfileSummary, a read-only hook for the upcoming management ProfileCard, mirroring useEmployeeProfileSummary. Extends the existing useContractorDetailsForm with a showEmailField option so a management edit form can always show Email regardless of the selfOnboarding toggle state, which previously gated Email's visibility.
Adds a management surface for viewing and editing a contractor's basic
profile details after onboarding, mirroring Employee/Profile/management's
card + edit-form + state-machine structure. The edit form renders an
already-on-file SSN/EIN as a locked, masked value with a "Change" action
per the design prototype, instead of a blank editable input. Exported as
ContractorManagement.{Profile, ProfileCard, ProfileEditForm}.
…rofile-management
…actor profile ProfileCard and ProfileEditForm rendered a literal "XX-XXXXXXX" placeholder for a business contractor's EIN instead of the partially-masked value the API actually returns (e.g. "XX-XXX4879"). SSN keeps its hardcoded mask since the Contractor model has no equivalent real SSN value field.
dmortal
marked this pull request as ready for review
July 24, 2026 14:30
…rofile-management # Conflicts: # docs/reference/index.mdx
mariechatfield
approved these changes
Jul 24, 2026
krisxcrash
approved these changes
Jul 24, 2026
The hook was tagged @public but never re-exported from src/index.ts, so it was unreachable as advertised. It's only ever used internally by ProfileCard, matching the same read-only-summary-hook shape as the existing @internal useStateTaxesSummary — downgrade the tags to match rather than wire up a top-level export nothing currently needs.
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
Adds a Contractor Profile management surface (mirroring the existing Employee Profile management pattern) for viewing and editing a contractor's basic details after onboarding:
Profile,ProfileCard, andProfileEditForm, orchestrated via arobot3state machine.Changes
Profile: orchestrator driving the read-view card and edit form via an internal state machineProfileCard: standalone read-only card fetching its own data via a newuseContractorProfileSummaryhook, with an Edit actionProfileEditForm: standalone edit form for name/business name, start date, tax ID (SSN or EIN depending on contractor type), and email; an SSN/EIN already on file renders as a locked, masked value with a "Change" actionProfileCardandProfileEditFormnow show the real (partially-masked) EIN value returned by the API instead of a hardcodedXX-XXXXXXXplaceholder; SSN keeps its hardcoded mask since theContractormodel has no equivalent real SSN value fieldContractor.Management.Profile, new component events (contractor/management/profile/editRequested|updated|editCancelled), docs regeneratedScreen.Recording.2026-07-24.at.10.29.34.AM.mov
Related
Testing
npm run test -- --run src/components/Contractor— 27 test files, 305 tests passingnpx tsc --noEmit -p .andnpx eslint src/components/Contractor/Profile— clean