Skip to content

fix: update token creation output#26336

Merged
peterbarnett03 merged 5 commits intomainfrom
pbarnett/update-token-creation-wording
Apr 30, 2025
Merged

fix: update token creation output#26336
peterbarnett03 merged 5 commits intomainfrom
pbarnett/update-token-creation-wording

Conversation

@peterbarnett03
Copy link
Copy Markdown
Contributor

Updates the output to more clearly identify the success of the command, the output of the command, and the importance of storing the token.

Uses ANSI for styling, so it's non-terminal specific, but requires Regex for parsing now.

Current vs New

Current Output

The current design is very nondescript, doesn't mention the importance of saving the token, and is easily lost as CLI outputs and commands grow.
image

New Output

The new design is specifically calls out success of creating a token, more cleanly identifies the token itself, and also very clearly mentions that it should be stored securely.
image

Alternatives Considered

Additional Coloring

The green could have been helpful, but I feel pollutes the UX with too much visual overload with an additional color.
image

Boxing

Additionally, tried an example with the left bars to more cleanly display results. This looks nice, but on smaller terminals it would force wrap arounds which simply would look far less clean than not at all.
image

Copy link
Copy Markdown
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

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

LGTM!

@stuartcarnie stuartcarnie self-requested a review April 28, 2025 04:43
Copy link
Copy Markdown
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

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

LGTM, but you'll have to fix the linter issue

@peterbarnett03
Copy link
Copy Markdown
Contributor Author

Lints fixed. Also, switched to using a current crate we use (owo_colors) rather than embedded ANSI for obvious best practice.

Copy link
Copy Markdown
Contributor

@praveen-influx praveen-influx left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for updating the wording.

@peterbarnett03 peterbarnett03 merged commit f6aa0c1 into main Apr 30, 2025
12 checks passed
hiltontj pushed a commit that referenced this pull request May 2, 2025
* fix: clarify token generation output for easier readibility

* fix: linter error

* fix: additional linter error

* fix: linter error on output

* fix: switch to owo_colorize
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.

4 participants