feat(create-ui): interactive prompts + e2e + changeset (3/3)#7846
Conversation
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Pull request overview
Completes the @coveo/create-ui scaffolding CLI by adding interactive prompting for missing arguments, a gated end-to-end smoke test, and release documentation/changeset updates.
Changes:
- Added interactive template selection and project-name prompting via
@inquirer/prompts, with Ctrl-C prompt abort handling. - Introduced an
E2E=1-gated e2e test that scaffolds from a local GitHub-shaped tarball and builds the result. - Added package docs and a Changesets minor release entry.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds lock entries for @inquirer/prompts and its transitive deps. |
| packages/create-ui/src/prompt.ts | New interactive prompt helpers and testable choice-building logic. |
| packages/create-ui/src/prompt.test.ts | Unit tests for prompt choice-building behavior. |
| packages/create-ui/src/index.ts | Wires prompts into CLI flow and adds Ctrl-C prompt abort handling. |
| packages/create-ui/src/e2e.test.ts | Adds gated end-to-end smoke test (scaffold → install → build). |
| packages/create-ui/README.md | Documents CLI usage, interactive mode, and options. |
| packages/create-ui/package.json | Adds @inquirer/prompts dependency. |
| .changeset/create-ui-initial.md | Adds a minor changeset describing initial CLI scaffolding feature. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
@coveo/atomic
@coveo/atomic-hosted-page
@coveo/atomic-legacy
@coveo/atomic-react
@coveo/auth
@coveo/bueno
@coveo/create-atomic
@coveo/create-atomic-component
@coveo/create-atomic-component-project
@coveo/create-atomic-result-component
@coveo/create-atomic-rollup-plugin
@coveo/headless
@coveo/headless-react
@coveo/shopify
commit: |
Adds interactive template + project-name selection when args are omitted, graceful Ctrl-C handling, a gated end-to-end test (scaffold -> install -> build), the README, and the release changeset.
2bcfb30 to
09f1ee3
Compare
|
Important Testing in progress…🟢 UI Tests: 457 tests unchanged |
|
Tip All tests passed and all changes approved!🟢 UI Tests: 458 tests unchanged |
Dependency Review✅ No vulnerabilities or license issues found.Scanned Files
|
Interactive prompts
Cancel handling pattern
Enhanced error message with help
KIT-5830 | Epic: KIT-5452