Skip to content

GithubPipeline: ConfigurePipeline: Consolidate pipeline wizard review steps#407

Merged
illume merged 3 commits intoAzure:mainfrom
gambtho:thgamble/pipelineux
Mar 17, 2026
Merged

GithubPipeline: ConfigurePipeline: Consolidate pipeline wizard review steps#407
illume merged 3 commits intoAzure:mainfrom
gambtho:thgamble/pipelineux

Conversation

@gambtho
Copy link
Collaborator

@gambtho gambtho commented Mar 11, 2026

Summary

  • Consolidate the 5-step pipeline wizard (Connect Source > Configure > Setup PR > Agent > Complete) into 3 steps (Connect Source > Set up Copilot Agent > Review & Merge) based on UX team feedback
  • The "Review & Merge" step shows a vertical timeline with all three sub-phases (Setup PR, Copilot Agent, Deployment PR) in a single view with "Up next" sections for upcoming steps
  • Replace close (X) button with collapse (>>) icon to encourage saving progress
  • Replace "Start over" with "Cancel" as a tertiary CTA in the footer
  • Add "View deployment" button on completion screen that navigates to the Deploy tab via setSelectedTab prop

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Code refactoring

Related PRs

Depends on #406 (headlamp: pass setSelectedTab to header action components)

Changes Made

  • ReviewAndMergeStep.tsx (new) — Composite component showing a vertical timeline with completed items summary, active section with PR/agent details, and upcoming phase previews
  • WizardShell.tsx — 5 steps → 3 steps, renamed "Configure" to "Set up Copilot Agent", close X → collapse >>, "Start over" → "Cancel" moved to right side of footer
  • getWizardStep.ts — Updated state-to-step mapping: Setup PR, Agent, Generated PR, and completion states all map to step 2 (Review & Merge)
  • GitHubPipelineWizard.tsx — All review/merge/complete states now render ReviewAndMergeStep; added onViewDeployment prop; removed unused DeploymentStatusScreen/PRStatusScreen rendering and related variables
  • ConfigurePipelineButton.tsx — Accepts setSelectedTab prop from Headlamp, passes onViewDeployment handler that closes the drawer and calls setSelectedTab('deploy')
  • constants.ts — Removed NAVIGATE_TO_DEPLOY_TAB_EVENT constant (replaced by prop-based approach)
  • getWizardStep.test.ts — Updated test expectations for the new 3-step mapping

Testing

  • Unit tests pass (167 pipeline tests)
  • TypeScript type check passes
  • ESLint passes
  • Prettier format check passes

Test Cases

  1. Wizard stepper shows 3 steps with correct labels
  2. Review & Merge step shows completed items as green checkmarks, active section with details, and upcoming phases as grayed "Up next"
  3. Collapse (>>) button closes the drawer, progress persists on reopen
  4. Cancel button shows discard confirmation dialog
  5. "View deployment" button on completion screen closes drawer and navigates to Deploy tab

Closes

Copilot AI review requested due to automatic review settings March 11, 2026 13:56
@gambtho gambtho changed the title pipeline: ux improvements to pipeline flow plugins/aksdesktop: consolidate pipeline wizard review steps Mar 11, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR streamlines the AKS Desktop GitHub Pipeline wizard UX by consolidating the pipeline flow into a 3-step wizard and introducing a unified “Review & Merge” experience across PR/agent/deploy states.

Changes:

  • Collapse the wizard step model from 5 steps to 3, updating step mapping and tests.
  • Replace multiple intermediate status screens with a single consolidated ReviewAndMergeStep.
  • Add a new custom event + CTA plumbing intended to navigate users to the Deploy tab after pipeline configuration.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
plugins/aks-desktop/src/components/GitHubPipeline/utils/getWizardStep.ts Updates state→wizard-step mapping to a 3-step model.
plugins/aks-desktop/src/components/GitHubPipeline/utils/getWizardStep.test.ts Updates unit tests to match the new 3-step mapping.
plugins/aks-desktop/src/components/GitHubPipeline/constants.ts Adds a new DOM event constant for “navigate to deploy tab”.
plugins/aks-desktop/src/components/GitHubPipeline/components/WizardShell.tsx Updates step labels/types and adjusts header/footer UX (collapse, cancel).
plugins/aks-desktop/src/components/GitHubPipeline/components/ReviewAndMergeStep.tsx New consolidated UI for setup PR / agent progress / deployment PR / completion.
plugins/aks-desktop/src/components/GitHubPipeline/GitHubPipelineWizard.tsx Switches review/merge-related states to render ReviewAndMergeStep and adds onViewDeployment.
plugins/aks-desktop/src/components/ConfigurePipeline/ConfigurePipelineButton.tsx Wires onViewDeployment to close the drawer + dispatch a navigation event.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gambtho gambtho force-pushed the thgamble/pipelineux branch from b090bb4 to ed78aad Compare March 11, 2026 14:10
Copilot AI review requested due to automatic review settings March 11, 2026 19:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gambtho gambtho force-pushed the thgamble/pipelineux branch 2 times, most recently from 70c0bb9 to fbaa447 Compare March 11, 2026 21:01
Copilot AI review requested due to automatic review settings March 11, 2026 21:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Can you please address the open comments? There's a CI failure.

