feat(Contractor.Documents): document list, W-9 signing, and signer flow#2292
Draft
serikjensen wants to merge 2 commits into
Draft
feat(Contractor.Documents): document list, W-9 signing, and signer flow#2292serikjensen wants to merge 2 commits into
serikjensen wants to merge 2 commits into
Conversation
…r flow Add standalone contractor document signing: - useContractorDocumentsList data hook + DocumentsList component - useContractorSignatureForm dynamic W-9 hook (get/getPdf/sign) with classification radio synthesis, conditional LLC/other fields, and 0/1 wire mapping on submit - SignatureForm component reusing the shared DocumentViewer - ContractorDocumentSigner robot3 orchestrator composing the two - masked SSN/EIN handled as redacted: empty input, mask shown as placeholder, omitted from the sign payload unless replaced - dedicated i18n namespaces, events, MSW W-9 mocks, tests, and stories - sdk-app registry regenerated so the dev app injects contractorId WIP: SignatureForm masked-SSN placeholder test (getByLabelText) still failing; to be resolved before review. Co-authored-by: Cursor <cursoragent@cursor.com>
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 standalone contractor document review + signing (W-9), developed together so it can be split into focused PRs later.
useContractorDocumentsList+DocumentsList— lists a contractor's documents; Continue gates on all required docs being signed; emitscontractor/documents/view/contractor/documents/done.useContractorSignatureForm+SignatureForm— dynamic W-9 form driven by the document'sfields[](state-taxes-style). Synthesizes the 7 classification checkboxes into a single radio group with conditional LLC-code / "Other" sub-fields, maps the selection back to the0/1wire format on submit, and reuses the sharedDocumentViewer.ContractorDocumentSigner— thin robot3 orchestrator composing the two (standalone; not wired intoContractorOnboardingFlowyet, per the dedicated-flow plan).hasRedactedValuepattern; adds an optionalplaceholdertoFieldMetadata.)Contractor.DocumentsList,Contractor.SignatureForm), scoped events, MSW W-9 mocks, hook/component/orchestrator tests, and stories.sdk-appregistry regenerated so the dev app injectscontractorId(and prompts fordocumentUuidon the standaloneSignatureForm).Status / TODO before review
SignatureForm"shows the masked SSN as a placeholder" —getByLabelText('Social Security Number (SSN)')no longer resolves after the redacted-field change; needs the query/label association sorted out.Test plan
npm run test -- --run src/components/Contractor/DocumentsMade with Cursor