Repository navigation
feat(contract-document): scaffold the standalone ContractDocument flow - #1319
Merged
Merged
Conversation
Adds the empty two-step shell of the standalone twin of the contract details and
contract preview steps of contractor onboarding, modelled on the Invoice Schedule flow:
`<ContractDocumentFlow render={...}>` and the headless `useContractDocument()`, both
exposing the same bag (`stepState`, `steps`, `next`, `back`, `goTo`, `fields`,
`isLoading`, `isSubmitting`).
No form is rendered and no request is made yet — the steps exist and can be navigated,
which is what the `?demo=contract-document` page shows. Exports are additive and nothing
in Contractor Onboarding changes.
Part of pbyr-4779.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (470 total)
✅ Bundle size check passed |
Contributor
|
Deploy preview for adp-cost-calculator ready!
Deployed with vercel-action |
Contributor
📊 Coverage Report✅ Coverage increased! 🎉
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
Contributor
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
gabrielseco
approved these changes
Sep 16, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
gabrielseco
approved these changes
Sep 16, 2026
Merged
This was referenced Sep 16, 2026
5 tasks done
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.
First part of One-Step SDK Screen — Create New Contract
This PR only adds the empty shell:
src/flows/ContractDocument/with<ContractDocumentFlow render={...}>and the headlessuseContractDocument(), both exposing the same bag (stepState,steps,next,back,goTo,fields,isLoading,isSubmitting) over two steps:contract_details→contract_previewsrc/index.tsx, short README?demo=contract-documentNo form, no API call yet. Nothing in Contractor Onboarding changes.
Note
Low Risk
Additive scaffolding and documentation only; no auth, data, or contractor onboarding behavior changes.
Overview
Introduces a standalone Contract Document flow for creating a contractor contract document outside contractor onboarding, as the first slice of the “Create New Contract” SDK screen.
The new
ContractDocumentFlowrender-prop component and headlessuseContractDocument()hook share a flow bag over two navigable steps (contract_details→contract_preview). Step navigation (next,back,goTo) is wired via existinguseStepState;fields, loading, and submit are stubbed (empty fields,isLoading/isSubmittingalways false) with no API integration yet. Public exports are added insrc/index.tsx, flow README documents the WIP state, and the example app gains acontract-documentdemo entry.Unit tests cover initial step rendering and step transitions on the flow and hook.
Reviewed by Cursor Bugbot for commit 9d07ce6. Bugbot is set up for automated code reviews on this repo. Configure here.