1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src
andreas-unleash 8e3863a27e
feat: add input for api token in playground (#5130)
Adds a token input in playground.

In the case of tokens that span multiple projects ie
`[]:development.etc` it will look into the token definitions to find the
token and get the projects

Otherwise it will try to parse the project and environment from the
token itself (without checking for it being a valid token)

Also, does not support admin tokens `*:*.etc`

Closes #
[1-1507](https://linear.app/unleash/issue/1-1507/create-a-token-input-in-the-playground-form)
<img width="1661" alt="Screenshot 2023-10-23 at 16 38 11"
src="https://github.com/Unleash/unleash/assets/104830839/f2d4fb6e-962f-4cc1-b5e4-817fd2de18ff">
<img width="1673" alt="Screenshot 2023-10-23 at 16 38 33"
src="https://github.com/Unleash/unleash/assets/104830839/27645955-d651-41e6-be02-4381c4f00551">

<img width="1377" alt="Screenshot 2023-10-25 at 17 06 43"
src="https://github.com/Unleash/unleash/assets/104830839/c7638366-3634-4521-af65-4f68a4f3b330">

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-25 17:55:33 +03:00
..
__mocks__ refactor: format files (#719) 2022-02-18 09:51:10 +01:00
assets chore(ui): add splash screen for oss segments (#5053) 2023-10-19 08:28:14 +02:00
component feat: add input for api token in playground (#5130) 2023-10-25 17:55:33 +03:00
constants feat: make maintenance-related 503s more intuitive (#5018) 2023-10-16 09:27:29 +01:00
contexts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
hooks feat: add feature search service (#5149) 2023-10-25 15:18:52 +02:00
interfaces feat: banner modal (#5132) 2023-10-24 16:26:44 +01:00
openapi chore: generate types (#5074) 2023-10-18 09:55:07 +03:00
themes feat: dynamic icons by adding material symbols font (#5008) 2023-10-12 11:22:23 +01:00
types feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
utils feat: show dependencies only when using pro/enterprise or at least on… (#5052) 2023-10-16 20:56:06 +02:00
index.tsx feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
setupTests.ts feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
vite-env.d.ts refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00