-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
CLI new UI/UX implementation #1214
Comments
Great @Shurtu-gal, |
@Amzani I believe we can take it as a reference, and build our own design system to not face problems down the line. Some reference https://codecryrepeat.hashnode.dev/learn-how-to-create-a-beautiful-cli-application-with-the-oclif-and-clackprompts |
@Shurtu-gal I see that we can just use |
Bounty Issue's service commentText labels: @asyncapi/bounty_team |
@utnim2 @Shurtu-gal already started to work on the foundations, I think once he finish you can be part of it, as we need to implement DX in remaining commands. |
@Amzani Please assign @Shurtu-gal and do not disperse the assignment, as unlike usual GitHub issues, the Bounty Issue can be worked on by only one person. |
Also |
The warning/errors that you mention are coming from spectral and our custom ruleset @smoya you confirm ?
We can update the rulesets to inject the links, or do some magic with the parser, @smoya could have a better idea. |
Validation of v3 is done via some of the rules in https://github.com/asyncapi/parser-js/blob/58ae9387dd3d717af05debf8416deb1cac65bfd9/src/ruleset/ruleset.ts (those that are not filtered to apply exclusively to Spec v2) and https://github.com/asyncapi/parser-js/blob/58ae9387dd3d717af05debf8416deb1cac65bfd9/src/ruleset/v3/ruleset.ts, which are exclusive to Spec v3.
Not trivial at all. We would need to either modify each of the functions that validate to understand the errors and match with some kind of dictionary of links/solutions, or rather parse the final output with some regex or similar and match with link/solutions. ATM, I can't think on a really easy to do stuff. For example, the rule that validates via JSON Schema is just one function, but under the hood uses a JSON Schema validator tool we don't control, so we only get an error message and a path to the error. |
Bounty Issue's Timeline
Please note that the dates given represent deadlines, not specific dates, so if the goal is reached sooner, it's better.Keep in mind the responsibility for violations of the Timeline. |
Hi @Amzani, I would like to work on the issues mentioned above. Can you please assign them to me? (If @Shurtu-gal is not working on them) |
I had an issue while testing the CLI, whenever I change any code in |
@helios2003, the above issues are atomic tasks of this Bounty Issue which is already assigned to @Shurtu-gal, and he IS working on them. |
Oh okay, since the issues were opened individually I thought they were open for other contributors as well. Thanks for the clarification @aeworxet |
@helios2003 Could you be a bit more specific about this issue? Thanks :) |
Sure @peter-rr , so the issue I am experiencing is as follows: |
Hey @helios2003 are you using the |
Yes @Shurtu-gal |
Could you share the link to your branch where the changed code resides? Would be easier to get to the root from there. |
Hey @Shurtu-gal, this is the link to the branch https://github.com/helios2003/cli/tree/check-error. I made a few trivial changes to the prompts (for demonstration purposes) and even after following the steps I mentioned above, the changed prompts weren't visible on screen. Can you please check if you can reproduce the same error on your side? |
@helios2003, sadly I couldn't reproduce it. It's working perfectly fine as can be seen in the picture below. Are you following the requisite steps?
|
@Amzani all the commands have been migrated for which designs were provided. |
@Shurtu-gal, I followed the required steps in my originally cloned repo, but the issue persisted. So, I decided to clone the project into a new path, and after setting it up, the problem disappeared, and it worked as expected. I suspect it may have been due to corruption along the particular path in my filesystem. Thanks a lot for the help, and my apologies for any inconvenience caused, as it turned out to be a local issue from my side. |
@Mayaleeeee could you please provide the designs for the rest of the commands as well. |
@Shurtu-gal @Amzani |
@aeworxet yes, that was the initial idea to bootstrap the new DX direction and apply to the rest of commands. |
@Amzani
|
Ok @aeworxet let's close it and consider it done. |
Bounty Issue Completed 🎉@Shurtu-gal, please go to the AsyncAPI page on Open Collective and submit an invoice for |
Problem
After #872 completion, we now have a visual direction of what needs to be implemented in the CLI.
Scope
The text was updated successfully, but these errors were encountered: