-
Notifications
You must be signed in to change notification settings - Fork 450
reporting: add defcon lozenges for relative & absolute scores #1216
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ce82cf6
add defcon lozenges for relative & absolute scores
leondz e7879eb
add absolute comments; separate absolute & relative rows; aggregate d…
leondz 88c0983
clarify variable naming
leondz 9771485
formating fixes
leondz 68b878e
Merge branch 'main' into reporting/defcon_buttons
leondz 1bb7fa1
update absolute score dc:3 descr
leondz ae1a87a
merge main
leondz c4b3f3b
flesh out reporting doc, include defcon descr
leondz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
<h4 class="defcon{{severity}}" title="{{detector_description}}">detector: {{ detector_name }} {{ detector_score }}</h4> | ||
{%if detector_score != "100.0%"%} | ||
{%endif%} | ||
<h4 class="defcon{{overall_severity}}" title="{{detector_descr}}"> | ||
<p class="left">detector: {{ detector_name }}</p> | ||
<span class="defcon{{overall_severity}} dc" title="overall rating; 1=worst 5=best">DC:{{overall_severity}}</span> | ||
</h4> | ||
<div class="detector score"> | ||
<p class="left"><span>absolute score:</span> <b class="defcon{{absolute_defcon}}">{{ absolute_score }} ({{absolute_comment}})</b></p> | ||
<span class="defcon{{absolute_defcon}} dc" title="rating; 1=worst 5=best">DC:{{absolute_defcon}}</span> | ||
</div> | ||
{%if zscore != "n/a"%} | ||
<p class="detector zscore">Z-score / comparison to other models: <b class="defcon{{zscore_defcon}}">{{zscore}} ({{zscore_comment}})</b></p> | ||
<div class="detector score"> | ||
<p class="left"><span>relative score (Z):</span> <b class="defcon{{zscore_defcon}}">{{zscore}} ({{zscore_comment}})</b></p> | ||
<span class="defcon{{zscore_defcon}} dc" title="rating; 1=worst 5=best">DC:{{zscore_defcon}}</span> | ||
</div> | ||
{%else%} | ||
<p class="detector zscore">Z-score unavailable, calibration not performed</p> | ||
<div class="detector score"> | ||
<p class="left"><span>relative score (Z):</span> unavailable, calibration not present for this probe:detector combination</p> | ||
<span class="dc" title="DEFCON rating; 1=worst 5=best">n/a</span> | ||
</div> | ||
{%endif%} |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
<h3 class="defcon{{severity}}" title="{{plugin_descr}}">probe: {{ plugin_name }} {{ plugin_score }}</h3> | ||
<h3 class="defcon{{severity}}" title="{{plugin_descr}}">probe: {{ plugin_name }} - {{ plugin_score }}</h3> |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.