Commit c0642a7
Add tabs to Clean Up Entries dialog (#13852)
* Add cleanup dialog tabs with individual tab preferences
* Fixed indentation and added commenting
* Fix Trag-bot review issues
- Removed trivial comments
- Renamed PDF-related variables
- Updated methods to return Optional
- Used Optional property for FieldFormatterCleanups
* Fix Trag-bot review issues
- Removed trivial comments
- Fixed CHANGELOG.md
* Fix Trag-bot review issues
- Removed trivial comments
- Improved Optional checks
- Perform null check for other parameters
* Avoid nested Optionals, returning Optional<CleanupPreferences> directly
* Refactor CleanupPreferences by keeping one assertion per test
* Converted tests to assertEquals
* Maintain consistent naming conventions
* Returns CleanupPreferences directly since value is always present
* Initial review refactor draft
- Create new ViewModel, pull logic from Action and SingleAction into ViewModel
- Move Apply button to each tab
- Remove categories from ENUM and keep enums of all jobs in each respective tab to be used for cleanup
* fix import error!
* Reformat codebase (more carefully) (#13885)
* Fix non record comments by carl
# Conflicts:
# jabgui/src/main/java/org/jabref/gui/edit/automaticfiededitor/MoveFieldValueAction.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/cell/sidebuttons/ToggleMergeUnmergeButton.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/CommentMerger.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/FieldMerger.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/FileMerger.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/GroupMerger.java
# jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/KeywordMerger.java
# jablib/src/main/java/org/jabref/logic/layout/format/HTMLChars.java
# jablib/src/main/java/org/jabref/model/entry/identifier/ArXivIdentifier.java
# jablib/src/main/java/org/jabref/model/entry/identifier/EprintIdentifier.java
* Add file exceptions
* Remove shebang line
* Remove shebang line
* Remove shebang line
* Expand variables & rename class
---------
Co-authored-by: Oliver Kopp <[email protected]>
* fix import error & merge
* Apply OpenRewrite Cleanup
* Refactor Cleanup Tabs
- Moved cleanup panel logic into CleanupDialogViewModel for better separation of UI and logic
- Changed tabSupplier and taskExecutor from Optional to nullable parameters
- Moved updateWith logic into the record for cleaner preference updates.
- General design improvements: more maintainable.
* Fix getDisplayName method
* Fix formatting
* Trag-bot review and fix en properties
* fix indentation plssss
* format properly and change to observablelist
* fix formatting entriestoprocess (please)
* Updated names and changed optional dependencies back to nullable
* Refactored panels to use separate ViewModels
- Introduced ViewModels to encapsulate state and logic for panels.
- Replaced direct UI manipulation with bidirectional bindings.
- Ensures cleaner UI logic, easier maintenance
* Moved ALL_JOBS to respective ViewModels, small naming changes
* Replaced requireNotNull to @NotNull following #13957
* Address review feedback in CleanupDialogViewModel
- Remove redundant comments following self-explanatory code
- Add modifiedEntriesCount > 0 condition
- Use "entry(s)" localization form for clean up message
---------
Co-authored-by: Subhramit Basu <[email protected]>
Co-authored-by: Oliver Kopp <[email protected]>
Co-authored-by: Christoph <[email protected]>1 parent 6d23890 commit c0642a7
File tree
20 files changed
+890
-467
lines changed- jabgui/src/main
- java/org/jabref/gui/cleanup
- resources/org/jabref/gui/cleanup
- jablib/src
- main
- java/org/jabref/logic/cleanup
- resources/l10n
- test/java/org/jabref/logic/cleanup
20 files changed
+890
-467
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 7 additions & 131 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | | - | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
11 | | - | |
12 | | - | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 12 | | |
25 | | - | |
26 | 13 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 14 | | |
31 | 15 | | |
32 | 16 | | |
| |||
36 | 20 | | |
37 | 21 | | |
38 | 22 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 23 | | |
44 | 24 | | |
45 | 25 | | |
| |||
53 | 33 | | |
54 | 34 | | |
55 | 35 | | |
56 | | - | |
57 | 36 | | |
58 | 37 | | |
59 | 38 | | |
| |||
64 | 43 | | |
65 | 44 | | |
66 | 45 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 46 | | |
76 | 47 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
118 | 54 | | |
119 | 55 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 56 | + | |
181 | 57 | | |
182 | 58 | | |
Lines changed: 75 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
11 | 48 | | |
12 | | - | |
13 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
14 | 68 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
34 | 86 | | |
35 | 87 | | |
0 commit comments