-
Notifications
You must be signed in to change notification settings - Fork 30
feat(experiment): prompt create shows more example templates and agents #402
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
base: main
Are you sure you want to change the base?
Changes from all commits
42aeefd
716cffb
cd63d76
d63f851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,12 +35,24 @@ var embedPromptSamplesTmpl string | |
| // promptSampleSelection gathers upstream samples to select from | ||
| func promptSampleSelection(ctx context.Context, clients *shared.ClientFactory, sampleRepos []create.GithubRepo) (string, error) { | ||
| filteredRepos := []create.GithubRepo{} | ||
| selection, err := clients.IO.SelectPrompt(ctx, "Select a language:", | ||
| []string{ | ||
| fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")), | ||
| fmt.Sprintf("Bolt for Python %s", style.Secondary("Python")), | ||
| fmt.Sprintf("Deno Slack SDK %s", style.Secondary("Deno")), | ||
| }, | ||
| languageOptions := []string{ | ||
| fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")), | ||
| fmt.Sprintf("Bolt for Python %s", style.Secondary("Python")), | ||
| fmt.Sprintf("Deno Slack SDK %s", style.Secondary("Deno")), | ||
| } | ||
| if clients.Config.WithExperimentOn(experiment.Templates) { | ||
| languageOptions = []string{ | ||
| "Bolt for JavaScript", | ||
| "Bolt for Python", | ||
| "Deno Slack SDK", | ||
| } | ||
| } | ||
| languagePrompt := "Select a language:" | ||
| if clients.Config.WithExperimentOn(experiment.Templates) { | ||
| languagePrompt = "Select a framework:" | ||
| } | ||
|
Comment on lines
+50
to
+53
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: This is fine and I appreciate the improvement. But I'll plead for ya'll to try to keep the focus on a survey-to-huh migration without introducing other changes. The more changes, the more to review, the longer it takes to release the experiment, and the harder it is to feel confident in the release. I'd suggest keeping a list of improvements like switching language to framework and do it as follow-ups after releasing the survey-to-huh migration. Changing "Language" to "Framework" should also update/alias our |
||
| selection, err := clients.IO.SelectPrompt(ctx, languagePrompt, | ||
| languageOptions, | ||
| iostreams.SelectPromptConfig{ | ||
| Flags: []*pflag.Flag{ | ||
| clients.Config.Flags.Lookup("language"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π note: Toward confusion of #325 we focused on on a "framework" selection here - @srtaalej!
π£ ramble: The
samplescommand has the following flag option too but IMHO the prompt it supports feels unexpected. Perhaps it's changed to "framework" soon?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like framework!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I've often felt "language" was a poor choice. We went with it back when Deno was the only choice. Now, it feels like we're choosing frameworks not languages.
question: In the spirit of focus around a survey-to-huh migration, can we consider keeping parity between the 2 prompts? Change it to framework in both places or consider doing the framework change AFTER we release the huh migration.