From 61d58b1b686eb691f16757abc57f48dad37cbd40 Mon Sep 17 00:00:00 2001 From: skyanth Date: Thu, 8 Jun 2017 16:01:05 +0200 Subject: [PATCH] Pie chart colours, status prettification --- xml/RELEASE_NOTES.md | 13 +++ xml/xslt/auto.xslt | 211 ++++++++++++++++++++++++++++++--------- xml/xslt/findings.xslt | 63 +++++++----- xml/xslt/styles_rep.xslt | 8 +- 4 files changed, 219 insertions(+), 76 deletions(-) diff --git a/xml/RELEASE_NOTES.md b/xml/RELEASE_NOTES.md index a6424a4..e06c2ff 100644 --- a/xml/RELEASE_NOTES.md +++ b/xml/RELEASE_NOTES.md @@ -1,6 +1,19 @@ RELEASE NOTES ============= +June 8th ('I'm seeing the world in shades of orange' edition) +-------- + +### Pie Chart Improvements + +Pie charts can now be filtered on finding `@status`, just like Summary and Recommendation tables. Example: `` + +Also, for `status` and `threatLevel` pie charts, colours are now tied to severity, so you go from angry orange to reassuring green (in case of status) or from panicky orange to puzzled grey (in case of threatLevel -- grey is 'threatLevel Unknown' :) + +### Prettier finding retest status + +For findings, the not-at-all-tacky status colours from the previous update have been replaced to the still-not-tacky corresponding pie chart colours, and the status is now properly capitalized throughout the report. + June 7th -------- diff --git a/xml/xslt/auto.xslt b/xml/xslt/auto.xslt index a40efb7..c66c9da 100644 --- a/xml/xslt/auto.xslt +++ b/xml/xslt/auto.xslt @@ -3,7 +3,7 @@ xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:math="http://www.w3.org/2005/xpath-functions/math" - extension-element-prefixes="math"> + xmlns:my="http://www.radical.sexy" extension-element-prefixes="math my"> @@ -118,6 +118,8 @@ + (number(findingThreatLevel = 'Low') * 6) + (number(findingThreatLevel = 'Unknown') * 3) + (number(findingThreatLevel = 'N/A') * 1)"/> + @@ -132,7 +134,7 @@ summaryTableThreatLevel + select="$findingThreatLevelClean"/> @@ -218,7 +220,9 @@ - + + + @@ -309,7 +313,9 @@ - + + + @@ -536,6 +542,7 @@ + @@ -551,22 +558,60 @@ - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -593,6 +638,24 @@ + + + + + + + + + + + + + @@ -663,6 +726,16 @@ + + + + @@ -672,9 +745,9 @@ stroke-linejoin="round" height="11" width="11"> - - - + + @@ -684,7 +757,7 @@ - + ( @@ -692,7 +765,7 @@ summaryTableThreatLevel + select="$pieEntryLabelClean"/> @@ -752,9 +825,9 @@ - - - + + @@ -855,41 +928,81 @@ + - #FF5C00 - #FE9920 - #D9D375 - #B9A44C - #BEC5AD - #7CA982 - #566E3D - #5B5F97 - #C200FB - #A9E5BB - #98C1D9 - #5B5F97 - burlywood - cornflowerblue - cornsilk - black + + + #CC4900 + #FF5C00 + #FE9920 + #ffbf7f + #ffed7f + #FFFFFF + #CCCCCC + + #CC4900 + #FF5C00 + #FE9920 + #e5d572 + + + + + #D9D375 + #B9A44C + #BEC5AD + #7CA982 + #566E3D + #5B5F97 + #C200FB + #A9E5BB + #98C1D9 + #5B5F97 + burlywood + cornflowerblue + cornsilk + black + + - + - - Generated average rate is based on 'juniorpentester' and 'mediorpentester' roles, which cannot be found in client_info.xml + + Generated average rate is based on + 'juniorpentester' and 'mediorpentester' roles, which cannot be found in + client_info.xml - - + + - +   - - +   + + + + + + + + + + + + + + + diff --git a/xml/xslt/findings.xslt b/xml/xslt/findings.xslt index 6e23735..512c6b7 100644 --- a/xml/xslt/findings.xslt +++ b/xml/xslt/findings.xslt @@ -1,44 +1,61 @@ - + + + + - 2 + + 2 + Vulnerability ID: - - - Retest status: - - - - - - - - - - - - - - - + + + Retest status: + + + + + + + + + + + + + + + + + + + + + - + Vulnerability type: @@ -60,7 +77,7 @@ - + diff --git a/xml/xslt/styles_rep.xslt b/xml/xslt/styles_rep.xslt index f651c41..cc10dde 100644 --- a/xml/xslt/styles_rep.xslt +++ b/xml/xslt/styles_rep.xslt @@ -80,13 +80,13 @@ - red + #CC4900 - green + #b7aa5b - - orange + + #FE9920