From f972b9d81931e9879c827fa4268c528fe178a27d Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:13:17 +0000 Subject: [PATCH] Refine the 'New Item' screen (#26031) * Refine the 'New Item' screen * Simplify SCSS * Fix submission, fix some tests, improve tabbing + focus states * Fix more tests * Simplify JS + hopefully fix test * Update pom.xml * Update Jenkinsfile * Fix issue noticed in #26069 * Restore Jenkinsfile/test pom * Simplify JS * Restore ability to have headings * Fix focus state in Firefox/Chrome * Add separator between items and 'Duplicate an item' --- .../resources/hudson/model/View/newJob.jelly | 51 ++-- .../hudson/model/View/newJob.properties | 4 +- eslint.config.cjs | 1 + src/main/js/add-item.js | 193 ++++++--------- src/main/js/add-item.scss | 23 +- src/main/js/widgets/add/addform.scss | 172 ------------- src/main/scss/components/_choice-list.scss | 227 ++++++++++++++++++ src/main/scss/components/_index.scss | 1 + src/main/scss/form/_input.scss | 1 + src/main/scss/form/_layout.scss | 16 ++ .../test/java/hudson/model/MyViewTest.java | 2 +- test/src/test/java/hudson/model/ViewTest.java | 17 +- .../resources/images/symbols/duplicate.svg | 1 + 13 files changed, 381 insertions(+), 328 deletions(-) delete mode 100644 src/main/js/widgets/add/addform.scss create mode 100644 src/main/scss/components/_choice-list.scss create mode 100644 war/src/main/resources/images/symbols/duplicate.svg diff --git a/core/src/main/resources/hudson/model/View/newJob.jelly b/core/src/main/resources/hudson/model/View/newJob.jelly index 98c9d80960..23ff8a8d31 100644 --- a/core/src/main/resources/hudson/model/View/newJob.jelly +++ b/core/src/main/resources/hudson/model/View/newJob.jelly @@ -35,35 +35,48 @@ THE SOFTWARE. +