-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.263.1
Warnings Next Generation Plugin 8.6.0
ECharts API Plugin 4.9.0-2
Mozilla Firefox 78.6.0esr
On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler (trend-chart.js) instead of hyperlinks, so those actions do not work. I hope they can be made to work.
It would be even better if other actions that the web browser supports for hyperlinks, likewise worked in the trend chart: Shift+click to open in a new window, and right-click to open a context menu from which the URL can be copied.
[JENKINS-64581] Middle-click or Ctrl+click a build in a trend chart to open the build in a new tab
Description |
Original:
On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler ([trend-chart.js|https://github.com/jenkinsci/echarts-api-plugin/blob/9fec9607fce1c8f0f96e2bc52c52b68666d9f854/src/main/webapp/js/trend-chart.js#L23-L32]) instead of hyperlinks, so those actions do not work. I hope they can be made to work.
It would be even better if other actions supported for hyperlinks likewise worked in the trend chart: Shift+click to open in a new tab, and right-click to open a context menu from which the URL can be copied. |
New:
On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler ([trend-chart.js|https://github.com/jenkinsci/echarts-api-plugin/blob/9fec9607fce1c8f0f96e2bc52c52b68666d9f854/src/main/webapp/js/trend-chart.js#L23-L32]) instead of hyperlinks, so those actions do not work. I hope they can be made to work.
It would be even better if other actions that are supported for hyperlinks likewise worked in the trend chart: Shift+click to open in a new window, and right-click to open a context menu from which the URL can be copied. |
Description |
Original:
On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler ([trend-chart.js|https://github.com/jenkinsci/echarts-api-plugin/blob/9fec9607fce1c8f0f96e2bc52c52b68666d9f854/src/main/webapp/js/trend-chart.js#L23-L32]) instead of hyperlinks, so those actions do not work. I hope they can be made to work.
It would be even better if other actions that are supported for hyperlinks likewise worked in the trend chart: Shift+click to open in a new window, and right-click to open a context menu from which the URL can be copied. |
New:
On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler ([trend-chart.js|https://github.com/jenkinsci/echarts-api-plugin/blob/9fec9607fce1c8f0f96e2bc52c52b68666d9f854/src/main/webapp/js/trend-chart.js#L23-L32]) instead of hyperlinks, so those actions do not work. I hope they can be made to work.
It would be even better if other actions that the web browser supports for hyperlinks, likewise worked in the trend chart: Shift+click to open in a new window, and right-click to open a context menu from which the URL can be copied. |
Summary | Original: Middle-click or Ctrl+click a build in a trend chart to open it in a new tab | New: Middle-click or Ctrl+click a build in a trend chart to open the build in a new tab |
I can think of the following ways to implement this, but I have not tried them:
I don't see anything related to hyperlinks in ECharts API. ECharts provides mouse events but I don't think those would make the new-tab action any easier than the current event handling in trend-chart.js.