[FLI-915] UI: Copy As Dropdown
markphelps opened this issue · comments
Problem
We currently have a Copy As Curl
button in the evaluation console page of the UI
We now have the ability to also evaluate using the Flipt CLI
It would be nice to give the user the ability to copy the command that would allow them to evaluate using the Flipt CLI
Ideal Solution
Make the current Copy As Curl
button a button titled Copy
that opens a dropdown that has two options:
- Curl Request
- Flipt CLI
Clicking the curl request option would do the same thing the Copy As Curl
button does today, copying the curl commands
Similarly, the Flipt CLI
option would copy the https://www.flipt.io/docs/cli/commands/evaluate command that the user could paste in their terminal if they have the Flipt CLI installed.
Search
- I searched for other open and closed issues before opening this
Additional Context
We could use the Tailwind UI dropdown component for this
We already have the Dropdown component at ui/src/components/forms/Dropdown.tsx
that may just require minimal styling
hey I would like to be assigned to this task
Awesome thank you @Alonsohhl ! Very much appreciated
Hey @markphelps
Does this issue still valid ?
Can i try to resolve it ?
It is @KirillPerepelitsa ! I can assign you to it. Thank you!🙏🏻
Fixed in #3154 thanks @kyryl-perepelytsia