Handle Error for Missing Charts (No view YAML button) [FE]
Part of &3711 (closed)
Problem to Solve
- When defining dashboards by YAML, references to report pages could be accidentally mistyped and the only way to check them is at runtime. We need to help users understand when something has gone wrong and help them fix it.
Proposal
- When a reference to a report page cannot be found, display an error in place of the chart which indicates which chart's report page slug was mistyped.
Future Iteration
- The design shows a view YAML button.
- Will will add that button only after users can create their own Dashboard pages.
- When the user has write access to the file in which the chart is defined, link the button directly to the IDE for editing the file.
- To do so use a URL such as
https://gitlab.com/-/ide/project/gitlab-org/gitlab/edit/master/-/README.md
- We can split this issue to handle the button depending on when we implement users can create their own Dashboard pages.
If more context is required, see this thread.
Visual
Edited by John-Mason Shackelford