Skip to content

Commit

Permalink
Update default SoK symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Feb 28, 2024
1 parent d6abea3 commit bb5b1ab
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 48 deletions.
13 changes: 3 additions & 10 deletions backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,28 +1007,21 @@ class RiskScenario(NameDescriptionMixin):
"description": _(
"The strength of the knowledge supporting the assessment is low"
),
"symbol": "",
"symbol": "",
},
1: {
"name": _("Medium"),
"description": _(
"The strength of the knowledge supporting the assessment is medium"
),
"symbol": "",
"symbol": "",
},
2: {
"name": _("High"),
"description": _(
"The strength of the knowledge supporting the assessment is high"
),
"symbol": "◕",
},
3: {
"name": _("Very High"),
"description": _(
"The strength of the knowledge supporting the assessment is very high"
),
"symbol": "●",
"symbol": "◆",
},
}

Expand Down
13 changes: 0 additions & 13 deletions backend/library/libraries/critical_matrix_3x3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,3 @@ objects:
- - 1
- 2
- 2
strength_of_knowledge:
- name: Low
description: Low strength of knowledge
symbol:
- name: Medium
description: Medium strength of knowledge
symbol:
- name: High
description: High strength of knowledge
symbol:
- name: Very high
description: Very high strength of knowledge
symbol:
13 changes: 0 additions & 13 deletions backend/library/libraries/critical_matrix_5x5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,3 @@ objects:
- 3
- 4
- 4
strength_of_knowledge:
- name: Low
description: Low strength of knowledge
symbol:
- name: Medium
description: Medium strength of knowledge
symbol:
- name: High
description: High strength of knowledge
symbol:
- name: Very high
description: Very high strength of knowledge
symbol:
48 changes: 40 additions & 8 deletions frontend/src/lib/components/RiskMatrix/RiskMatrix.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,46 @@ const riskMatrix = {
})
};

const riskScenario = {
id: '7059ef1b-7d4f-46bc-b735-ed41b531bb22',
name: 'RS1',
rid: 'R.1',
strength_of_knowledge: {
name: 'Very High',
description: 'The strength of the knowledge supporting the assessment is very high',
symbol: '●'
const riskScenarios = [
{
id: '7059ef1b-7d4f-46bc-b735-ed41b531bb22',
name: 'RS1',
rid: 'R.1',
strength_of_knowledge: {
name: 'Low',
description: 'The strength of the knowledge supporting the assessment is very high',
symbol: '◇'
}
},
{
id: '7059ef1b-7d4f-46bc-b735-ed41b531bb22',
name: 'RS1',
rid: 'R.2',
strength_of_knowledge: {
name: 'Low',
description: 'The strength of the knowledge supporting the assessment is very high',
symbol: '⬙'
}
},
{
id: '7059ef1b-7d4f-46bc-b735-ed41b531bb22',
name: 'RS1',
rid: 'R.3',
strength_of_knowledge: {
name: 'Low',
description: 'The strength of the knowledge supporting the assessment is very high',
symbol: '◆'
}
},
{
id: '7059ef1b-7d4f-46bc-b735-ed41b531bb22',
name: 'RS4',
rid: 'R.1',
strength_of_knowledge: {
name: 'Low',
description: 'The strength of the knowledge supporting the assessment is very high',
symbol: '◆'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
</script>

<p class="whitespace-nowrap">
{data.rid}
{#if data.strength_of_knowledge && data.strength_of_knowledge.symbol !== undefined}
<sub>{data.strength_of_knowledge.symbol}</sub>
{/if}
{#if data.strength_of_knowledge && data.strength_of_knowledge.symbol !== undefined}<sup
class="font-mono text-lg">{data.strength_of_knowledge.symbol}</sup
>{/if}{data.rid}
</p>

0 comments on commit bb5b1ab

Please sign in to comment.