Repository navigation
Caption the list pager's links Newer and Older - #162
Open
SushilAmbekar wants to merge 2 commits into
Open
SushilAmbekar wants to merge 2 commits into
SushilAmbekar wants to merge 2 commits into
Conversation
Every list is sorted newest first, and History and Change Records already caption their links Newer / Older. T-UI-318 asserts that the shared pager of the Pending, Active and Ended lists does the same: page 1's link to page 2 reads Older, page 2's link to page 1 reads Newer, and no link reads Previous or Next. Guard: the links still lead to the same pages, so swapping them would not pass. Refs jenkinsci#150 (SPEC 5, 6a, 8; D-66; note 375) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Pending, Active and Ended lists are sorted newest first, and History and Change Records already caption their paging links Newer / Older. The shared pager tag said Previous / Next, so the plugin showed two pairs of words for the same move. tags/pager.jelly now says Newer and Older; the links still lead to the same pages. The e2e drivers that find these links by caption (r14/s_listpager.py, r25/pager_params.py) and two descriptions (r14/misc.py, r14/seed_paging.py) now name the new captions. Fixes jenkinsci#150 (SPEC 5, 6a, 8; D-66; T-UI-318, note 375) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
The Pending, Active and Ended lists use the shared pager tag (
tags/pager.jelly), whose links said Previous / Next. History and Change Records say Newer / Older. Every list is sorted newest first, so Newer / Older says where a link takes you, and one pair of words everywhere is less confusing. This change captions the pager's links Newer and Older and updates the tag's comment, as the issue suggests. The links still lead to the same pages; only their captions change.Anchor
docs/TEST-MATRIX.md.Testing done
PagerParameterTest#t_ui_318_pagerLinksSayNewerAndOlder), the small HtmlUnit check the issue asks for. With T-UI-146's fixture (pending run requests until the list offers page 2), admin opensbatch-control/requests/and?pendingPage=2. The pager is found by its navigation landmark (Pages of pending requests). Page 1's link to page 2 must read exactlyOlder, page 2's link to page 1 exactlyNewer, and no link may readPreviousorNext. Guard first: the links are judged by the page they lead to before their captions, so a change that swapped the two links would fail.mvn -ntp test -Dtest='PagerParameterTest#t_ui_318*':Tests run: 4, Failures: 0, Errors: 0, Skipped: 0(T-UI-146..148 unchanged). Both runs used Windows 11 and JDK 21.e2e/r14/s_listpager.pyande2e/r25/pager_params.py(the lines the issue lists, plus its docstrings and check names). The descriptions ine2e/r14/misc.pyande2e/r14/seed_paging.pywere updated too.e2e/r14/misc.pyande2e/r14/def07.pyalready accepted both captions, so their code needed no change. Thelistpagerrows keep theirnext/prevkeys, soci/h1_rules.pyis unchanged.python3 e2e/ci/selftest_h1.pypasses locally (315 PASS, 0 FAIL). Old reports underdocs/reports/describe past runs and were left as they are.surefire-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 takes about 2.5 h on my Windows machine, so I ranPagerParameterTestlocally (red and green, above) and the whole suite in the fork'sbuildworkflow instead.docs/TEST-MATRIX.md(T-UI-318, note 375, changelog line), the row ID is in the test's name, and the test was committed failing first.src/main/resources/**: only the two link captions and the comment oftags/pager.jellychanged; the links' targets, classes and the navigation landmark are as before. T-UI-318 checks the rendered captions, and the E2E workflow, which drives these pages in a real browser and clicks the pager links by caption, passed.Suggested label:
enhancement(a usability fix to the list pager).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