From 8f46463f779e8cb3e8d5f9e296f7b6eb6ff6971d Mon Sep 17 00:00:00 2001 From: Abd al Rahman Gad <89566409+AbdAlRahmanGad@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:45:23 +0200 Subject: [PATCH] Convert the "Custom API key" list to a table [#10926] (#10936) * Convert "Custom API keys" list to a table. * Handle if user clicked "check connection" without selecting a key. * update CHANGELOG.md * Handle if user clicked "check connection" without selecting a key in a better way. * Disable editing the "customApiKey" if "useCustomApiKey" is no cheked * Disable "Check Connection" button if no API key is selected. * add a new line to match to coding style * Bind the 'useCustomApiKey' checkbox with the emptiness of the 'customApiKey' field. * Update logic for "Custom API key" table to align with previous implementation * Add a note to guide users on how to commit changes --- CHANGELOG.md | 1 + .../preferences/websearch/WebSearchTab.fxml | 30 ++++++++--- .../preferences/websearch/WebSearchTab.java | 50 ++++++++++++------- .../logic/preferences/FetcherApiKey.java | 4 ++ 4 files changed, 59 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38461b0d26b..8ec35123236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Added +- We converted the "Custom API key" list to a table to be more accessible. [#10926](https://github.com/JabRef/jabref/issues/10926) - We added a "refresh" button for the LaTeX citations tab in the entry editor. [#10584](https://github.com/JabRef/jabref/issues/10584) - We added the possibility to show the BibTeX source in the [web search](https://docs.jabref.org/collect/import-using-online-bibliographic-database) import screen. [#560](https://github.com/koppor/jabref/issues/560) - We added a fetcher for [ISIDORE](https://isidore.science/), simply paste in the link into the text field or the last 6 digits in the link that identify that paper. [#10423](https://github.com/JabRef/jabref/issues/10423) diff --git a/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml b/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml index 06ee5a0e0dd..57cd5a4a449 100644 --- a/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml +++ b/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml @@ -2,7 +2,6 @@ - @@ -55,12 +54,29 @@