Fix group filter icon in side pane#15408
Conversation
Review Summary by QodoReplace search icon with filter icon in groups pane
WalkthroughsDescription• Replace search icon with filter icon in groups side pane • Import IconTheme and apply filter icon graphic to search field • Maintain existing field behavior and styling unchanged Diagramflowchart LR
A["GroupTreeView"] -- "createNodes method" --> B["SearchTextField"]
B -- "add filter icon" --> C["IconTheme.JabRefIcons.FILTER"]
C -- "getGraphicNode" --> D["Filter icon graphic"]
D -- "setLeft on field" --> E["Updated search field"]
File Changes1. jabgui/src/main/java/org/jabref/gui/groups/GroupTreeView.java
|
|
Hey @jadegold55! 👋 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. |
Code Review by Qodo
1.
|
This comment has been minimized.
This comment has been minimized.
| @Test | ||
| void createUsesRequestedIcon() { | ||
| KeyBindingRepository keyBindingRepository = Mockito.mock(KeyBindingRepository.class); | ||
|
|
||
| CustomTextField textField = SearchTextField.create(keyBindingRepository, IconTheme.JabRefIcons.FILTER); | ||
|
|
||
| Node leftGraphic = textField.getLeft(); | ||
| assertEquals(IconTheme.JabRefIcons.FILTER.getGraphicNode().toString(), leftGraphic.toString()); | ||
| assertTrue(leftGraphic.getStyleClass().contains("search-field-icon")); | ||
| } |
There was a problem hiding this comment.
To keep the tests managable, we do not test trivialities.
Especially here you more or less testing javafx and java, not our logic. Test can be removed imho.
There was a problem hiding this comment.
Ok sounds good and thanks for the review/ feedback. Will update it real quick.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Changelog entry should be added. Even though the change is minimal, it is user-facing and should be mentioned. |
✅ All tests passed ✅🏷️ Commit: 0c5c755 Learn more about TestLens at testlens.app. |
* Fix group filter icon in side pane * Refactor search field icon handling * Fix search field checkstyle imports * Fix search field test newline * Remove trivial SearchTextField test * Add changelog entry for group filter icon --------- Co-authored-by: jadegold55 <jadegold55@users.noreply.github.com>
* Fix group filter icon in side pane * Refactor search field icon handling * Fix search field checkstyle imports * Fix search field test newline * Remove trivial SearchTextField test * Add changelog entry for group filter icon --------- Co-authored-by: jadegold55 <jadegold55@users.noreply.github.com>
…o fix-group-icons * 'fix-group-icons' of github.com:geovani-rocha/jabref: (26 commits) chore(deps): update dependency org.apache.logging.log4j:log4j-to-slf4j to v2.25.4 (JabRef#15436) chore(deps): update jackson monorepo to v3.1.1 (JabRef#15435) Fix PushToPreferences reset and import (JabRef#15395) Add fulltext fetcher for Wiley via their TDM API (JabRef#15388) Embed in-text nature in reference marks for CSL citations (JabRef#15381) Chore(deps): Bump com.gradleup.shadow:shadow-gradle-plugin (JabRef#15430) Fix not on fx thread exceptions for cleanup and cite key generator (JabRef#15424) Revert "Update gradle to nightly of 2026-03-23 (JabRef#15372)" feat: add benchmarks for Lucene fulltext search and linked file indexing, including setup and teardown of the index. (JabRef#15385) Chore(deps): Bump org.openrewrite.recipe:rewrite-recipe-bom (JabRef#15418) Add claude gitignore (JabRef#15413) Fix group filter icon in side pane (JabRef#15408) Add new prs_link feature Chore(deps): Bump org.glassfish.hk2:hk2-api in /versions (JabRef#15422) Chore(deps): Bump org.openrewrite.rewrite from 7.28.2 to 7.29.0 (JabRef#15419) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#15417) Fix for inconsistent "hide tab bar" behavior (JabRef#15409) Update dependency org.glassfish.hk2:hk2-utils to v4 (JabRef#15407) Persist file notifications (JabRef#15403) Update dependency org.glassfish.hk2:hk2-locator to v4 (JabRef#15405) ...
* Fix group filter icon in side pane * Refactor search field icon handling * Fix search field checkstyle imports * Fix search field test newline * Remove trivial SearchTextField test * Add changelog entry for group filter icon --------- Co-authored-by: jadegold55 <jadegold55@users.noreply.github.com>
Related issues and pull requests
Closes #15402
PR Description
This changes the groups side pane filter field to use the filter icon instead of the search icon so the UI matches its actual purpose.
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)Current State: