-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Can playground be removed? #752
Comments
it is there for local development purposes, so you can quickly check the component in action |
Do you ever check a single component or is it just to see the full rendering? |
it is for checking full rendering on local, this is why with each new feature added we add it also the a "test" asyncapi file we have there. |
Is that not what the e2e tests are for? I find it really strange to have an app inside a library ONLY for testing, when the same thing is done in the e2e tests 😄 |
it is not the same. automated testing is a different thing than going to see an actual playground, seeing the component in action:
when you develop https://github.com/asyncapi/EDAVisualiser, you only write tests? don't you manually check how your new stuff behaves? |
test do not show library used in action, if it is still usable after a PR what is the point of having examples in https://github.com/asyncapi/EDAVisualiser and pushing them to GH pages? |
No, but if you manually have to clone PR, go to playground, build everything and run it, and then see it in action. Then you might as well do clone PR, build the library, go to html documents and open. And then remove an entire app from the repo that you no longer have to maintain 😄
I am only pushing the react example, the rest are for enabling users to see how to integrate with the library in different cases. Thats not what the playground is about? Ahhhhh, you deploy it here: https://asyncapi.github.io/asyncapi-react/ Why didnt you say that, that is what it's used for and not just local development 😆 |
It's not like I always look there unless there is a specific reason, and you did not say it either that it was deployed on each commit 😆 |
I'd like to reopen this issue. It's not true that we need playground to try the component. We just need a dummy React app that would let us feed the React component with any AsyncAPI file we decide during development. The code editor, the configuration tab, and definitely https://asyncapi.github.io/asyncapi-react/ doesn't need to exist. If someone wants to use the React component, that's what Studio is for. If we want to showcase it with different examples, a simple Examples page like Jonas did with EDAVisualiser should be more than enough IMHO. |
sure, but just curious, what is the point of removing something that is already there and working?
no, it is not. Studio is just one of consumers, showing complex next.js use case for the component in a complex app. In HTML template we show how it can be used as website generated in CI. Playground is super simple client side editor, perfect example. If you look into Actually we had few requests in the past to have playground pushed to npm:
|
Maintenance burden (especially the deployment issues that may appear, as Jonas experienced recently). Also, to remove confusion.
I'm sorry but Studio is currently not more than just this editor. How is this not the same? Also, in the plans for Studio, there isn't an intention to remove the "code editor" view. Studio is deployed and ready to use and we can make its "editor view" a separate component and push it to npm if needed but don't know why you would want to have the playground in the React component codebase. In the #698 issue, the person is actually looking to include Studio editor, not the one here. They just thought the playground here is the editor in Studio, and that's precisely the confusion I want to avoid.
Absolutely, let's do it but let's push the one that we're maintaining on Studio instead. |
What maintainance burden? There are only bumps needed. And the recent change from Jonas us just few lines of code.
what confusion do you mean? readme explains what it is.
but plans are different, so we should not only think about current state. and it is not just an editor, it has many additional features like for example code generation. It is a complex editor, when compared to playground.
would be nice, would address some of the needs from users
It is not part of code base, separate project in monorepo. When we have react component split into multiple ones with nice components gallery that users can go through + studio having editor as component - then yeah, let's remove playground But now, seeing it requires almost 0 work, I don't see the point. |
There is some more serious issue with the Playground. I solved all compilation related issues in #767 but there are runtime issues. I managed to narrow down that it stopped working with: #746
I checked React version and other stuff they proposed in https://legacy.reactjs.org/docs/error-boundaries.html as fix. These errors are not helpful 😞
yeah, my argument about no maintenance burden is no longer valid. Spend few hours on fixing it and did not find a solution. @jonaslagoni Did you create the initial ticket because you knew playground is broken, and you had no fix for it? this initial info would help with discussion |
nevermind 😄 just tried one small fix and it worked, as simple as
worth to notice that it is react version issue that we would also encounter when we would have a plain react example, not as sophisticated as playground |
@derberg usually this error pops up when I use npm link. Did you use this to test the local react components? |
I've added it to |
btw, in the end the fix had to be:
@jonaslagoni @fmvilas so, playground works atm. Imho better to close discussion for now, as playground is harmful atm. |
@derberg do you mean harmless? 😄 |
close 😃 was suppose to be |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
closing as playground works at the moment and there is no consensus to remove it - and there are many other much more critical issues 😅 feel free to reopen if you think it is super important issue to tackle |
Description
I have a hard time figuring out why we have the playground in this library.
Can it be removed or is there reason to keep it? 🤔
The text was updated successfully, but these errors were encountered: