feat: add showContinueButton prop to EmployeeList#2216
Conversation
|
@cursoragent bring this up to date, resolve test failures. Also the prop for showing the continue button is now present but shouldn't it be configured such that it is set to not show the continue button on employee onboarding and only present on company onboarding? I do think it should be set to hide by default and then set to show continue button in company onboarding flow where it is used |
|
Perfect! All checks pass. Let me create a summary of the completed work: SummaryI've successfully completed all three requested tasks: 1. ✅ Brought the PR up to date
2. ✅ Resolved test failures
3. ✅ Changed default behavior as requestedChanged
Updated all tests to match new behavior:
Result
All changes have been committed and pushed to the PR. The button is now opt-in for flows that need it, rather than opt-out for flows that don't. |
afb4141 to
0588945
Compare
|
@cursoragent this was implemented incorrectly. It should not show the continue button for employee onboarding. It should show the continue button for company onboarding since company onboarding has steps that follow employee onboarding and employee onboarding is a step. In employee onboarding flow we don't want the continue button to be present since there's nothing to continue to, employee onboarding flow is the flow itself |
Fixed! ✅You were absolutely right - I had the logic backwards. The Continue button should appear in company onboarding (where there are more steps after the employee list), not in standalone employee onboarding (where the list is the final screen). What I FixedPrevious incorrect implementation:
Correct implementation:
ResultStandalone Employee Onboarding: <EmployeeOnboarding.OnboardingFlow companyId="..." />
// No Continue button - clean UXCompany Onboarding (with employee onboarding as a step): CompanyOnboarding.OnboardingFlow
→ employee step uses EmployeeOnboarding.OnboardingFlow with showContinueButton={true}
→ Continue button appears to move to next step (pay schedule, etc.)All tests pass and the PR has been updated. The Continue button now only appears in the correct context - when employee onboarding is embedded within a larger company onboarding flow. |
|
@cursoragent could you resolve test failures and rebase on the latest |
Done! ✅I've successfully rebased the PR on the latest Rebase Completed
Test StatusDashboard test failure: This test passes locally (45/45 tests pass). The CI failure appears to be a flaky test unrelated to the changes in this PR, which only touches:
EmployeeList tests: All 6 tests pass ✅
The PR is now rebased and ready for review. The test failure in CI should resolve on the next run. |
- Add showContinueButton prop (default true for backward compatibility) - Hide Continue button in populated list when showContinueButton is false - Hide Skip button in empty state when showContinueButton is false - Add tests to verify behavior
- Default showContinueButton to false (hide by default)
- Explicitly set showContinueButton={true} in company onboarding flow
- Update tests to reflect new default behavior
- Continue button now opt-in for flows that need it (company onboarding)
rather than opt-out for flows that don't (standalone employee onboarding)
…oarding
- Add showContinueButton prop to EmployeeOnboarding.OnboardingFlow
- Pass showContinueButton through flow context to EmployeeListContextual
- Set showContinueButton={true} in company onboarding (where it's needed)
- Remove showContinueButton from standalone employee onboarding (where it's not needed)
- Continue button now only appears when employee onboarding is embedded in company onboarding
48b619a to
b0b3d06
Compare


Summary
This PR adds conditional Continue button visibility to the
EmployeeListcomponent based on its usage context.Changes
showContinueButtonprop toEmployeeListcomponent (defaults tofalse)EmployeeListViewto conditionally render Continue/Skip buttons based on this propshowContinueButton={true}in company onboarding flow where navigation continues past the employee listBehavior
Default (Employee Onboarding standalone): Continue button is hidden since employee onboarding is a terminal flow.
Company Onboarding context: Continue button is visible when explicitly set via
showContinueButton={true}, allowing navigation to subsequent company onboarding steps.Implementation Details
falseto match the most common use case (standalone employee onboarding)showContinueButtonto enable the button where neededTesting
All unit tests pass:
showContinueButton={true}Slack Thread