Skip to content
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

Merged
merged 21 commits into from
Sep 21, 2023

Conversation

Jaovitosr
Copy link
Contributor

@Jaovitosr Jaovitosr commented Sep 8, 2023

Add 'Get New Themes!' Button for Web Page Integration for issue #10243

Used hyperlink now
grafik

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

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

# 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
Copy link
Member

@Siedlerchr Siedlerchr left a 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

@Siedlerchr Siedlerchr added the status: changes required Pull requests that are not yet complete label Sep 8, 2023
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.
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().
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.
Siedlerchr and others added 2 commits September 12, 2023 08:21
Added SLF4j logger in GeneralTabViewModel for improved logging and debugging. Followed Checkstyle recommendations for variable order. This change enhances code readability and maintainability.
@Siedlerchr
Copy link
Member

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
@Siedlerchr Siedlerchr added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed status: changes required Pull requests that are not yet complete labels Sep 18, 2023
@Siedlerchr Siedlerchr marked this pull request as ready for review September 18, 2023 19:27
Copy link
Member

@koppor koppor left a 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.

CHANGELOG.md Outdated Show resolved Hide resolved
src/main/resources/l10n/JabRef_en.properties Outdated Show resolved Hide resolved
koppor and others added 3 commits September 19, 2023 23:14
This reverts commit be514c4.
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
auto-merge was automatically disabled September 19, 2023 22:48

Head branch was pushed to by a user without write access

Jaovitosr and others added 2 commits September 19, 2023 19:49
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
Copy link
Member

@koppor koppor left a 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();
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for sure!

Copy link
Member

@Siedlerchr Siedlerchr Sep 21, 2023

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

Copy link
Member

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.

@koppor koppor merged commit 01f65ea into JabRef:main Sep 21, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants