-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'Get New Themes!' Button for Web Page Integration #10349
Conversation
# Write a title summarizing what this commit does. # Start with an uppercase imperative verb, such as # Add, Drop, Fix, Refactor, Bump; see ideas below. # Think of your title as akin to an email subject, # so you don't need to end with a sentence period. # Use 50 char maximum, which is this line's width. ################################################## Add 'Get New Themes!' Button for Web Page Integration ######################################################################## # Why is this change happening? # Describe the purpose, such as a goal, or use case, or user story, etc. # For every line, use 72 char maximum width, which is this line's width. ######################################################################## The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. ######################################################################## # How is this change happening? # Describe any relevant algorithms, protocols, implementation spec, etc. # For every line, use 72 char maximum width, which is this line's width. ######################################################################## The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively
src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR! I added some comments for improvements
src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
Outdated
Show resolved
Hide resolved
src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
Outdated
Show resolved
Hide resolved
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively Some requested changes were resolved.
src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
Outdated
Show resolved
Hide resolved
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively Some requested changes were resolved, such as Localizing de new button text and using de method JabRefDesktop.openBrowser().
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively Some requested changes were resolved, such as Localizing de new button text and using de method JabRefDesktop.openBrowser().
src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
Outdated
Show resolved
Hide resolved
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser. The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively Some requested changes were resolved, such as Localizing de new button text and using de method JabRefDesktop.openBrowser(). The method openBrowser() was also moved to the viewModel, and a Logger was used for exception handling.
src/main/java/org/jabref/gui/preferences/general/GeneralTabViewModel.java
Outdated
Show resolved
Hide resolved
Added SLF4j logger in GeneralTabViewModel for improved logging and debugging. Followed Checkstyle recommendations for variable order. This change enhances code readability and maintainability.
Please have a look at the failing tests |
* upstream/main: update javafx to 20.0.2 [Bot] Update journal abbreviation lists (JabRef#10387) Fix hang when exporting at the CLI (JabRef#10383) Add tests for EntryComperatorTest (JabRef#10357) Update CSL styles Remove empty lines One more Refinements Update docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md Add some more exports Refine IntelliJ howto Fix localization Adds LaTeX integrity check based on SnuggleTeX Fix casing "macOS" and "JabRef", vendor: JabRef e.V.
replace logger with dialog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In JabRef, we tend to use lower case. See the preference window.
Moreover, if there is more to come, JabRef typically uses three dots at the end.
I made the suggestions in the code.
src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
Outdated
Show resolved
Hide resolved
This reverts commit be514c4.
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
Head branch was pushed to by a user without write access
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing, but I think, it's important from a software design perspective.
|
||
@FXML | ||
public void openBrowser() { | ||
viewModel.openBrowser(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A model opening a browser seems strange. - CAn you move the openBrowser
code from the model to here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@koppor this is done elsewhere as well
For example in the about dialog.
And this is our standard approach. All logic goes to the view model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, I'll move forward with merge - and will put an agenda item for on our DevCall agenda.
Add 'Get New Themes!' Button for Web Page Integration for issue #10243
Used hyperlink now
The change was made at the request of a user who wanted the option to discover new themes for the application more easily and conveniently, such as through a button within the application that redirects them to a web page in their default browser.
The change was implemented through a button added in Preferences > General, located just below the option for selecting new themes via a local directory. Modifications were made to the 'GeneralTab.fxml' and 'GeneralTab.java' files, through which the button was created and the method to execute its function was implemented, respectively.
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)