open-scd icon indicating copy to clipboard operation
open-scd copied to clipboard

Error and Warning Counts on Log Icon

Open DavoodSooran opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. As a CoMPAS/OpenSCD user, I require access to a dialog box that compiles a comprehensive list of errors and warnings that could arise upon loading an SCD file. This dialog box will efficiently display all error and warning messages, enhancing understanding and facilitating resolution.

Describe the solution you'd like After loading the SCD file, several modules become active for use. In the provided image, there's a Log icon available for reviewing errors and warnings. However, there's no clear indication of the number of new messages that have been added to the log page.

image

Incorporating a numerical counter on the Log icon to display the count of new error and warning messages is a practical solution. Here's how it would function:

  1. No Error or Warning Messages: The Log icon appears in its default state, in a neutral color, indicating no pending messages or issues.

  2. Presence of Error or Warning Messages: Upon the generation of an error or warning message, a numerical count displays on top of the Log icon, representing the quantity of new messages. When this counter appears in Yellow, it signifies the existence of solely warning messages within the log dialog page. If it turns Red, it indicates the presence of error messages. Even the inclusion of a single error message among warnings causes the numerical counter to switch to red, highlighting the priority assigned to error messages.

    • Color Indicators for Message Types:

      • Yellow: Indicates the presence of solely warning messages in the log dialog page.
      • Red: Signifies the availability of error messages. Even one error message amidst warnings changes the counter to red, underscoring the priority of error messages.
    • Indicator Functionality:

      • This icon act as visual indicators, signaling whether the new messages consist of errors and/or warnings.
      • The numerical counter keeps track of the total count of new messages, offering users an immediate sense of the volume of pending issues.

This approach provides a comprehensive visual representation, allowing users to discern not only the quantity but also the types of new error and warning messages directly from the Log icon.

image image

DavoodSooran avatar Dec 08 '23 15:12 DavoodSooran

Nice story, Icons can be e.g. found here: https://fonts.google.com/icons

Sander3003 avatar Dec 08 '23 15:12 Sander3003

@Sander3003 The story is now completed.

DavoodSooran avatar Dec 08 '23 21:12 DavoodSooran

Hello there,

Thank you for opening this issue! We appreciate your interest in our project. However, it seems that this issue hasn't had any activity for a while. To ensure that our issue tracker remains organized and efficient, we occasionally review and address stale issues.

If you believe this issue is still relevant and requires attention, please provide any additional context, updates, or details that might help us understand the problem better. Feel free to continue the conversation here.

If the issue is no longer relevant, you can simply close it. If you're uncertain, you can always reopen it later.

Remember, our project thrives on community contributions, and your input matters. We're here to collaborate and improve. Thank you for being part of this journey!

github-actions[bot] avatar Feb 18 '24 19:02 github-actions[bot]