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

Conversation

oliverqx
Copy link

/claim #10283

Copy link
Contributor

github-actions bot commented Feb 21, 2025

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against 08766d6

- RestApiWrapper -> RestPlayground
- GraphQLWrapper -> GraphQLPlayground
- APIPlayground -> PlaygroundRouter
- SettingsApiPlaygroundCoverImage -> SettingsPlaygroundCoverImage
- ApiPlaygroundSetupForm -> PlaygroundSetupForm
- stop using SubMenuTopBarContainer and create PlaygroundPage to fix padding and border radius issues
@oliverqx
Copy link
Author

oliverqx commented Feb 23, 2025

in terms of storybook testing, I've built interaction unit testing - almost like integration UI testing, but I feel like playgrounds themselves (graphiql, scalar) would be out of scope. Please let me know if I should test them

@FelixMalfait
Copy link
Member

Great @oliverqx thanks a lot!!! I'll do a full review tonight

@FelixMalfait FelixMalfait mentioned this pull request Feb 23, 2025
@FelixMalfait
Copy link
Member

Yes the code in twenty-website was ugly, we don't apply the same level of standard to twenty-website (marketing website) as we do in twenty-front.

I'm sorry I should have told you upfront but one thing I had mentioned over Discord to the other PR was that I don't think the "dropdown to select your API key" works. Because we're not able to access an API Key after it's been generated. So the best we can do is ask the person to paste the key in an input field (but a random api key as placeholder). Eventually if they generated a key in the same session we can prefill it with the apiKeyTokenFamilyState(bonus, not required!) which we use to persist it during a session. But if you refresh the page it's lost.

Would you mind also checkin the CI?

Thanks again for this great work!

@FelixMalfait
Copy link
Member

I awarded the bounty given the considerable amount of work you did. But would appreciate if you get this to the end of course! Feel free to ping me on Discord if you want to discuss other tasks in the future (username: ifelx)

- add padding bottom
- add background color
- add scroll wrapper
- add nested container. used to apply max height to vue app. otherwise, the bottom padding is not seen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants