Skip to content

feat: add PayScheduleAssignment for single-schedule assignment - #2762

Draft
mariechatfield wants to merge 2 commits into
feat/marie/sdk-1292-pay-schedule-overviewfrom
feat/marie/sdk-1293-pay-schedule-assignment
Draft

mariechatfield wants to merge 2 commits into
feat/marie/sdk-1292-pay-schedule-overviewfrom
feat/marie/sdk-1293-pay-schedule-assignment

Conversation

@mariechatfield

@mariechatfield mariechatfield commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds CompanyManagement.PayScheduleAssignment, an alpha-gated flow for assigning a company's employees to a pay schedule (type step → schedule step → review step → submit), built on top of the existing CompanyManagement.PaySchedule overview/edit surface.
  • Schedule step defaults the selection to the company's active pay schedule (not just the first in the list) and labels each option with its actual name (customName) alongside cadence, rather than the employee-type field.
  • Review step matches gws-flows verbiage for the no-op case ("There are no changes to review." / "If you intended to make changes, please go back and make them.") and renders employee changes as a table (Name, New pay frequency, First pay period, Transition pay period) instead of a stacked list.
  • Returning to the pay schedule overview after a successful assignment now shows a dismissible success alert, following the existing successAlert context pattern used elsewhere in the SDK (e.g. Contractor Compensation).

Test plan

  • npm run test -- --run src/components/Company/PaySchedule/ (79 tests passing)
  • npx tsc --noEmit
  • npm run i18n:generate

… assignment

Adds a standalone, alpha-tagged assignment flow (type selector, schedule
picker with inline pay-schedule creation, and a review-and-submit step)
launched from PayScheduleOverview's Manage action or mountable on its own.
Only the single-schedule assignment type is supported per SDK-1293.

Includes a temporary afterSuccess hook working around a Gusto-Partner-API
spec gap where transition_pay_period/first_pay_period on
Pay-Schedule-Assignment-Employee-Change can legitimately be null but the
generated schema only allows undefined.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mariechatfield
mariechatfield changed the base branch from main to feat/marie/sdk-1292-pay-schedule-overview September 11, 2026 23:11
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