Skip to content

Add reveal button to EditorPropertyText for secret text #104742

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

IceflowRE
Copy link
Contributor

@IceflowRE IceflowRE commented Mar 28, 2025

This pull request introduces a new button to the editor text property for properties marked as secrets. The button allows users to toggle between showing and hiding the secret text.
The tooltip is displayed only when the text is revealed to minimize the risk of accidentally exposing sensitive information. Previously, this was the only way to show the plain text, but is no longer necessary.

image
image

@KoBeWi
Copy link
Member

KoBeWi commented Apr 6, 2025

IMO the button needlessly uses 2 icons. It could always show the open eye icon, pressed/released already look different.
Also you could add some tooltip for the button.

@IceflowRE
Copy link
Contributor Author

IceflowRE commented Apr 6, 2025

IMO the button needlessly uses 2 icons. It could always show the open eye icon, pressed/released already look different.

I would stay away from using only a colour to differentiate. Different icons are easier to see, especially for people who have limited eye sight.

@KoBeWi
Copy link
Member

KoBeWi commented Apr 6, 2025

The button changes both icon and pressed state (the eye is colored, because it uses the pressed style). Maybe at least disable the toggle mode to make the button change only icon. Or maybe it's fine, idk.

@IceflowRE IceflowRE force-pushed the editor_property_password branch from c7042f9 to 7af4db5 Compare April 7, 2025 18:06
@IceflowRE
Copy link
Contributor Author

IceflowRE commented Apr 7, 2025

Added button tooltip text and rebased.

@KoBeWi KoBeWi requested a review from Calinou April 7, 2025 19:44
@IceflowRE
Copy link
Contributor Author

Will squash at the end.

@KoBeWi KoBeWi modified the milestones: 4.x, 4.5 Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants