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

feat(playground): toggle for the template language #5004

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

mikeldking
Copy link
Contributor

resolves #4996

Adds a toggle for template language to the prompts section

Screen.Recording.2024-10-14.at.8.43.06.PM.mov

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 15, 2024
@@ -251,6 +251,8 @@ export const createPlaygroundStore = (
},
setTemplateLanguage: (templateLanguage: TemplateLanguage) => {
set({ templateLanguage });
// Re-compute variables when the template language changes
get().calculateVariables();
Copy link
Contributor

Choose a reason for hiding this comment

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

I was literally thinking about this in bed last night that I forgot to put this here 😂

@cephalization
Copy link
Contributor

cephalization commented Oct 15, 2024

Seeing this when I load the branch locally

image

I don't know why my browser keeps caching stale builds. We might need to tweak our dev commands a bit

@mikeldking
Copy link
Contributor Author

Seeing this when I load the branch locally

image

I don't know why my browser keeps caching stale builds. We might need to tweak our dev commands a bit

Huh, lmk what you find

@mikeldking mikeldking merged commit 45755bb into playground Oct 15, 2024
7 checks passed
@mikeldking mikeldking deleted the template-mode branch October 15, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants