AI Preferences: Add show/hide visibility toggle for API key field
Summary
The API key field in Preferences → AI has no visibility toggle. Users cannot verify what they typed without the key being permanently hidden.
Suggested by
This issue was suggested by maintainer @ThiloteE on the forum: https://discourse.jabref.org/t/ai-preferences-add-test-connection-button-and-api-key-show-hide-toggle/9057/2
Current Behavior
API key field is always masked with no way to reveal it.
Expected Behavior
A show/hide toggle button (👁) next to the API key field allowing users to temporarily verify what they typed — following industry standard credential handling used by GitHub, OpenAI console, and AWS.
Proposed Implementation
Replace or wrap the current CustomPasswordField with a toggle that switches between masked and visible states.
Relevant file: jabgui/src/main/java/org/jabref/gui/preferences/ai/AiTab.java Line 53: @FXML private CustomPasswordField apiKeyTextField;
System Information
JabRef v100.0.0, Linux
Going to work on this along with #15398 together
/assign-me
Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.
At this point in time, you raised 4 pull request(s) of which 75% (3/4) have been merged.
⏰ Assignment Reminder
Hi @ganesh-vk, this is a friendly reminder about your assignment to this issue.
[!WARNING] This issue will be automatically unassigned in 7 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
- Submitting a draft pull request with your progress within 7 days
- Asking for the 📌 Pinned label if you need more time
We appreciate your contribution and are here to help if needed!
📋 Assignment Update
Hi @ganesh-vk, due to inactivity, you have been unassigned from this issue.
Next steps
If you still want to work on this:
- Submit a pull request showing your current state. You will be automatically assigned again.
- Ask a maintainer to assign you again.
/assign-me
Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.
At this point in time, you raised 2 pull request(s) of which 0% (0/2) have been merged.
i reproduced this locally and it seems that the The API key field in Preferences → AI already has visibility toggle and is working fine. Please confirm.
/unassign-me
@madhav758 has been unassigned from this issue.
/assign-me
Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.
At this point in time, you raised 2 pull request(s) of which 0% (0/2) have been merged.
As @madhav758 already mentioned, this issue was solved already by @ganesh-vk in https://github.com/JabRef/jabref/pull/15400. The issue here wasn't closed, because in the linked pull-request, the syntax was not proper.
Links both issues; Only closes the first issue:
Closes https://github.com/JabRef/jabref/issues/15398, https://github.com/JabRef/jabref/issues/15392
Links both issues; Closes both issues:
Closes https://github.com/JabRef/jabref/issues/15398 Closes https://github.com/JabRef/jabref/issues/15392
@FernandadaCal please read through an issue before you assign yourself to it.