Skip to content

Commit

Permalink
add information labels on severity and impact table headers
Browse files Browse the repository at this point in the history
Signed-off-by: kemley76 <[email protected]>
  • Loading branch information
kemley76 committed Jun 17, 2024
1 parent 6953dfb commit 499141c
Showing 1 changed file with 44 additions and 10 deletions.
54 changes: 44 additions & 10 deletions apps/frontend/src/components/cards/controltable/ControlTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,53 @@
</template>

<template #severity>
<ColumnHeader
:text="'Severity'"
:sort="sortSeverity"
@input="set_sort('severity', $event)"
/>
<v-row class="pa-3">
<ColumnHeader
:text="'Severity'"
:sort="sortSeverity"
@input="set_sort('severity', $event)"
/>
<v-tooltip bottom>
<template #activator="{on, attrs}">
<v-icon
class="ml-0"
small
style="cursor: pointer"
v-bind="attrs"
v-on="on"
>mdi-information-outline</v-icon
>
</template>
<span>Control severity (NONE, LOW, MEDIUM, HIGH, or CRITICAL)</span>

Check warning on line 104 in apps/frontend/src/components/cards/controltable/ControlTable.vue

View workflow job for this annotation

GitHub Actions / build

Replace `>Control·severity·(NONE,·LOW,·MEDIUM,·HIGH,·or·CRITICAL)</span` with `⏎················>Control·severity·(NONE,·LOW,·MEDIUM,·HIGH,·or·CRITICAL)</span⏎··············`

Check warning on line 104 in apps/frontend/src/components/cards/controltable/ControlTable.vue

View workflow job for this annotation

GitHub Actions / build

Replace `>Control·severity·(NONE,·LOW,·MEDIUM,·HIGH,·or·CRITICAL)</span` with `⏎················>Control·severity·(NONE,·LOW,·MEDIUM,·HIGH,·or·CRITICAL)</span⏎··············`
</v-tooltip>
</v-row>
</template>

<template #impact>
<ColumnHeader
:text="'Impact'"
:sort="sortImpact"
@input="set_sort('impact', $event)"
/>
<v-row class="pa-3">
<ColumnHeader
:text="'Impact'"
:sort="sortImpact"
@input="set_sort('impact', $event)"
/>
<v-tooltip bottom>
<template #activator="{on, attrs}">
<v-icon
class="ml-0"
small
style="cursor: pointer"
v-bind="attrs"
v-on="on"
>mdi-information-outline</v-icon
>
</template>
<span
>Control impact normailzed to range from 0 to 10 <br />0-1: No
impact <br />1-4: Low impact <br />4-7: Medium impact <br />7-9:
High impact <br />9-10: Critical impact
</span>
</v-tooltip>
</v-row>
</template>

<template #tags>
Expand Down

0 comments on commit 499141c

Please sign in to comment.