Fix #14948: imported entries group should not focus it#14983
Conversation
|
Hey @LoayTarek5! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
8514929 to
0372f95
Compare
0372f95 to
c5944db
Compare
koppor
left a comment
There was a problem hiding this comment.
Tried out locally. Works fine. Just added a dot to the end of the two sentecnes.
Side note: You don't need to anonymize a bibtex file with zero entries. -- You have "create example library" in the Welcome Tab and https://github.com/JabRef/jabref-demonstration-libraries/ for examples. |
User description
Closes #14948
Fixed an issue where the "Imported entries" group was being automatically selected/focused when switching between library tabs, even when the group was empty and no import operation was occurring.

The fix removes the unwanted auto-selection behavior, while still creating the group when the preference is enabled.
Now the group is only selected when explicitly chosen by the user or during an actual import operation.
Steps to test
.biblibrary files (so you have multiple tabs)In the first library tab, select any group other than "Imported entries"
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Bug fix
Description
Removes auto-selection of "Imported entries" group on tab switch
Group still created when preference enabled, but not focused
Prevents unwanted focus theft when switching library tabs
Diagram Walkthrough
File Walkthrough
GroupTreeViewModel.java
Remove auto-selection of imported entries groupjabgui/src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java
selectedGroups.setAll()call that auto-selected the importedentries group
focused
CHANGELOG.md
Document imported entries group fixCHANGELOG.md