Skip to content

Implement DiagnosticBadge Icons in Terminal #409

Description

@codeZe-us

To improve the visual scannability of terminal output, error severities and diagnostic categories should be accompanied by distinct, recognizable icons. The DiagnosticBadge component will map diagnostic metadata to specific Unicode symbols or custom colored blocks, providing immediate visual cues to the user regarding the nature of the message.

Implementation guidelines

  • Define a mapping between diagnostic categories/severities (e.g., Error, Warning, Info, Success) and their corresponding Unicode icons.
  • Create a formatting function or UI component that prepends these badges to diagnostic messages with appropriate ANSI coloring.
  • Ensure fallback text or safe standard ASCII characters are used if the terminal environment does not support complex emojis or ligatures.

Files location

apps/cli/src/ui/badges.rs

Expected result

A visually enhanced terminal experience that uses intuitive iconography to help users instantly identify the nature and severity of diagnostic messages.

Please make sure to use the PR template when submitting your pull request.

Join the contributor Telegram group and ask any questions: https://t.me/+sII7WPhll2liMGNk

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions