GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(website): create new playground layout by ashmitjsg · Pull Request #1628 · asyncapi/modelina

Conversation

@ashmitjsg

@ashmitjsg ashmitjsg commented Nov 22, 2023

Copy link
Copy Markdown
Contributor

Description
This is a draft PR for building a new layout of Modelina Playground. The new layout will be similar to the layout of Async API Studio. The first step will be to create a new layout and then I will be working on the logic. I have created a temporary component file NewPlayground.tsx to build the new layout. We will replace the old components with the new ones once the layout is ready.

Related issue(s)

Resolves #1346

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ashmitjsg
Initialised new playground file from old playground
ce2bc21
@ashmitjsg
ashmitjsg requested review from asyncapi-bot-eve, jonaslagoni, kennethaasan and magicmatatjahu as code owners November 22, 2023 13:37
@netlify

netlify Bot commented Nov 22, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for modelina ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/65768b6b3fed5a1f04de7bc2
😎 Deploy Preview https://deploy-preview-1628--modelina.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
ashmitjsg marked this pull request as draft November 22, 2023 13:37
github-actions[bot]
github-actions Bot reviewed Nov 22, 2023
View reviewed changes

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ashmitjsg added 2 commits November 22, 2023 20:15
@ashmitjsg
created tooltip component for sidebar
83a2b66
@ashmitjsg
added basic navigation layout
0b17766
@ashmitjsg

ashmitjsg commented Nov 24, 2023

Copy link
Copy Markdown
Contributor Author

Hi @jonaslagoni @codingmickey, I was trying to use React Split Pane for the section which will show input, output, and the output navigation. But it seems that it haven't been updated since last three years and doesn't support React v18.

I found this new react-split-pane implementation by Jeremy Grieshop which supports React v17 and above. It's also been used in the AsyncAPI Studio. Can I use this instead? The problem is that it isn't available as package so I will have to copy paste whole repo as a component as also done in the studio.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ashmitjsg added 3 commits November 25, 2023 11:26
@ashmitjsg
added code for splitpane
2b3f6ca
@ashmitjsg
added basic editor-output-explorer layout
09c4e99
@ashmitjsg
added context and functionality for opening and closing of options an…
d324177
…d output menu
@jonaslagoni

jonaslagoni commented Nov 27, 2023

Copy link
Copy Markdown
Member

@devilkiller-ag I would say no, dont use a tool that has no users 🙂 Then its better to have no split pane functionality.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg

ashmitjsg commented Nov 27, 2023

Copy link
Copy Markdown
Contributor Author

Hi @jonaslagoni, I agree with you. For now I have used the code for the split pane from Async API Studio Codebase. But if you want I can try to implement it from scratch for our playground. What's your opinion?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonaslagoni

jonaslagoni commented Nov 27, 2023

Copy link
Copy Markdown
Member

Hi @jonaslagoni, I agree with you. For now I have used the code for the split pane from Async API Studio Codebase. But if you want I can try to implement it from scratch for our playground. What's your opinion?

You can select the direction you want to take, there is no requirement here 🙂 We don't have split panel right now anyway, so it can be added later if desired 👌 Then all you need to focus on is the basic layout, making it easier to achieve.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
Merge branch 'master' into ag_dev
764ee1a
@ashmitjsg

ashmitjsg commented Nov 28, 2023

Copy link
Copy Markdown
Contributor Author

Hi @jonaslagoni, I agree with you. For now I have used the code for the split pane from Async API Studio Codebase. But if you want I can try to implement it from scratch for our playground. What's your opinion?

You can select the direction you want to take, there is no requirement here 🙂 We don't have split panel right now anyway, so it can be added later if desired 👌 Then all you need to focus on is the basic layout, making it easier to achieve.

Okay Sure, I will go with the basic layout for now 🙂

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
removed split-pane and created mobile responsive layout
6f64b35
@ashmitjsg

ashmitjsg commented Nov 30, 2023

Copy link
Copy Markdown
Contributor Author

I have added the mobile responsive layout without split-pane. Now I will add the Editor, Options, and Output UI.

jonaslagoni reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ashmitjsg added 9 commits December 3, 2023 16:13
@ashmitjsg
added basic output file navigation layout
8e9e8b3
@ashmitjsg
converted Playground Code from React Class to React Functional Component
8162175
@ashmitjsg
created playground context and integrated it with playground and content
9f7d6e8
@ashmitjsg
added all options
7d927bf
@ashmitjsg
rectified sidebar css and overall pading
f584a84
@ashmitjsg
rectified InfoModal paddings
1717d1f
@ashmitjsg
converted GeneratedModels.tsx to Functional Component from React Class
2be3393
@ashmitjsg
added generated models to output navigation
2c91a76
@ashmitjsg
added show generator code functionality
6ae7826
@ashmitjsg

ashmitjsg commented Dec 9, 2023

Copy link
Copy Markdown
Contributor Author

@jonaslagoni The work is complete! Kindly check it out.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
ashmitjsg marked this pull request as ready for review December 9, 2023 02:32
@coveralls

coveralls commented Dec 9, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 7161607198

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.516%

Totals Coverage Status
Change from base Build 7154077028: 0.0%
Covered Lines: 5600
Relevant Lines: 5901

💛 - Coveralls
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jonaslagoni
jonaslagoni requested changes Dec 9, 2023
View reviewed changes

@jonaslagoni jonaslagoni left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! Got some minor comments 🔥

Here is what I see and what I base the comments on:

  • All the views need to be aligned in height
  • The ? symbol would look better if it blends better with the black background
  • I would add more margins to the menu item, as they are too close to the panel to the right.
  • The view with the generator code and generated models, it's hard to see that generator code can be clicked
  • We should make it more easier to see which output model is being selected.
  • In the generator options view, for example if you select kotlin the panel gets scrollable 🤔 Is there a better way to show long options?

image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ashmitjsg
rectified design bugs
64e44b6
@ashmitjsg

ashmitjsg commented Dec 10, 2023

Copy link
Copy Markdown
Contributor Author

Hi @jonaslagoni,

I have incorporated all the suggestions. Kindly check it out.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
rectified design bugs
fd9af32
jonaslagoni
jonaslagoni requested changes Dec 10, 2023
View reviewed changes

@jonaslagoni jonaslagoni left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are fast @devilkiller-ag, only got very few remarks. I think this is the final changes needed, checked all the code and it looks great, only got those small points 💪 Cant wait to merge this 🔥

Think we can change the width of the sidebar menu to 50:
image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread modelina-website/src/components/contexts/PlaygroundContext.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread modelina-website/src/components/playground/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread modelina-website/src/components/playground/Sidebar.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread modelina-website/src/components/playground/options/GeneralOptions.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jonaslagoni

jonaslagoni commented Dec 10, 2023

Copy link
Copy Markdown
Member

Once we merge this I would love to offer you code ownership of the modelina-website code, let me know if you want to stick around for longer than a single PR 😉

Let me know if you have any questions about it 👍

ashmitjsg reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonaslagoni jonaslagoni changed the title feat: create new playground layout chore(website): create new playground layout Dec 11, 2023
@ashmitjsg
resolved ui bugs
ee85954
@ashmitjsg

ashmitjsg commented Dec 11, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Hi @jonaslagoni, I have made all the changes you suggested, additionally, I have changed the Tooltip color and padding to make it visible. Thanks for offering me the code ownership of the modelina-website. I would love to be able to contribute forward. I had an issue in mind that I was going to open just after this PR closes: Currently, the website code uses class components, we should update the code base to use functional components and hooks at all places. This will result in cleaner, easier-to-understand components compared to class components. For the Playground, I have updated most of the class components to functional components on which I worked. What's your view on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
Merge branch 'master' into ag_dev
c865c37
@sonarqubecloud

sonarqubecloud Bot commented Dec 11, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonaslagoni

jonaslagoni commented Dec 11, 2023

Copy link
Copy Markdown
Member

Hi @jonaslagoni, I have made all the changes you suggested, additionally, I have changed the Tooltip color and padding to make it visible

Perfect 👍

I had an issue in mind that I was going to open just after this PR closes: Currently, the website code uses class components, we should update the code base to use functional components and hooks at all places. This will result in cleaner, easier-to-understand components compared to class components. For the Playground, I have updated most of the class components to functional components on which I worked. What's your view on this?

Sounds good, feel free to create an issue for it to track it 🙂

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jonaslagoni
jonaslagoni approved these changes Dec 11, 2023
View reviewed changes

@jonaslagoni jonaslagoni left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jonaslagoni

jonaslagoni commented Dec 11, 2023

Copy link
Copy Markdown
Member

/rtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot asyncapi-bot added the ready-to-merge label Dec 11, 2023
@asyncapi-bot
asyncapi-bot merged commit f173cf7 into asyncapi:master Dec 11, 2023
@jonaslagoni

jonaslagoni commented Dec 11, 2023

Copy link
Copy Markdown
Member

@all-contributors please add @devilkiller-ag for code, design

ashmitjsg reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@allcontributors allcontributors Bot mentioned this pull request Dec 11, 2023
docs: add devilkiller-ag as a contributor for code, and design #1646
Merged
@allcontributors

allcontributors Bot commented Dec 11, 2023

Copy link
Copy Markdown
Contributor

@jonaslagoni

I've put up a pull request to add @devilkiller-ag! 🎉

ashmitjsg reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jonaslagoni jonaslagoni mentioned this pull request Dec 11, 2023
chore: add devilkiller-ag as codeowner #1647
Merged
@ashmitjsg
ashmitjsg deleted the ag_dev branch December 11, 2023 10:29
@ashmitjsg ashmitjsg mentioned this pull request Dec 11, 2023
Rewrite Class-Based React Components to Functional Components in Modelina Website #1648
Closed
@asyncapi-bot

asyncapi-bot commented Dec 13, 2023

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.10 🎉

The release is available on:

  • npm package (@latest dist-tag)
  • GitHub release

Your semantic-release bot 📦🚀

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot asyncapi-bot added the released label Dec 13, 2023
@ashmitjsg ashmitjsg mentioned this pull request Dec 17, 2023
Create a research page to have participants sign up for the research study asyncapi/website#1991
Closed
@asyncapi-bot

asyncapi-bot commented Dec 26, 2023

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.0.0-next.8 🎉

The release is available on:

  • npm package (@next dist-tag)
  • GitHub release

Your semantic-release bot 📦🚀

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot asyncapi-bot added the released on @next label Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@github-actions github-actions[bot] github-actions[bot] left review comments
@jonaslagoni jonaslagoni jonaslagoni approved these changes
@magicmatatjahu magicmatatjahu Awaiting requested review from magicmatatjahu
@kennethaasan kennethaasan Awaiting requested review from kennethaasan
@asyncapi-bot-eve asyncapi-bot-eve Awaiting requested review from asyncapi-bot-eve

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

ready-to-merge released on @next released

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Improve layout of playground

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ashmitjsg @jonaslagoni @coveralls @asyncapi-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.