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: adding CLI tool on the website (449) #450

Merged

Conversation

boyney123
Copy link
Contributor

@boyney123 boyney123 commented Nov 2, 2021

Description

Here is a solution for #449, which adds the CLI within our tools, I believe it can help new users find the CLI and start using it.

@netlify
Copy link

netlify bot commented Nov 2, 2021

✔️ Deploy Preview for asyncapi-website ready!
Built without sensitive environment variables

🔨 Explore the source changes: 5bd4284

🔍 Inspect the deploy log: https://app.netlify.com/sites/asyncapi-website/deploys/61a4a2fbca0b8e000711a12e

😎 Browse the preview: https://deploy-preview-450--asyncapi-website.netlify.app

@boyney123
Copy link
Contributor Author

What do you think @fmvilas @derberg , I think the new page could help? Or maybe the CLI is already on the website that I'm missing?

@alequetzalli if this goes ahead, will need some help with the wording and stuff 🙏, I kinda put some stuff together, but no idea really if things make sense lol

@derberg
Copy link
Member

derberg commented Nov 2, 2021

I'm not sure how asyncapi new works, but maybe it could be added there into code snippet, as a usage example, as it is with the generator?

@derberg
Copy link
Member

derberg commented Nov 2, 2021

@boyney123 I think you did not provide a correct link in the description

@boyney123
Copy link
Contributor Author

@boyney123 I think you did not provide a correct link in the description

ah, thanks fixed that

@boyney123 boyney123 changed the title feat: adding CLI tool on the website (448) feat: adding CLI tool on the website (449) Nov 2, 2021
@boyney123
Copy link
Contributor Author

I'm not sure how asyncapi new works, but maybe it could be added there into code snippet, as a usage example, as it is with the generator?

image

Hey @derberg do you mean here on the screenshot? Not 100% sure what you mean, you want to show an example of asyncapi new?

@derberg
Copy link
Member

derberg commented Nov 2, 2021

yes exactly, there where you pointed and yes, show example usage of asyncapi that anyone can copy and paste, like it is with Generator view in the website. I think only asyncapi new is feasible for such a use, as far as I remember from Fran's demo on its use case

pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
Copy link
Member

@quetzalliwrites quetzalliwrites left a comment

Choose a reason for hiding this comment

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

Just a few fixes to do, but I really liked what you wrote 😀👍🏽✨✨✨

boyney123 and others added 5 commits November 3, 2021 09:45
Co-authored-by: Alejandra Quetzalli  <[email protected]>
Co-authored-by: Alejandra Quetzalli  <[email protected]>
Co-authored-by: Alejandra Quetzalli  <[email protected]>
Co-authored-by: Alejandra Quetzalli  <[email protected]>
Co-authored-by: Alejandra Quetzalli  <[email protected]>
@boyney123
Copy link
Contributor Author

Thanks for the review @alequetzalli 👍

@boyney123
Copy link
Contributor Author

@derberg thanks for the review and suggestion, I added some examples on the page, let me know what you think

@derberg
Copy link
Member

derberg commented Nov 3, 2021

@boyney123 looks awesome, the only remark comes from my old times when I was a tech writer 😄 I think it should be AsyncAPI Studio not AsyncAPI studio and that is it from my side, once you fix it I will approve

pages/tools/cli.js Outdated Show resolved Hide resolved
pages/tools/cli.js Outdated Show resolved Hide resolved
@boyney123
Copy link
Contributor Author

Not sure if I'm missing something but GitHub telling me that there are changes requested, but I think I added your changes @fmvilas

image

Think this PR is ready for a new review 🙏 @fmvilas @magicmatatjahu

@magicmatatjahu
Copy link
Member

Not sure if I'm missing something but GitHub telling me that there are changes requested, but I think I added your changes

If someone reject PR in the past, have to accept it after changes, reject isn't missed in this case :)

magicmatatjahu
magicmatatjahu previously approved these changes Nov 22, 2021
@derberg
Copy link
Member

derberg commented Nov 22, 2021

I don't think we should merge before asyncapi/cli#130 is fixed, otherwise we will promote command that is not really copy/paste. Other solution, just have asyncapi new and asyncapi help

