Explicitly write markup in the vulnerability-details component
- Discussion for context: #8146 (comment 214915760)
- Related issues: #8146 (closed), #14006 (closed)
- Affected component: vulnerability-details
The vulnerability-details
components currently consists in a loop that iterates over the details
object and conditionally renders markup depending on the keys in the object.
This results in a component that is hard to read and to maintain because we end up with a lot of nested conditions to handle every edge case. Given the amount of edge cases in the loop, it would be simpler to explicitly write the markup for every key to make the template more readable and to cleanup unnecessary methods.
Edited by Paul Gascou-Vaillancourt