feat: Historical Contractor Payments SDK (AI pilot experiment)#1476
Draft
feat: Historical Contractor Payments SDK (AI pilot experiment)#1476
Conversation
…eriment) Standalone HistoricalPaymentFlow component for recording past-dated contractor payments. Built as an AI-assisted development pilot to test whether existing SDK patterns + AI can accelerate component generation. Full flow: date selection → contractor amounts → preview → submit → success. Verified end-to-end with live API data via SDK Dev App. See src/components/Contractor/Payments/HistoricalPayments/README.md for full context, testing instructions, and what feedback we're looking for. Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.
Context
This is the output of an AI-assisted SDK component generation pilot — not intended for production merge as-is. We're sharing it for eng commentary on pattern adherence, architectural decisions, and feasibility of this approach as a development accelerator.
Background: Historical Contractor Payments was descoped from the Contractor Payments SDK launch because mixing historical and future-dated payments in one flow caused UX confusion. This PR builds a standalone
HistoricalPaymentFlowcomponent for recording past-dated contractor payments.What's in this PR
A complete
HistoricalPaymentFlowwith a 3-step journey:15 new files under
src/components/Contractor/Payments/HistoricalPayments/following all existing SDK patterns: robot3 state machine, container/presentation split, BaseComponent, ComponentsContext, Zod forms, i18n, DataView, DOMPurify, React Query hooks.See the README for full details on how it was built, file inventory, and current status.
How to test
npm install && npm run sdk-appWhat's done
What's NOT done (would need before production)
What we're looking for
This is shared for commentary, not merge approval:
🤖 Generated with Claude Code