@illume illume marked this pull request as draft March 12, 2026 11:30
@illume illume added the p-none No priority was assigned label Mar 12, 2026
@illume illume changed the title plugins/aksdesktop: consolidate pipeline wizard review steps GithubPipeline: ConfigurePipeline: Consolidate pipeline wizard review steps Mar 12, 2026
@gambtho gambtho force-pushed the thgamble/pipelineux branch 2 times, most recently from 4b9b997 to 29f3e60 Compare March 12, 2026 14:47
@gambtho gambtho marked this pull request as ready for review March 12, 2026 14:57
@gambtho gambtho requested review from Copilot and illume March 12, 2026 14:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 9 comments.

Comments suppressed due to low confidence (1)

plugins/aks-desktop/src/components/GitHubPipeline/components/ReviewAndMergeStep.tsx:1

  • This new UI introduces many user-facing strings (including elapsed time text) as hard-coded English. Elsewhere in this plugin the wizard uses useTranslation() and translation JSON keys; please switch these strings to t(...) and add the corresponding keys to locale files to avoid an i18n regression.
// Copyright (c) Microsoft Corporation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copilot AI review requested due to automatic review settings March 13, 2026 17:36
@gambtho gambtho force-pushed the thgamble/pipelineux branch 2 times, most recently from 0f3930e to 5e5a7bc Compare March 13, 2026 17:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (2)

plugins/aks-desktop/src/components/GitHubPipeline/utils/agentTemplates.ts:1

  • Requiring manifests to include aks-project/pipeline-workflow: ${{ github.workflow }} is likely incorrect because GitHub Actions expressions are not evaluated inside static Kubernetes YAML; this would be applied literally unless an explicit templating/substitution step exists. Since you already annotate deployments at runtime via kubectl annotate ... aks-project/pipeline-workflow=${{ github.workflow }}, consider removing the manifest MUST requirement (or clarifying it will be overwritten), and rely on the runtime annotation step for the actual workflow name.
    plugins/aks-desktop/src/components/GitHubPipeline/utils/getWizardStep.ts:1
  • This grouping is correct, but it’s easy to misread as missing returns for several cases (especially since this function previously returned different step indices per phase). Consider adding a short comment indicating that all of these states intentionally map to step 2 ('Review & Merge') to reduce future refactor risk.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gambtho gambtho force-pushed the thgamble/pipelineux branch from 5e5a7bc to 05d974e Compare March 14, 2026 03:48
Copilot AI review requested due to automatic review settings March 14, 2026 21:15
@gambtho gambtho force-pushed the thgamble/pipelineux branch from 05d974e to 4195042 Compare March 14, 2026 21:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 37 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gambtho
Copy link
Collaborator Author

gambtho commented Mar 17, 2026

fixing copilot comments and merge conflcits

@gambtho gambtho force-pushed the thgamble/pipelineux branch from 6f02a3d to 1c0cc7e Compare March 17, 2026 16:27
@gambtho gambtho requested a review from illume March 17, 2026 16:27
Copilot AI review requested due to automatic review settings March 17, 2026 19:03
@gambtho gambtho force-pushed the thgamble/pipelineux branch from 1c0cc7e to 5b94c1e Compare March 17, 2026 19:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 38 out of 38 changed files in this pull request and generated 5 comments.

Comments suppressed due to low confidence (2)

plugins/aks-desktop/src/components/GitHubPipeline/utils/getWizardStep.ts:1

  • This switch relies on intentional fallthrough (multiple case labels with a single return 2), which is correct but easy to break during future edits (e.g., inserting logic between labels). Consider making each group explicitly return 2 (or adding a clarifying comment like // fallthrough: all map to step 2) to prevent accidental regressions.
    plugins/aks-desktop/src/components/GitHubPipeline/utils/agentTemplates.ts:1
  • The instruction text says it annotates each Deployment with the run URL, but the command now also adds a aks-project/pipeline-workflow annotation. Update the surrounding instruction text to mention both annotations (run URL + workflow) so the generated guidance matches the actual command.
// Copyright (c) Microsoft Corporation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gambtho I read through the code, and it looks good to me.

It just needs the rebase against main to fix the git conflicts.

@gambtho gambtho force-pushed the thgamble/pipelineux branch from 5b94c1e to 86970b2 Compare March 17, 2026 19:44
Copilot AI review requested due to automatic review settings March 17, 2026 20:19
@gambtho gambtho force-pushed the thgamble/pipelineux branch from 86970b2 to 1f786b4 Compare March 17, 2026 20:19
@gambtho gambtho force-pushed the thgamble/pipelineux branch from 1f786b4 to 9b6c4c8 Compare March 17, 2026 20:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 21 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

sniok
sniok previously approved these changes Mar 17, 2026
@illume
Copy link
Collaborator

illume commented Mar 17, 2026

These last changes look fine to me too.

Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@illume illume merged commit 2933bec into Azure:main Mar 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p-none No priority was assigned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants