Skip to content
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

Replace button "Show" with Icon to show/hide passphrase #1821

Merged

Conversation

myxmaster
Copy link
Contributor

Description

This fixes #1758.

Button "Show" is replaced with eye icon to show/hide passphrase at login. Implemented same logic for PIN (was missing completely). On PIN screen eye icon won't be displayed when no digit was entered yet.

Before:
before-pass
before-pin

After:
after-pass-hidden
after-pass-visible
after-pin-hidden
after-pin-visible

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Configuration change
  • Locales update
  • Quality assurance
  • Other

Checklist

  • I’ve run yarn run tsc and made sure my code compiles correctly
  • I’ve run yarn run lint and made sure my code didn’t contain any problematic patterns
  • I’ve run yarn run prettier and made sure my code is formatted correctly
  • I’ve run yarn run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • Android
  • iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • Embedded LND
  • LND (REST)
  • LND (Lightning Node Connect)
  • Core Lightning (c-lightning-REST)
  • LndHub
  • [DEPRECATED] Core Lightning (Spark)
  • [DEPRECATED] Eclair

Locales

  • I’ve added new locale text that requires translations
  • I’m aware that new translations should be made on the Zeus Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • Contributors will need to run yarn after this PR is merged in
  • 3rd party dependencies have been modified:
    • verify that package.json and yarn.lock have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • Changes were made that require an update to the README
  • Changes were made that require an update to onboarding

@kaloudis
Copy link
Contributor

kaloudis commented Nov 2, 2023

This looks pretty, pretty good

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen.Recording.2023-11-03.at.11.17.40.AM.mov

The pin slightly shifts to the left when we tap the Eye icon to show it.
Happens only in the IOS

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simulator Screenshot - iPhone 14 Plus - 2023-11-03 at 11 42 58
While setting and logging in through the password, the padding inside the input box seems so congested that we might need to refactor it. Also, we should have the Eye icon in this view as well.
The padding issue can be handled in the other PR as well for now.

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delete button on the SetPassword view should not have the "red" color; it should have the configuration like color: themeColor('delete'), also probably add the confirmation before deleting it as well like we do in the Contacts and Nodes view

@myxmaster
Copy link
Contributor Author

myxmaster commented Nov 3, 2023

The pin slightly shifts to the left when we tap the Eye icon to show it.
Happens only in the IOS

Unfortunately I cannot test iOS. If you can find a solution to this, that would be awesome!

Also, we should have the Eye icon in this view as well.

When you have a second input for confirming, you generally don't need to show the password. It is usually either confirm by 2nd input, or show/hide.

The padding issue can be handled in the other PR as well for now.

Yeah, I think padding is something that we can improve on many places throughout the app.

The delete button on the SetPassword view should not have the "red" color; it should have the configuration like color: themeColor('delete'), also probably add the confirmation before deleting it as well like we do in the Contacts and Nodes view

Good idea, will do that! (Edit: in a different PR though)

@shubhamkmr04
Copy link
Contributor

Unfortunately I cannot test iOS. If you can find a solution to this, that would be awesome!

Sure. will try to check what's going on in the ios

When you have a second input for confirming, you generally don't need to show the password. It is usually either confirm by 2nd input, or show/hide.

Okay, sounds right.

@myxmaster myxmaster force-pushed the eye_icon_for_show/hide_passphrase/pin branch from 733e06a to a075187 Compare November 8, 2023 21:00
Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@kaloudis kaloudis merged commit c67408e into ZeusLN:master Nov 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace button "SHOW" with Icon
3 participants