Repository navigation
Keep citation controls reachable in narrow windows / split screens - #17919
Conversation
PR Summary by QodoKeep citation controls and metrics reachable in narrow windows
AI Description
Merge Risk
|
Code Review by QodoResolved findings 1.
|
|
|
||
| SplitPane splitPane = getPaneAndStartSearch(entry); | ||
| splitPane.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE); | ||
| splitPane.setMinSize(0, 0); |
There was a problem hiding this comment.
lets say two columns needs 600 pixels, but the window only having 400 pixels
old code allows the columns to be squeezed into 400 pixels
New code lets them keep the width they need and scroll sideways to see the rest
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin port-17919-to-black-forest
git worktree add --checkout .worktree/port-17919-to-black-forest port-17919-to-black-forest
cd .worktree/port-17919-to-black-forest
git reset --hard HEAD^
git cherry-pick -x d625ae6ba7e52bbaf3286baf8842bc99ad32aaee |
* main: (22 commits) Keep citation controls reachable in narrow windows / split screens (#17919) Chore(deps): Bump com.dlsc.pdfviewfx:pdfviewfx from 3.6.1 to 3.6.2 in /versions (#18026) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.7 to 4.12.9 in /versions (#18027) Chore(deps): Bump jablib/src/main/resources/csl-styles from `2af1e53` to `9205842` (#18021) Chore(deps): Bump jablib/src/main/abbrv.jabref.org from `1710477` to `4932890` (#18023) Chore(deps): Bump ruby/setup-ruby from 1.345.0 to 1.346.0 (#18025) Chore(deps): Bump anthropics/claude-code-action from 1.0.290 to 1.0.291 (#18024) Chore(deps): Bump softprops/action-gh-release from 3.0.4 to 3.0.5 (#18022) chore(deps): update dependency com.nimbusds:oauth2-oidc-sdk to v11.39.1 (#18020) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.9 (#18019) Fix crash when the native jabgui opens a library with a fulltext index (#18007) Use GroupsEditor for the groups field in the merge dialog (#17798) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.5 to 4.12.7 in /versions (#18018) Chore(deps): Bump us.hebi.graalvm:jfx-static-feature from 1.1.1 to 1.2 in /versions (#18017) chore(deps): update dependency jbangdev/jbang to v0.144.0 (#18013) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.7 (#18011) Chore(deps): Bump org.mockito:mockito-core from 5.24.0 to 5.25.0 in /versions (#18001) chore(deps): update dependency textlint to v16.1.4 (#18000) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.0 to 4.12.5 in /versions (#18002) Fix RIS patent, date, and PDF round trips (#17992) ...
* refs/heads/main: (55 commits) Keep citation controls reachable in narrow windows / split screens (JabRef#17919) Chore(deps): Bump com.dlsc.pdfviewfx:pdfviewfx from 3.6.1 to 3.6.2 in /versions (JabRef#18026) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.7 to 4.12.9 in /versions (JabRef#18027) Chore(deps): Bump jablib/src/main/resources/csl-styles from `2af1e53` to `9205842` (JabRef#18021) Chore(deps): Bump jablib/src/main/abbrv.jabref.org from `1710477` to `4932890` (JabRef#18023) Chore(deps): Bump ruby/setup-ruby from 1.345.0 to 1.346.0 (JabRef#18025) Chore(deps): Bump anthropics/claude-code-action from 1.0.290 to 1.0.291 (JabRef#18024) Chore(deps): Bump softprops/action-gh-release from 3.0.4 to 3.0.5 (JabRef#18022) chore(deps): update dependency com.nimbusds:oauth2-oidc-sdk to v11.39.1 (JabRef#18020) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.9 (JabRef#18019) Fix crash when the native jabgui opens a library with a fulltext index (JabRef#18007) Use GroupsEditor for the groups field in the merge dialog (JabRef#17798) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.5 to 4.12.7 in /versions (JabRef#18018) Chore(deps): Bump us.hebi.graalvm:jfx-static-feature from 1.1.1 to 1.2 in /versions (JabRef#18017) chore(deps): update dependency jbangdev/jbang to v0.144.0 (JabRef#18013) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.7 (JabRef#18011) Chore(deps): Bump org.mockito:mockito-core from 5.24.0 to 5.25.0 in /versions (JabRef#18001) chore(deps): update dependency textlint to v16.1.4 (JabRef#18000) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.0 to 4.12.5 in /versions (JabRef#18002) Fix RIS patent, date, and PDF round trips (JabRef#17992) ...
…omment * upstream/main: Fix path traversal in file directory pattern expansion (CWE-22) (JabRef#17923) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.10 (JabRef#18028) Correct module name: Should be oauth2.oidc.sdk rather than nimbusds.oauth2.oidc.sdk (JabRef#18004) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.9 to 4.12.10 in /versions (JabRef#18031) Keep citation controls reachable in narrow windows / split screens (JabRef#17919) Chore(deps): Bump com.dlsc.pdfviewfx:pdfviewfx from 3.6.1 to 3.6.2 in /versions (JabRef#18026) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.7 to 4.12.9 in /versions (JabRef#18027) Chore(deps): Bump jablib/src/main/resources/csl-styles from `2af1e53` to `9205842` (JabRef#18021) Chore(deps): Bump jablib/src/main/abbrv.jabref.org from `1710477` to `4932890` (JabRef#18023) Chore(deps): Bump ruby/setup-ruby from 1.345.0 to 1.346.0 (JabRef#18025) Chore(deps): Bump anthropics/claude-code-action from 1.0.290 to 1.0.291 (JabRef#18024) Chore(deps): Bump softprops/action-gh-release from 3.0.4 to 3.0.5 (JabRef#18022) chore(deps): update dependency com.nimbusds:oauth2-oidc-sdk to v11.39.1 (JabRef#18020) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.9 (JabRef#18019) Fix crash when the native jabgui opens a library with a fulltext index (JabRef#18007) Use GroupsEditor for the groups field in the merge dialog (JabRef#17798) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.5 to 4.12.7 in /versions (JabRef#18018) Chore(deps): Bump us.hebi.graalvm:jfx-static-feature from 1.1.1 to 1.2 in /versions (JabRef#18017) chore(deps): update dependency jbangdev/jbang to v0.144.0 (JabRef#18013) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.7 (JabRef#18011)
…s-row-updates * upstream/main: (125 commits) Fix group drag and drop errors on Linux (JabRef#18034) Bump cache-apt-pkgs-action to v2.0.2 (JabRef#18037) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.11 (JabRef#18038) Chore(deps): Bump org.jetbrains.kotlin:kotlin-stdlib-jdk8 from 2.4.21 to 2.5.0 in /versions (JabRef#18030) fixed the tab design and letters (JabRef#17970) Fix BST preview showing style preamble and support hyphens in BST id (JabRef#17963) Chore(deps): Bump org.hisp.dhis:json-tree from 1.14.0 to 1.15.0 in /versions (JabRef#18032) New Crowdin updates (JabRef#18033) Polish add/review split button in citations tab (JabRef#17906) Expand LaTeX special character integrity checks (JabRef#17894) Chore(deps): Bump com.nimbusds:oauth2-oidc-sdk from 11.39 to 11.39.1 in /versions (JabRef#18029) Fix path traversal in file directory pattern expansion (CWE-22) (JabRef#17923) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.10 (JabRef#18028) Correct module name: Should be oauth2.oidc.sdk rather than nimbusds.oauth2.oidc.sdk (JabRef#18004) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.9 to 4.12.10 in /versions (JabRef#18031) Keep citation controls reachable in narrow windows / split screens (JabRef#17919) Chore(deps): Bump com.dlsc.pdfviewfx:pdfviewfx from 3.6.1 to 3.6.2 in /versions (JabRef#18026) Chore(deps): Bump com.konghq:unirest-java-bom from 4.12.7 to 4.12.9 in /versions (JabRef#18027) Chore(deps): Bump jablib/src/main/resources/csl-styles from `2af1e53` to `9205842` (JabRef#18021) Chore(deps): Bump jablib/src/main/abbrv.jabref.org from `1710477` to `4932890` (JabRef#18023) ...
Summary
The Citations tab could extend past the edge of a narrow window, leaving the Add/Review button and some metrics out of reach. This adds a horizontal scrollbar below the metrics so you can reach them in Split View, while the panel still fills the available space in a wider window.
Steps to test
Open an entry with a DOI, such as LeCun2015 (
10.1038/nature14539), and select the Citations tab.Choose OpenAlex and wait for citation results and metrics to load.
Narrow the JabRef window or place it in macOS Split View. A horizontal scrollbar should remain visible below the metrics.
This screenshot shows the scrollbar at the left-hand position. Semantic Scholar returned a fetch error during this capture; the error is separate from the scrolling fix.
Drag the bottom scrollbar to the right. The complete Add/Review control, the right-hand refresh button, and the end of the metrics row should be reachable.
Widen the window again. Both citation lists should fill the panel normally, with the controls visible. Repeat the narrow-to-wide resize after a fetch error to check that a long error URL does not make the panel wider than the window.
Related issues and pull requests
Closes #17897
Validation
The scrolling behavior was verified in the running app on macOS; the screenshot is included above. No new automated tests are included in this PR. After their removal,
:jabgui:compileTestJavaand:jabgui:checkstyleTestcompleted successfully. The 40 existing citations view-model tests passed during the earlier validation.Earlier validation passed the selected GUI and architecture checks. The library suite reported 12,712 tests, with 33 skipped and no failures. Checkstyle, Modernizer, Javadoc, Markdownlint, and Textlint passed. The OpenRewrite dry run proposed no changes; it reported a parsing warning in the unchanged
SpecialFieldAction.java.AI usage
OpenAI GPT-6 assisted with the implementation. I ran local verification. I manually reviewed and verified the code
AI CHECKLIST.md walkthrough
Code checklist
1. Code self-review
Read your own diff once, top to bottom, and confirm each point.
Nullability and control flow
== null/!= nullchecks — JSpecify annotations (@NullMarked,@Nullable,@NonNull) used instead.Objects.requireNonNull(...)— nullability expressed via JSpecify annotations.@NullMarked(org.jspecify.annotations.NullMarked).@NullMarked(org.jspecify.annotations.NullMarked).Optionalconsumed withifPresent/ifPresentOrElse/map/orElseThrow— neverorElse(unusedValue)nor anisPresent()+get()block.StringUtil.isBlank(...)used instead ofs == null || s.isBlank().Exceptions
catch (Exception e)— only specific exceptions are caught.throw new RuntimeException(...)/IllegalStateException(...)— these tear down the whole application.LOGGER.info("...", e)), not concatenated into the message string.Style and idioms
BibEntryobjects built with withers (withField, notsetField).List.of()/Map.of()/Set.of(),Path.of(),SequencedCollection/SequencedSet, text blocks.Pattern.compile(...)constant, notString.matches(...).org.jabref.logic.util.BackgroundTask, notnew Thread().///) uses Markdown syntax, not JavaDoc inline tags:`code`instead of{@code},[ClassName]instead of{@link}.User-facing text
Localization.langin Java,%prefix in FXML).!; labels do not end with:."...: %0"), not string concatenation.Security
text/htmlresponse — including exception/error messages, not just the success body (XSS).Tests
org.jabref.model/org.jabref.logichave added or updated tests.assertEquals), use plain JUnit asserts (not AssertJ), have no@DisplayName, do not catch exceptions (let them propagate so JUnit reports setup/teardown failures directly), and use@TempDirinstead of manual temp directories.2. Verification commands
Run in this order — cheapest first. Each must pass.
./gradlew :jablib:check(or./gradlew checkfor all modules)../gradlew checkstyleMain checkstyleTest checkstyleJmh../gradlew modernizer../gradlew --no-configuration-cache :rewriteDryRunreports no changes (run./gradlew rewriteRunto fix)../gradlew javadoc.npx markdownlint-cli2 "docs/**/*.md" "*.md"(only if Markdown changed).npm ci && npm run textlintreports no misspellings (only if Markdown changed).rewriteRun:docker run -v $(pwd):/github/workspace ghcr.io/leventebajczi/intellij-format:master "*.java" "" ".idea/codeStyles/Project.xml".3. Documentation
CHANGELOG.mdentry added if the change is visible to the user (end-user wording, no extra blank lines, sorted in next to existing entries about the same component/feature). Link the issue if one exists; link the PR only when no issue exists. UseTODOas the placeholder when neither is known yet — never a fake number. No entry for fixes to changes that were themselves introduced after the last release (feature only in## [Unreleased]) — update the existing unreleased entry instead if needed.TODO(nocloses/fixesfor merely-similar issues).docs/requirements/<area>.mdif the change is a new feature or significant bug fix (skip for refactors, minor fixes, and internal changes).docs/updated if behavior or architecture changed.4. Pull request
.github/PULL_REQUEST_TEMPLATE.md, every section filled.[x],[ ], or[/].gh pr create --body-file <file>(not--body).CHANGELOG.mdused aTODOplaceholder (no issue confidently identified yet — an existing issue link always stays), the PR was opened as draft, the placeholder was replaced with the real PR-number link after PR creation, committed and pushed, and only then was the PR marked ready for review. If an issue is identified or created later, the link is switched to the issue.Notes: this is a small GUI overflow fix, with no changes to fetching, importing, public APIs, or user-facing strings. No new requirement or developer documentation is needed. The supplied screenshot is attached; a cropped image scrolled to the right is still needed to demonstrate the final result clearly.
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)