Skip to content

Refactor vulnerability training to be reusable

Samantha Ming requested to merge make-vulnerability-training-reusable into master

What does this MR do and why?

In this MR, we are refactoring the VulnerabilityTraining component to utilize a slot to display the heading. This will make it reusable so it can be reused for vulnerability modal display (separate MR here > !80193 (merged)).

For reference, here is how the VulnerabilityTraining component will be used. You will notice a slight UI structure. Hence I'm adding slots so the custom presentation can be passed through 😀

Vulnerability Detail Vulnerability Modal
2022-02-09_at_8.33_AM 2022-02-09_at_8.31_AM

Implementation Plan

In order to maintain smaller MR, we will tackle this in 2 steps:

MR Description
This MR Refactor VulnerabilityTraining component to use slots
MR !80193 (merged) Implement Vulnerability in Modal

Screenshots or screen recordings

This MR does not introduce any changes to the current UI 💪

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Samantha Ming

Merge request reports

Loading