Closed swimbo closed 2 months ago
@aexshafii the speed on getting this out was amazing, but I think you want a bit of what you had + optionality.
Originally: It recommended a template + a button click applied it. …but you can’t change it.
version 1.37.24: It allows you to select a template from a dropdown. …but now it doesn’t recommend a template.
Ideal IMO: It recommends a template + if you disagree, then you can change it. // ~75% of the time the recommendation is correct. So I don’t think you want to get rid of that recommended template feature because it’s both useful and very inline with your AI/Automation value prop.
Hopefully that’s helpful!
@swimbo I believe this is what I implemented: https://www.loom.com/share/1d12595c827d43d583f30f5b9ab27a24 Or do you mean something different than what you can see in this video?
Ahh! @aexshafii mine just has the words “Select template” and isn’t choosing one to start. MIght be a local install issue, though. Let me do a fresh pull and build.
Fixed it with: git reset --hard origin/master
Thanks for the quick reply!
ahh okay great! And thanks to you for helping out with this issue 🙏
As a user, I want to be able to force the AI to use a template I choose when it automatically chooses the wrong template.
A simple way to do this would be to use a split dropdown button, where the left part executes the recommended actionon click, but if you don’t want to do that action, then the right is a dropdown of the template options. Here’s the Bootstrap equivalent of what I’m talking about: https://getbootstrap.com/docs/4.0/components/dropdowns/#split-button-dropdowns
However, it looks like you’re using Class Variance Authority (cva) in combination with Radix UI, so here’s that equivalent code according to chatgpt:
To modify the provided button component code to create a split dropdown button, you can extend the current setup by adding a new variant that supports a split button. A split dropdown button typically has two parts: the main action button and a smaller dropdown button next to it. Here’s how you can achieve this:
Here’s a step-by-step implementation:
1. Update the Button Component
Add a new variant to the buttonVariants for the split button:
2. Create the Split Dropdown Button Component
Now, create a new SplitDropdownButton component that will combine the main action button with a smaller dropdown button:
3. Usage Example
You can now use the SplitDropdownButton in your application like this:
Notes: