Validate that gitlab-svg icons actually exist
Problem to solve
Sometimes UX designers plan to remove or rename icons. See for example:
While it is generally really easy to replace those icon usages, it would be favorable to have a solution which automatically detects wrong icon usage. It especially gets harder if you have really common icon names like commit
to replace.
Proposal
Add tests to the icon
Vue component and sprite_icon
ruby helper which throws an error if a unknown icon is used. That way we could ensure that no wrong icon is used. These tests should only run during development
/tests
in order to prevent production errors.
Links / references
Edited by Lukas 'ai-pi' Eipert