-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Improve layout of playground #1346
Comments
hi @jonaslagoni, I'm interested in this issue but have some questions before I can try it. Would it look good for 1 to create collapsing headers for the options that way we can save up the space once the user has configured their required options? For the 2nd part will have to think of some ideas or just can we shift 2nd column to make it a tab switching just above the editor? |
Might be 🤔 Just remember you quite often change between options and looking for the result i.e. how the options changed the outcome. Not sure if this hinders the user experience?
Not sure i entirely get your suggestion 🤔 Can you clarify a bit more? |
Hmm yea, that is there but somewhat similar to this where the user can if needed open the options if not this will have to think about it
When using VSCode we have different files in tabs, likewise rather than the option can we configure such a thing? Monaco editor is used if I'm not wrong, so there an option to add tabs in it. (ref) Edit: This is a bad idea of adding tabs that I suggested, considering it now from the user's experience 😆 |
Screencast.from.02-06-23.02.36.01.PM.IST.webm@jonaslagoni for the lower section we can have it like this |
@sambhavgupta0705 I dont think this improves the layout 🤔 My problems with this solution is that, 1) I can no longer edit the input and directly see the output, 2) it's hard to change the options and easily see the output. I.e. you have to scroll a lot to make it happen. I think we have to keep the input + output side by side, however in full-screen mode instead (mobile it's gonna suck regardless). Options might need to be a popup in someway, that you can open and close on the output model side 🤔 Not sure whats best here. Any ideas? |
Maybe just a simple modal just above the Generated Models title with a button? |
Might be yea @codingmickey 👍 I think we can split up this issue into two, first, we solve the problem of the editor and models being cramped together. I.e. creating a PR with that change first. After that is merged, we can focus and discuss how to integrate the options better alongside the editor and outputs. |
Sure, would like to work on this! How should we start? |
@jonaslagoni ,we can implement something like this in the option we can remove the word and would like to know you want to have generate code there or generate models?? |
Like any other contribution tbh 😄 Nothing special about this one. |
@sambhavgupta0705 that unfortunately does not solve the layout problem with input and output not being next to each other. |
I would 100% focus on that change first, and then we can figure out how to place the options |
@jonaslagoni I think I am missing something here. |
@sambhavgupta0705 the input is what you see now in the playground on the left hand side. Where you can edit what is used to generate models |
we can do something to use the whole screen,the white left and right space also?? |
Thought of the same but would lose the consistency of the website right? Of the left right spacing |
To me it does not matter about consistency as the playground should be seen as an app in similar fashion as studio is. |
okay @jonaslagoni so I think we should implement it as asyncapi.studio.com |
yea was also thinking something similar to Leetcode's layout. Having a Split view and adjusting the width along with it should do the job So a complete redesign |
@codingmickey more or less yea 😅 |
@jonaslagoni I asked the maintainers of the main website about how can we redesign it and it seems that we need to make a lot of changes in the layout as it has been fixed by a css file that it cannot go beyond the |
I think it's a oneliner fix @sambhavgupta0705
By passing |
ohhh yess it worked 😅 |
@jonaslagoni |
|
That would be nice yea, or at least options to start with 😄 |
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 ❤️ |
Still relevant |
Hi, Can I also help with this issue? |
Definitely @devilkiller-ag 👍 |
Thanks @jonaslagoni, I read the above thread. What's the current status of the work? And from where should I start? |
Have not seen any code yet, so I would assume that you are starting from scratch 🙂 Where you should start? Depends on how you like to work I guess 😄 The way I would do it was to copy the current playground and then make changes in that file by slowly introducing a new layout before changing the logic 🙂 |
Thanks @jonaslagoni. The plan seems great I will share a design wireframe and open a draft PR soon. |
One more question, By studio did you mean async api studio or the current Modelina Playground? should we keep the layout similar to Async Api Studio (https://studio.asyncapi.com/) |
As described above, https://studio.asyncapi.com/ would probably be a better layout for showing models, input and options yea 😄 |
Great, now I am ready to start 😁 |
Hi @jonaslagoni, this is the rough wireframe that I have created for Modelina Studio, after studying the components of Modelina Playground and AsyncAPI Studio. The Options and Output Navigation will be in the same position which the user can switch using the buttons on the side panel. What's your opinion on this? |
I think you can skip the outline completely, the input is only there for you to copy/paste an example to see the output fast. Not to edit inputs as Studio offers 🙂 |
Okay, I will start coding now. |
@jonaslagoni While I run
The error suggest that it can't find Do I need to generate or get these files from somewhere else? Also, I can't find the "lib" containing types folder for |
Hello, @devilkiller-ag! 👋🏼 I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand! At the moment the following comments are supported in issues:
|
@devilkiller-ag You have to build the library itself as well, before the website 🙂 |
Hi @jonaslagoni, I am sorry, I am having a little trouble setting up this. I installed all packages for the library and website using 'npm i'. Did you mean building the library with the docker file with I searched for the same error on Slack but didn't find it. Can you kindly guide me elaborately on where I am making mistakes and how I can build the library? Again sorry for asking silly questions. |
Hey @devilkiller-ag did you read this https://github.com/asyncapi/modelina/tree/master/modelina-website#how-to-run-it before starting? run My one advice would be to please go through any (Also apologies @jonaslagoni, I wasn't able to help on this issue before.. as I caught up with some other work..) |
Thanks @codingmickey Now It's running successfully. Somehow I missed that command. I'll be sure to keep your suggestions in mind. |
I have created the draft PR and will start working on it now. |
🎉 This issue has been resolved in version 2.0.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 3.0.0-next.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
It's starting to get a bit tight when it comes to how the playground layout is and I think it can be improved.
I think can focus on these two areas:
The text was updated successfully, but these errors were encountered: