Skip to content

feat(SDK-1161): wire PrintChecks into PayrollOverview - #2588

Open
krisxcrash wants to merge 2 commits into
kw/feat/print-checks-4-orchestratorfrom
kw/feat/print-checks-5-integration
Open

feat(SDK-1161): wire PrintChecks into PayrollOverview#2588
krisxcrash wants to merge 2 commits into
kw/feat/print-checks-4-orchestratorfrom
kw/feat/print-checks-5-integration

Conversation

@krisxcrash

Copy link
Copy Markdown
Contributor

Summary

Fifth and final PR in the print-checks stack (see #2584 for the full split rationale, splitting up #2572). This is the actual cutover — mounts Payroll.PrintChecks (from #2587) as its own banner in PayrollOverview, the same way ConfirmWireDetails is already embedded there.

  • PayrollOverview.tsx mounts <PrintChecks companyId={companyId} payrollId={payrollId} onEvent={onEvent} /> alongside the existing wireInConfirmationRequest pattern.
  • Removes the isPrintChecksOpen/onPrintChecksOpen plumbing a bare modal mount would have needed — PrintChecks now owns its own trigger banner and Modal lifecycle, so PayrollOverview just renders it.
  • Updates PayrollOverview's @events JSDoc table to the new payroll/printChecks/* event names.

Base branch note: targets kw/feat/print-checks-4-orchestrator, stacked on PR #2587. Once this whole stack merges, it fully replaces #2572, which I'll close.

Stack

  1. feat(SDK-1161): add print-checks terminal screens and event vocabulary #2584 — terminal screens + events
  2. feat(SDK-1161): add PrintChecksBanner #2585 — Banner
  3. feat(SDK-1161): add PrintChecksForm #2586 — Form
  4. feat(SDK-1161): add PrintChecks state machine and orchestrator #2587 — state machine / orchestrator
  5. This PR — PayrollOverview integration

Testing

  • npm run test -- --run src/components/Payroll/PayrollOverview src/components/Payroll/PrintChecks — 61 tests pass
  • npx tsc --noEmit and npm run lint:check clean

🤖 Generated with Claude Code

Fifth and final slice of the print-checks feature stack (see #2584).
The actual cutover: mounts Payroll.PrintChecks (from #2587) as its own
banner in PayrollOverview, following the same pattern already used
for the embedded ConfirmWireDetails component. Removes the
isPrintChecksOpen state and onPrintChecksOpen prop that a bare modal
mount would have needed, since PrintChecks now owns its own trigger
banner and Modal lifecycle.

Stacked on kw/feat/print-checks-4-orchestrator; targets that branch,
not main. Once this and the rest of the stack merge, this replaces
#2572 entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant