Repository navigation
Give the Cancel Request confirmation an OK button that does not say Cancel - #161
Open
SushilAmbekar wants to merge 2 commits into
Open
SushilAmbekar wants to merge 2 commits into
SushilAmbekar wants to merge 2 commits into
Conversation
The requester's Cancel Request on the pending run, permission window and activation request pages opens core's confirmation dialog, whose own dismiss button reads "Cancel". T-UI-317 requires the dialog's OK text (data-ok-text on core's confirmation-link) to read "Withdraw request" on all three pages, with Revoke on the grants list as the guard that keeps its own OK text. Red on 059e1ed. Refs jenkinsci#151 (SPEC 5, 6a, 8; note 374) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…say Cancel Core's confirmation dialog for Cancel Request has its own dismiss button, "Cancel", and the plugin's OK button read "Cancel request": two buttons with opposite effects and almost the same label. The OK button of the pending run, permission window and activation request pages now reads "Withdraw request". The page button and the dialog title are unchanged. The e2e self-test fixture and the description of r21/reject_color.py name the new OK text; the driver finds the OK button by its data-id. Fixes jenkinsci#151 (SPEC 5, 6a, 8; T-UI-317, note 374) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SushilAmbekar
force-pushed
the
fix/151-withdraw-request-ok-text
branch
from
November 22, 2026 15:37
c0df699 to
5cdcb08
Compare
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
On the detail page of a pending run request, permission window request or activation request, Cancel Request opens core's confirmation dialog. Its two buttons read Cancel request (ours, which cancels the request) and Cancel (core's, which only closes the dialog). Two buttons with opposite effects and almost the same label make it easy to click the wrong one. This change sets
okText="Withdraw request"on the threel:confirmationLinks, as the issue suggests. The button on the page and the dialog title stay as they are, and core's own Cancel cannot be changed from here.Anchor
Testing done
PolishMarkupTest#t_ui_317_cancelConfirmationOkTextIsWithdrawRequest). bob files a pending run request, a permission window request and an activation request, then opens each detail page. The control is found by its endpoint (/cancel), as in T-UI-52b, and is asserted to be core'sconfirmation-link. Itsdata-ok-textmust be exactlyWithdraw request. Guard: Revoke on the active grants list is the same core tag and must keepRevoke, so a change that rewrote every confirmation link would fail the row.mvn -ntp test -Dtest=PolishMarkupTest:Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, and the same again on the rebased fix commit (5cdcb08, on main 06cfe2f). Both runs used Windows 11 and JDK 21.0.7.e2e/ci/selftest_h1.py(the_destructivefixture) and the description ofe2e/r21/reject_color.pynamed the old OK text and now name the new one. The driver finds the OK button by itsdata-id, so its code needs no change.python3 e2e/ci/selftest_h1.pypasses locally.docs/TEST-MATRIX.mdand the test class Javadoc): Build passed, 26 of 26 jobs (the whole test suite and SpotBugs). One group, "run approval and mail", failed on the first attempt before any test ran: Maven could not downloadsurefire-junit-platformon the runner. It passed on a rerun with no change. E2E passed, 12 of 12 jobs.Checks
mainbranch of my fork.buildande2eworkflows passed on my fork (links above).mvn clean verifypassed locally. Not ticked, and here is why: the full suite took about 105 s per class on my Windows machine (359 classes, about 2.5 h), so I ranPolishMarkupTestlocally (red and green, above) and the whole suite in the fork'sbuildworkflow instead.docs/TEST-MATRIX.md(T-UI-317, note 374, changelog line), the row ID is in the test's name, and the test was committed failing first.src/main/resources/**: only theokTextattribute of three existingl:confirmationLinks changed, so the dialog's layout is core's and is unchanged. T-UI-317 checks the rendered attribute on all three pages, and the E2E workflow, which drives these pages in a real browser, passed.Suggested label:
enhancement(a usability fix to a confirmation dialog).AI assistance: I made this change with the help of Claude Code. I reviewed the diff and the test, and I ran the red and green runs above myself.
🤖 Generated with Claude Code