From 5249d15fe2ab029ff231a8688e598b3fbc9714ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smaga?= Date: Wed, 8 Apr 2026 14:51:02 +0200 Subject: [PATCH] Support experimental Dashboard view (Jenkins 2.534+) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace global View/index.jelly override with class-specific SectionedView/index.jelly. The global override was an anti-pattern that affected all view types and prevented core's experimental dashboard UI from activating. The new template checks the newDashboardPage experimental flag: - When enabled: delegates to core's new-view-page.jelly for the modern app bar layout with inline widgets - When disabled: renders the classic layout without calling it.items (preserving the JENKINS-37174 performance fix) Also guards viewTabs rendering in SectionedView/main.jelly behind the dashboard flag check to prevent duplicate tab bars. No minimum Jenkins version change required — the l:userExperimentalFlag tag gracefully returns null on Jenkins < 2.534. Fixes #84 --- .../resources/hudson/model/View/index.jelly | 58 ---------------- .../sectioned_view/SectionedView/index.jelly | 67 +++++++++++++++++++ .../sectioned_view/SectionedView/main.jelly | 26 ++++--- 3 files changed, 82 insertions(+), 69 deletions(-) delete mode 100644 src/main/resources/hudson/model/View/index.jelly create mode 100644 src/main/resources/hudson/plugins/sectioned_view/SectionedView/index.jelly diff --git a/src/main/resources/hudson/model/View/index.jelly b/src/main/resources/hudson/model/View/index.jelly deleted file mode 100644 index 9732984..0000000 --- a/src/main/resources/hudson/model/View/index.jelly +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - -
-
- -
- -
-
- - - - - - -
- - -