@fmvilas
Copy link
Member

fmvilas commented Nov 22, 2021

Yeah, agree with @derberg. One thing you can folks do is to remove the start studio example and leave only asyncapi new as it already asks you if you want to open Studio 🤷‍♂️ Or just wait for the other issue to get fixed, as you prefer.

@boyney123
Copy link
Contributor Author

Cool thanks @derberg @fmvilas yeah OK let's get asyncapi/cli#130 fixed first 👍

@derberg
Copy link
Member

derberg commented Nov 25, 2021

@boyney123 @fmvilas I know asyncapi/cli#130 is merged but to be honest it is not yet fully solved, I mean the impression that users will have when trying to run npm start studio. We fallback to local file, cool, but most users will not have it when running CLI basing on examples on the website, and they will get a not very nice error that is not yet solved, which is that context is missing instead of nice error with explanation of what options user have to provide asyncapi file.

I'm not sure it is worth blocking this PR before all these issues are solved, I suggest we just remove asyncapi start studio and only keep asyncapi new and asyncapi help and that is it. Thoughts?

@boyney123
Copy link
Contributor Author

@derberg thinking about removing it from the list of examples, but maybe we keep it on the section (highlighted in image below)?.

Or you think we should remove that too, and replace it? If so any ideas?

image

@derberg
Copy link
Member

derberg commented Nov 26, 2021

@boyney123 perfect solution imho 🚀

@boyney123
Copy link
Contributor Author

OK cool, I just pushed up the changes 👍

derberg
derberg previously approved these changes Nov 26, 2021
Copy link
Member

@magicmatatjahu magicmatatjahu left a comment

Choose a reason for hiding this comment

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

Do we really need second link to Github repo (see screenshot)?

image

I also think that Features and description for it should be centered :)

Also, please update metadata for new page, because I see this, when I go to /tools/cli page :)

image

@derberg
Copy link
Member

derberg commented Nov 29, 2021

@magicmatatjahu

Do we really need second link to Github repo

it is consistent with Generator view and I think it is ok, kinda makes sense

I also think that Features and description for it should be centered

I like it is on the right as it is consistent with other tools view, even if on others it is caused by images on the right

Also, please update metadata for new page, because I see this, when I go to /tools/cli page :)

you sir have 🦅 👀

@magicmatatjahu
Copy link
Member

it is consistent with Generator view and I think it is ok, kinda makes sense

We can always remove that button also in Generator view :)

I like it is on the right as it is consistent with other tools view, even if on others it is caused by images on the right

It can stay, but yeah, without any content on right it's not a "nice" to see.

you sir have 🦅 👀

I don't know if I should thank you, because I smell trolling 😅

@derberg
Copy link
Member

derberg commented Nov 29, 2021

@magicmatatjahu

I don't know if I should thank you, because I smell trolling 😅

Your nose is playing tricks on you on Monday 😄
I really do think you did greate there, nobody else spotted 🤷🏼‍♂️

@boyney123
Copy link
Contributor Author

I also think that Features and descriptions for it should be centered :)

Now looking at it again, yeah agree mate, thanks! Changed think it looks better. @derberg thoughts? I know you prefer the other way, but after changing I think it looks slightly better 🤔 ?

Also, please update metadata for new page, because I see this, when I go to /tools/cli page :)

Ah, nice find! Updated!

Do we really need second link to the Github repo

Yeah, it does look quite odd 🤔 , but as @derberg I only did it to be consistent with other pages, happy to make the changes if we want to. Maybe another PR if we have issues with it?


Also found a few layout issues on mobile + tablet, they have also been fixed.

Copy link
Member

@magicmatatjahu magicmatatjahu left a comment

Choose a reason for hiding this comment

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

LGMT! @derberg What do you think about this centered content? Do you accept that?

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@derberg
Copy link
Member

derberg commented Nov 29, 2021

I think we still need @fmvilas to accept as his previous reject is blocking merge

Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

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

👏 :shipit:

@magicmatatjahu magicmatatjahu merged commit b7565d8 into asyncapi:master Nov 29, 2021
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.

5 participants