-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Convert the "Custom API key" list to a table [#10926] #10936
Conversation
src/main/java/org/jabref/gui/preferences/websearch/WebSearchTabViewModel.java
Outdated
Show resolved
Hide resolved
Hi, thanks for your interest in JabRef and OpenSource. I like the change to the ui, yet i have a comment about your implementation. I recommend the book Effective Java by Josh Bloch. Here is a summary that I like to use myself: https://github.com/HugoMatilla/Effective-JAVA-Summary |
@calixtus Hi, thanks for the feedback. I will check the resources you provided and modify the code. |
You could disable the field if it's not selected (e.g binding) |
Shouldn't the keys be hidden behind asterisks |
Yeah, maybe some kind of PasswordField or something similar can be used |
src/main/java/org/jabref/gui/preferences/websearch/WebSearchTabViewModel.java
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.
Yeah, the opposite is great. The checkmark should automatically be set then. Maybe no disablement of the checkbox. There seem to be two kinds of user flows 🤣🤣 On dialog close, the key should only be enabled if non empty. |
@koppor Just to make sure I understood right.
Also, can the user change the checkbox manually? |
You came up with an even better solution! Go for it! |
Until now it was also possible to store custom keys, even if they are not used. Would be a regression if we automatically use the key if stored or remove it, when unchecked... |
@calixtus Sorry, I saw your comment after I commited. |
There are use cases one would want to keep the custom API stored without using it, maybe just to test something maybe. |
I think the code is ready for review now. |
Fixes #10926
demo.mov
The only difference from the previous implementation that the user can edit the "key" even if the "use custom key" is not checked. I still didn't find an efficient way to solve it so I will wait for your feedback.Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)