Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new prompt for is_available_for_new_content. #1226

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

tenas97
Copy link
Contributor

@tenas97 tenas97 commented Oct 31, 2024

Description and Context

Developers use the CLI to create a new module locally. The default file structure we provide includes a default value for is_available_for_new_content within the meta.json file for the module. This PR just adds a new prompt to the list of prompts for the create module cli command, allowing users to choose how they want to set the is_available_for_new_content property.

closes https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/344

lang/en.lyaml Outdated
@@ -1202,6 +1202,7 @@ en:
selectReactType: "Is this a React module?"
selectContentType: "What types of content will this module be used in?"
confirmGlobal: "Is this a global module?"
availableForNewContent: "Is this available for new content?"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would just adjust the wording here to Make this module available for new content?

@brandenrodgers
Copy link
Contributor

@tenas97 would you mind adding a slightly more detailed description of these changes? It may help someone down the road. Also we get some external 👀 on this repo since it's public so it's always useful to explain what the changes are doing.

Side note, is that link to issue 344 pointing to the right place? I'm not seeing how that's related to these changes.

@tenas97
Copy link
Contributor Author

tenas97 commented Nov 5, 2024

@tenas97 would you mind adding a slightly more detailed description of these changes? It may help someone down the road. Also we get some external 👀 on this repo since it's public so it's always useful to explain what the changes are doing.

Side note, is that link to issue 344 pointing to the right place? I'm not seeing how that's related to these changes.

@brandenrodgers Nice catch with the link. I just updated the description.

Comment on lines +55 to +61
const AVAILABLE_FOR_NEW_CONTENT = {
type: 'confirm',
name: 'availableForNewContent',
message: i18n(`${i18nKey}.availableForNewContent`),
default: true,
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the addition of the prompt is causing an AT failure. I think it is as simple as adding another ENTER on this line

@tenas97 tenas97 changed the base branch from main to next November 21, 2024 20:33
@tenas97 tenas97 merged commit 80bd984 into next Nov 21, 2024
1 check passed
@tenas97 tenas97 deleted the hubspot-cli-issue-344 branch November 21, 2024 20:33
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.

4 participants