Show "Finish" on last step of application creation wizard#2839
Show "Finish" on last step of application creation wizard#2839sadilchamishka wants to merge 1 commit into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe application creation wizard now renders the Next button text as "finish" on the final visible step and "continue" otherwise; tests were updated to click the wizard's explicit ChangesWizard Button Label
Sequence DiagramsequenceDiagram
participant ApplicationCreatePage
participant Wizard
participant NextButton
ApplicationCreatePage->>Wizard: read visibleSteps & currentStep
Wizard->>NextButton: isLastVisibleStep?
NextButton->>NextButton: render "finish" or "continue"
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the application creation wizard’s primary navigation button label so the last visible step shows “Finish” instead of “Continue”, aligning the console’s creation flows with common UX patterns.
Changes:
- Update
ApplicationCreatePageto conditionally render Finish when the user is on the last visible step; otherwise Continue.
|
Addressed Copilot's comment (3271314450) in 227c77d — all last-step button clicks in |
1695fe7 to
dfb6551
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@frontend/apps/console/src/features/applications/pages/__tests__/ApplicationCreatePage.test.tsx`:
- Line 634: Before clicking the wizard CTA, add an explicit assertion that the
next button's accessible name/text is "Finish" by querying the element used in
this test (screen.getByTestId('application-wizard-next-button')) and asserting
its textContent or accessible name equals "Finish" (e.g.,
expect(screen.getByTestId('application-wizard-next-button')).toHaveTextContent(/finish/i)
) immediately before the user.click call; apply the same check for the other
instances where user.click(screen.getByTestId('application-wizard-next-button'))
appears in this test file to ensure the final-step CTA label is verified across
all cases.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 8eb09025-5196-44c8-b568-4d5ca63f137c
📒 Files selected for processing (2)
frontend/apps/console/src/features/applications/pages/ApplicationCreatePage.tsxfrontend/apps/console/src/features/applications/pages/__tests__/ApplicationCreatePage.test.tsx
|
Addressed both review comments (Copilot thread Added a focused test in the
This pins the label-switching behaviour without coupling every existing test to the button text. |
f472df1 to
8aee091
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Purpose
Fixes #2845
The final step of the application creation wizard displayed Continue instead of Finish, which was inconsistent with other resource creation flows in the console.
Changes
ApplicationCreatePage.tsx: button label is now conditional — shows Finish when the user is on the last visible step, Continue on all preceding steps.Proof
Checklist