From ee178c2305e9bd8c56a2c94ea15d2cae544aae28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Mart=C3=ADn?= Date: Fri, 24 May 2024 15:05:51 +0200 Subject: [PATCH] feat(dashboard): add more fields to dashboard overview component (#4084) --- dashboard/pages/overview.py | 48 ++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/dashboard/pages/overview.py b/dashboard/pages/overview.py index 89a7be9213..8a97287d9e 100644 --- a/dashboard/pages/overview.py +++ b/dashboard/pages/overview.py @@ -1533,7 +1533,7 @@ def generate_table(data, index, color_mapping_severity, color_mapping_status): [ html.P( html.Strong( - "Resource uid: ", + "ResourceUid: ", style={ "margin-right": "5px" }, @@ -1553,7 +1553,7 @@ def generate_table(data, index, color_mapping_severity, color_mapping_status): [ html.P( html.Strong( - "Finding uid: ", + "FindingUid: ", style={ "margin-right": "5px" }, @@ -1573,7 +1573,7 @@ def generate_table(data, index, color_mapping_severity, color_mapping_status): [ html.P( html.Strong( - "Check id: ", + "CheckId: ", style={ "margin-right": "5px" }, @@ -1628,6 +1628,48 @@ def generate_table(data, index, color_mapping_severity, color_mapping_status): ], style={"display": "flex"}, ), + html.Div( + [ + html.P( + html.Strong( + "StatusExtended: ", + style={ + "margin-right": "5px" + }, + ) + ), + html.P( + str( + data.get( + "STATUS_EXTENDED", + "", + ) + ) + ), + ], + style={"display": "flex"}, + ), + html.Div( + [ + html.P( + html.Strong( + "Risk: ", + style={ + "margin-right": "5px" + }, + ) + ), + html.P( + str( + data.get( + "RISK", + "", + ) + ) + ), + ], + style={"display": "flex"}, + ), ], style={ "width": "50%",