Conversation
PR Summary by QodoSync jump-to-field hint with highlighted completion
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1. Closed dialogs retain active callbacks
|
| newFieldHint.managedProperty().bind(newFieldHint.visibleProperty()); | ||
| newFieldHint.visibleProperty().bind(Bindings.createBooleanBinding( | ||
| () -> viewModel.isNewField(fieldToUse()), highlightedSuggestion, searchField.textProperty())); |
There was a problem hiding this comment.
2. Hint regressions go undetected 📘 Rule violation ☼ Reliability
newFieldHint.visibleProperty() now computes from fieldToUse(), but the only added test asserts that the popup skin node is a ListView. Highlighting an existing field, dismissing the popup, and confirming a custom value therefore have no assertions covering the changed hint and selection paths.
Agent Prompt
## Issue description
The PR changes how the dialog derives the selected field and controls the creation hint, but its new test covers only the ControlsFX skin assumption rather than this behavior.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/entryeditor/JumpToFieldDialog.java[75-77]
- jabgui/src/test/java/org/jabref/gui/util/HoverSelectingAutoCompletionBindingTest.java[38-43]
## Recommended Fix
Add JavaFX tests that assert the hint is hidden when an existing suggestion is highlighted, shown for a custom suggestion, and recalculated from typed text after the popup is dismissed. Also verify confirmation selects the same field represented by the hint state.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
In the "Jump to field" dialog, the "Field will be created" hint was driven only by the raw typed text, so it stayed visible even while the auto-completion popup selected an existing field (e.g. typing t with title highlighted).
The hint now follows the highlighted suggestion:
jabref-contrib-policy:4.2:reviewed:okSteps to test
Screencast.from.2026-09-11.23-23-03.webm
Related issues and pull requests
Closes #17060, Follow-up #16639
AI usage
antigravity/claude sonnet 4.6, All changes were reviewed and verified by the contributor
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)