Skip to content

feature: Enhance task logs with syntax highlighting and color-coded severity levels #6419

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

Open
BeArchiTek opened this issue May 6, 2025 · 0 comments
Labels
type/feature New feature or request

Comments

@BeArchiTek
Copy link
Contributor

Component

Frontend UI

Describe the Feature Request

Currently, task logs in the UI are displayed in plain black and white text in the table view. This makes it difficult to quickly scan logs for important information or identify specific data types like UUIDs and strings.

The current Logs component in infrahub/frontend/app/src/entities/tasks/ui/logs.tsx already has severity badges but could be extended to include syntax highlighting for the message content.

Describe the Use Case

Enhance the task logs display with:

  1. Syntax highlighting for different data types:

    • UUIDs in a distinct color
    • Strings in another color
    • JSON/dictionary data with structured highlighting
    • Timestamps in a subtle, distinguishable format
      [...]
  2. Optional collapsible JSON/dictionary data for better readability

  3. Visual separation between log entries for improved scanning

Improved readability and scanability of logs

  • Faster identification of errors and warnings
  • Better visual hierarchy of information
  • Consistency with local development experience, where logs are already color-coded
  • Reduced cognitive load when debugging complex operations

Additional Information

When running generators locally, the logger already applies colors to different data types, making the logs much more readable. Bringing this experience to the UI would create consistency between local development and the web interface.

@BeArchiTek BeArchiTek added the type/feature New feature or request label May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant