Skip to content

chage(cli): rename completeAndRun to complete and install and update…#1733

Open
Marina-L-Stoyanova wants to merge 2 commits into
masterfrom
mstoyanova/wizard-steps-update
Open

chage(cli): rename completeAndRun to complete and install and update…#1733
Marina-L-Stoyanova wants to merge 2 commits into
masterfrom
mstoyanova/wizard-steps-update

Conversation

@Marina-L-Stoyanova

@Marina-L-Stoyanova Marina-L-Stoyanova commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

… related logic

Description

Removing the Run step from the Step-by-step guide and updating withe Next steps.

Related Issue

Closes #1728

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring / code cleanup
  • Build / CI configuration change

Affected Packages

  • igniteui-cli (packages/cli)
  • @igniteui/cli-core (packages/core)
  • @igniteui/angular-templates (packages/igx-templates)
  • @igniteui/angular-schematics (packages/ng-schematics)
  • @igniteui/mcp-server (packages/igniteui-mcp)

Checklist

  • I have tested my changes locally (npm run test)
  • I have built the project successfully (npm run build)
  • I have run the linter (npm run lint)
  • I have added/updated tests as needed
  • My changes do not introduce new warnings or errors

Additional Context

@coveralls

coveralls commented Jun 15, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 87.877% (+0.09%) from 87.785% — mstoyanova/wizard-steps-update into master

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the step-by-step (ig wizard) completion flow by removing the “run” step, renaming the internal completion hook from completeAndRun to complete, and printing “Next Steps” guidance after installation to avoid confusion about the user’s shell working directory.

Changes:

  • Replace the wizard’s “Complete & Run” action with “Complete and Install packages” and stop invoking start.
  • Rename BasePromptSession.completeAndRun() to BasePromptSession.complete() and update CLI + schematics implementations accordingly.
  • Add showNextSteps() output after completion and adjust unit tests to match the new flow.

Reviewed changes

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

File Description
spec/unit/PromptSession-spec.ts Updates wizard-flow tests to use the new completion action and assert install + “Next Steps” behavior (no start).
packages/ng-schematics/src/prompt/SchematicsPromptSession.ts Renames the completion hook to complete() to match the core prompt base API.
packages/core/prompt/BasePromptSession.ts Introduces _newProjectName, renames completion API, updates action choice strings, and adds showNextSteps() after completion.
packages/cli/lib/PromptSession.ts Implements complete() to install and flush packages without starting the app.

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

Comment on lines +462 to +470
private showNextSteps() {
Util.log("");
Util.log("Next Steps:");
if (this._newProjectName) {
Util.log(` cd ${this._newProjectName}`);
}
Util.log(" ig add start guided mode for adding views to the app");
Util.log(" ig start starts a web server and opens the app in the default browser");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot has a point
image

}

protected completeAndRun(_port?: number) {
protected async complete() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we should get rid of this no-op method. It seems it's a dead end for 7 years now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removing it would cause a TypeScript compile error. The empty body is the intentional no-op implementation for the schematics context.

@ivanvpetrov

Copy link
Copy Markdown
Contributor

There are still traces of 'Complete & Run' in several general-getting-started.md files.

E.g.

Then choose React as the framework and Ignite UI for React TS as the project type. Select the Default Top Navigation project template, add a specific component/view, or select Complete & Run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The step-by-step should no longer offer the option to complete and run

4 participants