Skip to content

Commit 084e2f1

Browse files
fix(cli): highlight Create a new Project with a + glyph
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.
1 parent ea30fa0 commit 084e2f1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/cli/src/lib/project/interactive-setup.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ export async function promptForProjectSetupChoice(options: {
4646
output: options.context.runtime.stderr,
4747
message: "Which Project should this directory use?",
4848
// "Create a new Project" stays first so it is reachable without paging
49-
// through a long project list; Cancel stays last by convention.
49+
// through a long project list; Cancel stays last by convention. The "+"
50+
// glyph highlights it without color, since the prompt library owns the
51+
// active-row styling and the style guide forbids color-only meaning.
5052
choices: [
51-
{ label: "Create a new Project", value: { kind: "create" as const } },
53+
{ label: "+ Create a new Project", value: { kind: "create" as const } },
5254
...sortedProjects.map((project) => ({
5355
label: duplicateNames.has(project.name)
5456
? `${project.name} (${project.id})`

0 commit comments

Comments
 (0)