Repository navigation
[Port to stable] Restore full-text results in the entry editor - #17370
jabref-machine wants to merge 7 commits into
Conversation
|
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin port-17367-to-stable
git worktree add --checkout .worktree/port-17367-to-stable port-17367-to-stable
cd .worktree/port-17367-to-stable
git reset --hard HEAD^
git cherry-pick -x 091e8897bcd9f7dcecbb499ae6e48332ffefec21 |
|
#17285 needs to be ported first. |
PR Summary by QodoRestore full-text results in the entry editor on stable
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo
1.
|
| setContentDrivenVisibility(contentVisibility); | ||
|
|
||
| content = new TextFlow(); | ||
| searchQueryListener = (_, _, _) -> content.getChildren().clear(); |
There was a problem hiding this comment.
2. Library switches erase full-text hits 🐞 Bug ≡ Correctness
searchQueryListener clears the editor content on every active-query change without restoring results already cached for the newly active library. When switching to a library whose own query and results are already set, the active-tab change can render those hits first, then query synchronization clears them without triggering another search-results update.
Agent Prompt
## Issue description
Synchronizing the active query after a library switch can clear cached full-text hits without a subsequent results event to redraw them.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FulltextSearchResultsTab.java[96-106]
- jabgui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FulltextSearchResultsTab.java[128-134]
## Recommended Fix
On query changes, refresh from the active library's cached results when they correspond to its current query; otherwise keep the view empty until the new search completes. Add a library-switch test where both libraries already have queries and completed results.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
* stable: docs: port requirements guidance to stable (#17576) # Conflicts: # docs/requirements/search-within-library.md
* upstream/stable: [Port to stable] Skip changelog consistency checks for stable port PRs (#17605)
|
🤖 Generated with Claude Code |
Port of #17367 to
stable, see Branching strategy.If this PR is a draft, the cherry-pick conflicted: the conflicting files are committed with Git's conflict markers left in. Resolve the markers locally, push, and mark the PR ready.