-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve severity treatment in sequence view artifact
- Loading branch information
1 parent
56a694c
commit a6e3e80
Showing
7 changed files
with
122 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
monitoring/uss_qualifier/reports/templates/sequence_view/severity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% macro severity_symbol(s) %} | ||
{% if s == Severity.Low %} | ||
ℹ️ | ||
{% elif s == Severity.Medium %} | ||
⚠️ | ||
{% elif s == Severity.High %} | ||
🛑 | ||
{% elif s == Severity.Critical %} | ||
☢️ | ||
{% else %} | ||
? | ||
{% endif %} | ||
{% endmacro %} | ||
|
||
{% macro severity_class(s) %} | ||
{% if s == Severity.Low %} | ||
info_result | ||
{% else %} | ||
fail_result | ||
{% endif %} | ||
{% endmacro %} |
72 changes: 72 additions & 0 deletions
72
monitoring/uss_qualifier/reports/templates/sequence_view/style.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<style> | ||
body { | ||
margin: 0; | ||
color: #24292f; | ||
background-color: #ffffff; | ||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; | ||
font-size: 16px; | ||
line-height: 1.5; | ||
word-wrap: break-word; | ||
} | ||
table { | ||
border-spacing: 0; | ||
border-collapse: collapse; | ||
width: max-content; | ||
max-width: 100%; | ||
overflow: auto; | ||
} | ||
tr { | ||
border-top: 1px solid hsla(210,18%,87%,1); | ||
} | ||
table tr:nth-child(2n) { | ||
background-color: #f6f8fa; | ||
} | ||
td { | ||
padding: 6px 6px; | ||
vertical-align: top; | ||
border: 1px solid #d0d7de; | ||
} | ||
th { | ||
padding: 6px 6px; | ||
text-align: left; | ||
background-color: rgb(230, 230, 230); | ||
border: 1px solid #d0d7de; | ||
height: 40px; | ||
} | ||
a { | ||
background-color: transparent; | ||
color: #0969da; | ||
text-decoration: none; | ||
} | ||
h2 { | ||
margin-block-end: 0.1em; | ||
} | ||
p { | ||
margin-top: 0.1em; | ||
margin-bottom: 0.1em; | ||
} | ||
.sticky_cell_value { | ||
position: sticky; | ||
top: 0px; // 40px | ||
z-index: 0; | ||
} | ||
.pass_result { | ||
background-color: rgb(192, 255, 192); | ||
} | ||
.fail_result { | ||
background-color: rgb(255, 192, 192); | ||
} | ||
.info_result { | ||
background-color: rgb(255, 255, 192); | ||
} | ||
.not_tested { | ||
background-color: rgb(192, 192, 192); | ||
} | ||
.skipped_explanation { | ||
font-style: italic; | ||
} | ||
.failed_check_summary { | ||
font-style: italic; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters