Open gorkem-bwl opened 3 hours ago
We can use 34x high labels for this purpose. The link to Figma design is here. You may or may not want to define them as a component (eg if labels can take height props, we are good, otherwise a new component might be needed, or we can change the labels to get height props)
Two examples of the final look:
We have those likelihood categories:
We have those severity categories:
For calculating the risk level, you can map each category to numeric values as shown below:
Here is a sample TS code:
This calculation is valid both for Vendor risks and project risks.
Also CC'ing @HarshP4585 and @MuhammadKhalilzadeh in case there is a need to change backend code/mock data here.