jabref icon indicating copy to clipboard operation
jabref copied to clipboard

AI Preferences: Add show/hide visibility toggle for API key field

Open Sudeep-A-Kulkarni opened this issue 8 months ago • 13 comments

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

Sudeep-A-Kulkarni avatar Mar 23 '26 11:03 Sudeep-A-Kulkarni

Going to work on this along with #15398 together

/assign-me

ganesh-vk avatar Mar 24 '26 07:03 ganesh-vk

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.

jabref-machine avatar Mar 24 '26 07:03 jabref-machine

⏰ 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!

github-actions[bot] avatar Mar 30 '26 12:03 github-actions[bot]

📋 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.

github-actions[bot] avatar Apr 13 '26 12:04 github-actions[bot]

/assign-me

madhav758 avatar May 16 '26 04:05 madhav758

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.

jabref-machine avatar May 16 '26 04:05 jabref-machine

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.

madhav758 avatar May 16 '26 05:05 madhav758

/unassign-me

madhav758 avatar May 16 '26 05:05 madhav758

@madhav758 has been unassigned from this issue.

jabref-machine avatar May 16 '26 05:05 jabref-machine

/assign-me

FernandadaCal avatar May 19 '26 14:05 FernandadaCal

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.

jabref-machine avatar May 19 '26 14:05 jabref-machine

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

ThiloteE avatar May 19 '26 15:05 ThiloteE

@FernandadaCal please read through an issue before you assign yourself to it.

ThiloteE avatar May 19 '26 15:05 ThiloteE