flipt-io / flipt

Enterprise-ready, GitOps enabled, CloudNative feature management solution

Home Page:https://flipt.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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

CleanShot 2024-03-16 at 14 59 00

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

FLI-915

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 ?

Hey @markphelps

Does this issue still valid ?

Can i try to resolve it ?

It is @KirillPerepelitsa ! I can assign you to it. Thank you!🙏🏻