-
Notifications
You must be signed in to change notification settings - Fork 207
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
Install npm packages after plan ran. External link option #410
Conversation
packages/api/ai/plan-parser.mts
Outdated
(action): action is NpmInstallCommand => | ||
action.type === 'command' && action.command === 'npm install', | ||
) | ||
.map((action) => action.packages) |
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.
.map().flat() can be expressed in one iteration using flatMap()
.
<TooltipProvider> | ||
<Tooltip> | ||
<TooltipTrigger asChild> | ||
<Button |
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.
This should be a link rather than a button with window.open
size="icon" | ||
onClick={() => window.open(url as string, '_blank')} | ||
className="active:translate-y-0" | ||
disabled={previewStatus === 'booting' || previewStatus === 'connecting'} |
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.
nit but probs better to do previewStatus !== 'running'
, especially since at some point stop may keep the preview stopped (rather than client automatically booting it back up again, which is currently awkward behavior given that we have a stop button that doesn't really stop it).
props.onChangeTab('code'); | ||
}} | ||
className="active:translate-y-0" | ||
disabled={previewStatus === 'booting' || previewStatus === 'connecting'} |
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.
same re: previewStatus !== running
Ability to open the vite app in a new tab (i want this to show something off in the video).
Also when creating an app, if there were packages they wouldn't be installed and it would crash. I fix that by installing only the right packages post AI plan.