-
Type:
Change Request
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 8.0.0rc1 (master)
-
Component/s: Frontend (F)
-
None
On Monitoring -> Hosts -> Graphs (charts.view) every graph is a PNG rendered by chart.php, chart2.php or chart6.php. The graph name is drawn into that image by CGraphDraw::drawHeader() and exists nowhere else in the page markup.
Consequences:
- Browser find-in-page (Ctrl+F) cannot find a graph. On a host with dozens of graphs the only way to locate one is scrolling.
- The name cannot be selected or copied as text.
- Screen readers get nothing; the <img> has no alt attribute either.
- There is no link from a graph in the list to that graph on its own.
Proposal: show the name as regular markup above each graph, as a link (host graph -> charts.view filtered on that graph, simple graph -> history.php), and clip the header band out of the displayed image so the title is not shown twice. The header stays inside the image itself, so a copied or saved image still carries its name. The dashboard "Graph (classic)" widget already builds the same header text in HTML, so the rule for host name prefixing and macro expansion is reused.
Patch prepared against master, including regenerated theme CSS and updated Selenium coverage.
Note: testDataDisplayInGraphs_MonitoringHosts compares reference screenshots that are kept on Zabbix CI rather than in the repository, so those need regenerating with this change.