fix: make selection message more clear

This commit is contained in:
Davor Racić 2026-02-03 17:30:28 +01:00
parent 1ff3323c87
commit c23c0baec1
2 changed files with 5 additions and 5 deletions

View File

@ -264,7 +264,7 @@ async function autocompleteMultiselect(options) {
const title = `${color.gray(clack.S_BAR)}\n${clack.symbol(this.state)} ${options.message}\n`; const title = `${color.gray(clack.S_BAR)}\n${clack.symbol(this.state)} ${options.message}\n`;
const userInput = this.userInput; const userInput = this.userInput;
const placeholder = options.placeholder || 'Start typing to find your IDE...'; const placeholder = options.placeholder || 'Type to search...';
const hasPlaceholder = userInput === '' && placeholder !== undefined; const hasPlaceholder = userInput === '' && placeholder !== undefined;
// Show placeholder or user input with cursor // Show placeholder or user input with cursor
@ -305,7 +305,7 @@ async function autocompleteMultiselect(options) {
const headerLines = [ const headerLines = [
...`${title}${bar}`.split('\n'), ...`${title}${bar}`.split('\n'),
`${bar} ${color.dim('Search:')} ${searchDisplay}${matchCount}`, `${bar} ${searchDisplay}${matchCount}`,
...noMatchesLine, ...noMatchesLine,
...errorLine, ...errorLine,
]; ];

View File

@ -405,7 +405,7 @@ class UI {
const sortedInitialValues = sortedTools.filter((ide) => configuredIdes.includes(ide.value)).map((ide) => ide.value); const sortedInitialValues = sortedTools.filter((ide) => configuredIdes.includes(ide.value)).map((ide) => ide.value);
const upgradeSelected = await prompts.autocompleteMultiselect({ const upgradeSelected = await prompts.autocompleteMultiselect({
message: 'Select tools to install:', message: 'Integrate with::',
options: upgradeOptions, options: upgradeOptions,
initialValues: sortedInitialValues, initialValues: sortedInitialValues,
required: false, required: false,
@ -458,7 +458,7 @@ class UI {
const recommendedInitialValues = configuredPreferred.length > 0 ? configuredPreferred : undefined; const recommendedInitialValues = configuredPreferred.length > 0 ? configuredPreferred : undefined;
const recommendedSelected = await prompts.multiselect({ const recommendedSelected = await prompts.multiselect({
message: `Select tools to install ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`, message: `Integrate with: ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`,
options: recommendedOptions, options: recommendedOptions,
initialValues: recommendedInitialValues, initialValues: recommendedInitialValues,
required: false, required: false,
@ -999,7 +999,7 @@ class UI {
console.log( console.log(
chalk.gray(`Directory exists and contains ${files.length} item(s)`) + chalk.gray(`Directory exists and contains ${files.length} item(s)`) +
(hasBmadInstall ? chalk.yellow(` including existing BMAD installation (${path.basename(bmadResult.bmadDir)})`) : ''), (hasBmadInstall ? chalk.yellow(` including existing BMAD installation (${path.basename(bmadResult.bmadDir)})`) : ''),
); );
} else { } else {
console.log(chalk.gray('Directory exists and is empty')); console.log(chalk.gray('Directory exists and is empty'));