Skip to content

Conversation

@fraser-qs
Copy link

Description

This PR adds back in the colour coded borders that were present before PR392.

adds in support for missing 'critical' and 'fatal' severities

Existing:
image

Changes:
image

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

@fraser-qs fraser-qs requested a review from a team as a code owner December 30, 2025 22:17
@fraser-qs fraser-qs requested review from Gladorme and removed request for a team December 30, 2025 22:17
Signed-off-by: fraser-qs <fraser@quantum-secret.com>
@fraser-qs fraser-qs force-pushed the feature/colour_coded_log_border branch from 8ee0062 to 5af380a Compare December 30, 2025 22:25
Signed-off-by: fraser-qs <fraser@quantum-secret.com>
Signed-off-by: fraser-qs <fraser@quantum-secret.com>
Comment on lines 20 to 21
if (level.includes('critical')) return 'error';
if (level.includes('fatal')) return 'error';
Copy link
Contributor

Choose a reason for hiding this comment

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

These two probably should have its own color, usually purple. To denote a more severe case than an error. A more complete mapping can include the following values:

export const severityAbbreviations: Record<Severity, Array<string>> = {
  critical: ['critical', 'emerg', 'fatal', 'alert', 'crit'],
  error: ['error', 'err', 'eror'],
  debug: ['debug', 'dbug'],
  info: ['info', 'inf', 'information', 'notice'],
  trace: ['trace'],
  warning: ['warn', 'warning'],
  unknown: ['unknown'],
  other: [''],
};

Copy link
Author

Choose a reason for hiding this comment

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

I have updated to set a different colour for these other messages, and made use of the pattern you have provided above.

image image

Signed-off-by: fraser-qs <fraser@quantum-secret.com>
@fraser-qs fraser-qs requested a review from jgbernalp January 2, 2026 17:34
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.

2 participants