Skip to content
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

Feat: API Playground #10376

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
2fdcc8c
feat: update translations
oliverqx Feb 20, 2025
e0c50d9
feat: export webhook icon
oliverqx Feb 20, 2025
b44c62c
feat: update navigation bar
oliverqx Feb 20, 2025
13b9832
feat: create api keys page and story for it
oliverqx Feb 20, 2025
4db13d2
fix: update title/path for story
oliverqx Feb 20, 2025
908fc30
fix: update stories names
oliverqx Feb 20, 2025
f512f60
feat: create playground cover image component
oliverqx Feb 20, 2025
78cf4de
feat: implement cover image component
oliverqx Feb 20, 2025
0eb0385
feat: add playground setup form
oliverqx Feb 21, 2025
27fba5c
feat: export icons
oliverqx Feb 21, 2025
7463d09
feat: update fields
oliverqx Feb 21, 2025
be35f3e
fix: align all form items end
oliverqx Feb 21, 2025
3b204ab
feat: expose developersApiKey endpoint
oliverqx Feb 21, 2025
8a31fae
feat: use available api keys for select
oliverqx Feb 21, 2025
d31e3f3
fix: use grid for more consistent spacing
oliverqx Feb 21, 2025
faf1290
chore: remove SettingsDevelopers route and components
oliverqx Feb 21, 2025
7fe5809
fix: add apis to settings path
oliverqx Feb 21, 2025
66bce6c
chore: update apiKey components navigation
oliverqx Feb 21, 2025
89c41c6
chore: remove remaining traces of developers route
oliverqx Feb 21, 2025
705dd65
feat: create settings webhooks component
oliverqx Feb 21, 2025
7eb7dfb
feat: fix options when no apiKeys are available
oliverqx Feb 21, 2025
3f8738a
Merge branch 'main' into feat.api-playground-bounty
oliverqx Feb 21, 2025
5d46533
feat: add playground variations
oliverqx Feb 21, 2025
1566ec6
Merge branch 'feat.api-playground-bounty' of https://github.com/olive…
oliverqx Feb 21, 2025
a1b3b80
chore: remove playground files from website
oliverqx Feb 21, 2025
6fe1cb5
chore: remove playground from docs index
oliverqx Feb 21, 2025
9b56515
chore: remove graphql, rest content
oliverqx Feb 21, 2025
666fdef
feat: add docs
oliverqx Feb 21, 2025
2e21431
feat: add playground setup form submission
oliverqx Feb 21, 2025
5a03a06
feat: add default values
oliverqx Feb 21, 2025
4d64b28
feat: add watch to apiKey
oliverqx Feb 21, 2025
25b4923
fix: remove default value
oliverqx Feb 21, 2025
964ad94
feat: add navigation to create Api key select CTA button
oliverqx Feb 21, 2025
3fc79b7
feat: drop css in favour of styled components
oliverqx Feb 21, 2025
53837e2
fix: downgrade scalar to 0.3.166
oliverqx Feb 21, 2025
1ec57ee
feat: rest playground compatibility
oliverqx Feb 21, 2025
98b56c0
feat: create useShowPlayground
oliverqx Feb 21, 2025
cf5f2f1
feat: implement useShowPlayground
oliverqx Feb 21, 2025
8f2b9ac
Merge branch 'main' into feat.api-playground-bounty
oliverqx Feb 21, 2025
3b7a844
fix: update yarn.lock
oliverqx Feb 21, 2025
df85ff3
fix: lint issues
oliverqx Feb 21, 2025
e040a0f
fix: remove duplicate folder
oliverqx Feb 21, 2025
d94952c
fix: update import statements
oliverqx Feb 21, 2025
6f2246b
fix: lint errors
oliverqx Feb 21, 2025
3888c6c
fix: address greptile comments
oliverqx Feb 21, 2025
07d92e8
Merge branch 'main' into feat.api-playground-bounty
oliverqx Feb 21, 2025
55b98b1
refactor: clean up playground
oliverqx Feb 21, 2025
f24a115
fix: clean types
oliverqx Feb 21, 2025
5be8fa9
fix: clean flow
oliverqx Feb 21, 2025
43e81f2
refactor: reimplement parameters cleaner
oliverqx Feb 21, 2025
3209bc8
Merge branch 'main' into feat.api-playground-bounty
oliverqx Feb 21, 2025
d3aee6f
fix: linting issues
oliverqx Feb 21, 2025
70c7534
Merge branch 'feat.api-playground-bounty' of https://github.com/olive…
oliverqx Feb 21, 2025
a0f3222
fix: update SubMenuTopBarContainer title API Keys -> APIs
oliverqx Feb 22, 2025
b721a1c
feat: add theme to rest api playground
oliverqx Feb 22, 2025
15e62bb
feat: update file names
oliverqx Feb 22, 2025
52fd472
fix: add @codemirror/state to package resolutions
oliverqx Feb 22, 2025
b3cf247
fix: update path
oliverqx Feb 22, 2025
fa9c364
feat: change file names
oliverqx Feb 22, 2025
21a35b1
feat: add theme to GraphQLPlayground
oliverqx Feb 22, 2025
00a4f2a
fix: remove SubMenuTopBarContainer and add PageHeader instead
oliverqx Feb 22, 2025
d33e937
feat: add close rest playground button
oliverqx Feb 22, 2025
117e173
feat: create PlaygroundPage
oliverqx Feb 22, 2025
b1d4da8
lint
oliverqx Feb 22, 2025
a37f80c
fix: improve spacing
oliverqx Feb 22, 2025
2dfc865
lint
oliverqx Feb 22, 2025
f38a67b
fix: wrap select options in a useMemo
oliverqx Feb 22, 2025
34a4bed
Revert changes to website as Ill add them to a separate PR to deploy …
FelixMalfait Feb 23, 2025
4f7eb77
fix: update icon exports
oliverqx Feb 24, 2025
4cc9aa6
fix: update light cover
oliverqx Feb 24, 2025
3a83457
feat: add playgroundPageContainer ScrollWrapperContext
oliverqx Feb 24, 2025
fef78f0
fix: comply with figma paddings
oliverqx Feb 24, 2025
371b7a8
fix: REST Playground padding
oliverqx Feb 24, 2025
08766d6
fix: update css selectors
oliverqx Feb 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/af-ZA.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "en"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webtuistes"

Expand All @@ -225,6 +224,10 @@ msgstr "API Naam (Meervoud)"
msgid "API Name (Singular)"
msgstr "API Naam (Enkelvoudig)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Voorkoms"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhaak"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhake"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Jou Werkruimte"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Jou werkskerm sal onaktief gemaak word"
msgstr "Jou werkskerm sal onaktief gemaak word"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/ar-SA.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "و"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "واجهة برمجة التطبيقات والويب هوك"

Expand All @@ -225,6 +224,10 @@ msgstr "أسماء واجهة برمجة التطبيقات (جمع)"
msgid "API Name (Singular)"
msgstr "اسم الواجهة برمجية (مفرد)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "المظهر"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "الويب هوك"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "الويب هوكس"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "مساحة عملك"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "سيتم تعطيل مساحة عملك"
msgstr "سيتم تعطيل مساحة عملك"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/ca-ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "i"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API i Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "Nom de l'API (Plural)"
msgid "API Name (Singular)"
msgstr "Nom de l'API (Singular)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Aparença"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "El vostre Espai de Treball"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "El vostre espai de treball serà desactivat"
msgstr "El vostre espai de treball serà desactivat"
11 changes: 8 additions & 3 deletions packages/twenty-front/src/locales/cs-CZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "a"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "Název API (množné číslo)"
msgid "API Name (Singular)"
msgstr "API název (jednotné číslo)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Vzhled"
Expand Down Expand Up @@ -1046,7 +1049,8 @@ msgstr "Neplatný poskytovatel ověřování"

#: src/pages/settings/workspace/SettingsDomain.tsx
msgid "Invalid custom domain. Custom domains have to be smaller than 256 characters in length, cannot be IP addresses, cannot contain spaces, cannot contain any special characters such as _~`!@#$%^*()=+{}[]|\\;:'\",<>/? and cannot begin or end with a '-' character."
msgstr "Neplatná vlastní doména. Vlastní domény musí být kratší než 256 znaků, nesmí být IP adresy, nesmí obsahovat mezery, nesmí obsahovat žádné speciální znaky jako jsou _~\n"
msgstr ""
"Neplatná vlastní doména. Vlastní domény musí být kratší než 256 znaků, nesmí být IP adresy, nesmí obsahovat mezery, nesmí obsahovat žádné speciální znaky jako jsou _~\n"
"`!@#$%^*()=+{}[]|\\;:'\"<>/? a nesmí začínat ani končit znakem '-'."

#: src/modules/settings/profile/components/ChangePassword.tsx
Expand Down Expand Up @@ -1998,6 +2002,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooky"

Expand Down Expand Up @@ -2089,4 +2094,4 @@ msgstr "Váš pracovní prostor"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Váš pracovní prostor bude deaktivován"
msgstr "Váš pracovní prostor bude deaktivován"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/da-DK.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "og"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "API-navne (flertal)"
msgid "API Name (Singular)"
msgstr "API-navn (entalsform)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Udseende"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Dit arbejdsområde"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Dit arbejdsområde vil blive deaktiveret"
msgstr "Dit arbejdsområde vil blive deaktiveret"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/de-DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "und"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "API-Name (Mehrzahl)"
msgid "API Name (Singular)"
msgstr "API-Name (Einzahl)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Erscheinungsbild"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Ihr Arbeitsbereich"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Ihr Arbeitsbereich wird deaktiviert"
msgstr "Ihr Arbeitsbereich wird deaktiviert"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/el-GR.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "και"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "Όνομα API (Πληθυντικός)"
msgid "API Name (Singular)"
msgstr "Όνομα API (Ενικός)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Εμφάνιση"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Ο χώρος εργασίας σας"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Ο χώρος εργασίας σας θα απενεργοποιηθεί"
msgstr "Ο χώρος εργασίας σας θα απενεργοποιηθεί"
6 changes: 5 additions & 1 deletion packages/twenty-front/src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ msgid "and"
msgstr "and"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -220,6 +219,10 @@ msgstr "API Name (Plural)"
msgid "API Name (Singular)"
msgstr "API Name (Singular)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr "APIs"

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Appearance"
Expand Down Expand Up @@ -1992,6 +1995,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/es-ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "y"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API y Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "Nombre de la API (Plural)"
msgid "API Name (Singular)"
msgstr "Nombre de API (Singular)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Apariencia"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Tu espacio de trabajo"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Tu espacio de trabajo se desactivará"
msgstr "Tu espacio de trabajo se desactivará"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/fi-FI.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "ja"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "API-nimi (monikko)"
msgid "API Name (Singular)"
msgstr "API-nimi (yksikkö)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Ulkoasu"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhookit"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Työtilasi"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Työtilasi poistetaan käytöstä"
msgstr "Työtilasi poistetaan käytöstä"
8 changes: 6 additions & 2 deletions packages/twenty-front/src/locales/fr-FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ msgid "and"
msgstr "et"

#: src/pages/onboarding/ChooseYourPlan.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "API & Webhooks"
msgstr "API & Webhooks"

Expand All @@ -225,6 +224,10 @@ msgstr "Noms des API (Pluriel)"
msgid "API Name (Singular)"
msgstr "Nom de l'API (Singulier)"

#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "APIs"
msgstr ""

#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx
msgid "Appearance"
msgstr "Apparence"
Expand Down Expand Up @@ -1997,6 +2000,7 @@ msgid "Webhook"
msgstr "Webhook"

#: src/pages/settings/developers/SettingsDevelopers.tsx
#: src/modules/settings/hooks/useSettingsNavigationItems.tsx
msgid "Webhooks"
msgstr "Webhooks"

Expand Down Expand Up @@ -2088,4 +2092,4 @@ msgstr "Votre espace de travail"

#: src/pages/settings/SettingsBilling.tsx
msgid "Your workspace will be disabled"
msgstr "Votre espace de travail sera désactivé"
msgstr "Votre espace de travail sera désactivé"
Loading
Loading