Skip to content

fix(getBrandId): parameterize text prompt#368

Open
kevinkace wants to merge 3 commits into
zendesk:masterfrom
kevinkace:kevinkace/fix-list-prompt
Open

fix(getBrandId): parameterize text prompt#368
kevinkace wants to merge 3 commits into
zendesk:masterfrom
kevinkace:kevinkace/fix-list-prompt

Conversation

@kevinkace

Copy link
Copy Markdown

Description

Parameterize getBrandId() so the the text prompt for themes:list and themes:import match how they are used.

Do NOT write here! This section will be filled in by GitHub Action
automatically. If you don't want this, either remove the markers or write
outside the fences.

Detail

image

closes #367

Checklist

Copilot AI review requested due to automatic review settings April 28, 2026 20:44
@kevinkace kevinkace requested a review from a team as a code owner April 28, 2026 20:44

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 themes CLI to allow getBrandId() to display different user prompts depending on the command (themes:list vs themes:import), addressing the misleading prompt reported in issue #367.

Changes:

  • Parameterized getBrandId() with a custom prompt message.
  • Updated themes:list to use a list-specific brand selection prompt.
  • Updated themes:import to use an import-specific brand selection prompt.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/zcli-themes/src/lib/getBrandId.ts Adds a message parameter and uses it as the inquirer prompt text.
packages/zcli-themes/src/commands/themes/list.ts Passes a list-appropriate prompt string into getBrandId().
packages/zcli-themes/src/commands/themes/import.ts Passes an import-appropriate prompt string into getBrandId().

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

Comment thread packages/zcli-themes/src/lib/getBrandId.ts Outdated
Comment thread packages/zcli-themes/src/lib/getBrandId.ts
Copilot AI review requested due to automatic review settings May 12, 2026 23:53

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

themes:list text prompt doesn't match how it is used

2 participants