fix(cli): list Create a new Project first in the setup picker#111
Conversation
With many projects, creating a new one required paging past the whole list. The interactive project setup picker (project link and app deploy setup) now lists Create a new Project first, with Cancel last; spec examples updated and picker-driving tests adjusted for the new order.
Glyph over color: the prompt library owns the active-row styling (embedded ANSI would break its highlight), and the style guide forbids color-only meaning. The + survives NO_COLOR and non-TTY logs.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
Summary by CodeRabbit
WalkthroughChangesSummary: Reorders the interactive Project selection prompt so "Create a new Project" appears first, before existing project entries, with "Cancel" remaining last. The command spec documentation was updated to reflect the new ordering and includes a non-color Impacted areas: interactive project setup prompt logic, command spec documentation, and associated test fixtures for app-controller, project-controller, and project commands. Sequence Diagram(s)Not applicable — changes are limited to list ordering and test input adjustments without new interaction flows. Related PRs: None identified. Suggested labels: cli, documentation, tests Suggested reviewers: None identified. Poem: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
With many projects, reaching Create a new Project in the interactive setup picker meant paging past the entire list. It's now the first option; Cancel stays last. Applies to both
project linkandapp deployfirst-time setup (shared picker).Before:
After:
Note the intentional side effect: plain Enter now starts the create flow instead of linking the first listed project. Creating still requires typing a name, so there's no silent resource creation; existing projects are one arrow-key away.
Testing: spec examples updated, six picker-driving tests adjusted for the new order, full suite 591 green.