Skip to content

Improve CLI UI and UX #872

Closed
Closed

Description

@fmvilas

Reason/Context

The current CLI is great but lacks some consistency and quality in how we handle user errors and mistakes. On top of that, we could be doing a better job in making it look nicer, although that's secondary IMHO.

A CLI with a great user experience should help the users navigate it easily, recover from bad states (errors/mistakes), and move forward after a command has been executed. Especifically, when it comes to error messages, it always comes to my mind this image:

We have a bunch of this ☝️ We should instead aim for something like this:

This article is really good in case you're interested: https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f

Description

So, what are the tasks to do here? I just came up with a few ones but feel free to suggest adding others:

  • Improving error messages
  • Improving the --help command listing
  • Review all commands to see if they're consistent with the CLI structure (this may cause a breaking change)
  • Enhance the visual design of different elements like success messages, info messages, and error messages.

Activity

  1. added
    enhancement
    on Oct 30, 2023
  2. Shurtu-gal commented on Nov 1, 2023

    @Shurtu-gal
    Collaborator

    @fmvilas Adding this issue to link a previous discussion also.
    #551

  3. added
    bounty
    level/medium
    bounty/2023-Q4
    on Nov 6, 2023
  4. Shurtu-gal commented on Nov 7, 2023

    @Shurtu-gal
    Collaborator

    @fmvilas Would love to work on this too.

  5. sambhavgupta0705 commented on Nov 7, 2023

    @sambhavgupta0705
    Member

    @fmvilas I would like to work on this one

  6. aeworxet commented on Nov 7, 2023

    @aeworxet
    Contributor

    Bounty Issue's End Of Life (EOL): 2024-02-29 23:59:59 UTC-12:00

  7. Mayaleeeee commented on Nov 7, 2023

    @Mayaleeeee
    Member

    Hello @fmvilas
    I would love to work on this issue.

    Thank you.

  8. fmvilas commented on Nov 7, 2023

    @fmvilas
    ContributorAuthor

    Since this is purely a design task (no code required), I'm assigning this to @Mayaleeeee. That said, we'll want to make it a reality down the track. As an outcome of this issue, Maya will come up with a list of other issues for implementation. Most likely good first issues. I count on you for those, @sambhavgupta0705 and @Shurtu-gal 🙏

  9. aeworxet commented on Nov 7, 2023

    @aeworxet
    Contributor

    Bounty Issue's Timeline

    Complexity Level Assignment date (by GitHub) Start date (by BP rules) End date (by BP rules) Draft PR submission Final PR submission Final PR merge
    Medium 2023-11-07 2023-11-13 2023-12-22 2023-11-24 2023-12-08 2023-12-22
    Please note that the dates given represent deadlines, not specific dates, so if the goal is reached sooner, it's better.
  10. Shurtu-gal commented on Nov 7, 2023

    @Shurtu-gal
    Collaborator

    Since this is purely a design task (no code required), I'm assigning this to @Mayaleeeee. That said, we'll want to make it a reality down the track. As an outcome of this issue, Maya will come up with a list of other issues for implementation. Most likely good first issues. I count on you for those, @sambhavgupta0705 and @Shurtu-gal 🙏

    Absolutely. Would be happy to work on them. I guess this can also be included in the v1 release tasks when @Mayaleeeee is done with it.

  11. Mayaleeeee commented on Nov 7, 2023

    @Mayaleeeee
    Member

    Since this is purely a design task (no code required), I'm assigning this to @Mayaleeeee. That said, we'll want to make it a reality down the track. As an outcome of this issue, Maya will come up with a list of other issues for implementation. Most likely good first issues. I count on you for those, @sambhavgupta0705 and @Shurtu-gal 🙏

    Thanks, @fmvilas

  12. fmvilas commented on Nov 23, 2023

    @fmvilas
    ContributorAuthor

    I've been told every issue on the Bounty program needs to have a draft PR. Since this is a UI and UX task (at least the part tied to the Bounty program), @Mayaleeeee, you should create a Figma file and share it here. You can create in on the AsyncAPI workspace in Figma. Let me know if you need more permissions to do it.

  13. 20 remaining items

  14. Shurtu-gal commented on Jan 17, 2024

    @Shurtu-gal
    Collaborator

    image

    Just a suggestion @Mayaleeeee. Do you think these can be aligned?

    Also are emojis really needed, as it can become a pain if the output is piped into some other command.

    Any thoughts @fmvilas?

  15. fmvilas commented on Jan 17, 2024

    @fmvilas
    ContributorAuthor

    Yeah, agree that there are too many emojis 😅 Making it hard to read the messages themselves. I think @Mayaleeeee should come up with a different design but using the same structure IMHO. In any case, this is not part of the issue itself. I think Maya did a great job analyzing the UX and came up with some design guidelines. Colors, emojis yes or no, and things like that can be worked later on too, most probably as part of a CLI design system.

    I won't worry about piping to other commands as these are the kind of messages that are meant for the user to see in the screen. There are ways to detect if a command is being piped or if there isn't any use behind (like in a CI/CD). We can simplify this output for this cases.

  16. fmvilas commented on Jan 17, 2024

    @fmvilas
    ContributorAuthor

    @aeworxet bounty completed 💪 you can go ahead and instruct @Mayaleeeee how to get the payment.

  17. aeworxet commented on Jan 18, 2024

    @aeworxet
    Contributor

    Design part of the

    Bounty Issue Completed 🎉

    Please go to the AsyncAPI's OpenCollective page and submit an invoice for USD 200.00 with the subject Bounty cli#872, tag bounty.

  18. removed
    bounty/2023-Q4
    on Jan 18, 2024
  19. Amzani commented on Mar 7, 2024

    @Amzani
    Collaborator

    I love this initiative, thanks @Mayaleeeee for this amazing work, I suggest taking the next iteration under the umbrella of the new DX working group
    I'll split different tasks in #1214

  20. Mayaleeeee commented on Mar 7, 2024

    @Mayaleeeee
    Member

    I love this initiative, thanks @Mayaleeeee for this amazing work, I suggest taking the next iteration under the umbrella of the new DX working group
    I'll split different tasks in #1214

    Thank you, @Amzani. I owe it all to @fmvilas for his guidance and support. 🙌🙌🙌

  21. Amzani commented on May 8, 2024

    @Amzani
    Collaborator

    Implementation part is completed in #1214

  22. moved this from Backlog to Done in CLI - Kanbanon May 8, 2024
  23. added
    bounty/2023-Q4
    on May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bountybounty/2023-Q4enhancementlevel/medium

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions