Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Bug 1815564 - Modify password field text to using Roboto monospace and Added Asterisk over Bullet on password fields. #864

Closed
wants to merge 5 commits into from

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Feb 17, 2023

Modify password field text to using Roboto monospace && add password reveal toggle on Add Login Screen.
Screens need refactor:

  • AddLoginFragment
  • LoginDetailsFragment
  • EditLoginFragment

Enhancement Task

  • Added Asterisk over Bullet
    image

Issue Screenshots

fnxoss-40.webm

Fix Screenshots

fnxoss-40-fix.webm

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

QA

  • QA Needed

GitHub Automation
Fixes mozilla-mobile/fenix#28609
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564
https://bugzilla.mozilla.org/show_bug.cgi?id=1815564

@gitstart gitstart marked this pull request as ready for review February 22, 2023 07:51
@mergify
Copy link
Contributor

mergify bot commented Apr 17, 2023

This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏

@titooan titooan self-assigned this Jun 16, 2023
@@ -80,11 +82,9 @@ class AddLoginFragment : Fragment(R.layout.fragment_add_login), MenuProvider {
)

initEditableValues()

Copy link
Member

Choose a reason for hiding this comment

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

nits: We should avoid removing these new lines in the final revision of this PR. New lines are used to separate logical blocks in a way so that things are more readable.

@mergify
Copy link
Contributor

mergify bot commented Jul 10, 2023

This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏

@titooan
Copy link
Contributor

titooan commented Jul 17, 2023

Hey @debojyoti452,
Thanks a lot for this PR!

I saw the TODO (extend PasswordTransformationMethod() to change bullets to asterisks) was 3 years old so I checked with the UX team if we still want this.
The answer is: we currently use bullets on desktop and want to keep using them on mobile too, so we can remove this TODO. Can you please update this PR to remove the code that fixed this TODO? 

I'm sorry for that, you did a good job anyways!

fenix/app/src/main/res/layout/fragment_add_login.xml Outdated Show resolved Hide resolved
fenix/app/src/main/res/layout/fragment_add_login.xml Outdated Show resolved Hide resolved
revealPasswordButton.contentDescription =
context.getString(R.string.saved_login_reveal_password)
}
// We need to reset to take effect
passwordText.text = passwordText.text
passwordText.typeface = Typeface.MONOSPACE
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to be directly related to toggling the password "reveal state". I think it could be more coherent to move it to where the text field is configured instead.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

🚧 Commit message is using the wrong format: Import translations from android-l10n

The comment message should look like:

    Bug xxxx - Short description of your change
    Optionally, a longer description of the change.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

🚧 Commit message is using the wrong format: Import translations from android-l10n

The comment message should look like:

    Bug xxxx - Short description of your change
    Optionally, a longer description of the change.

@github-actions github-actions bot added the 🕵️‍♀️ needs review PRs that need to be reviewed label Aug 9, 2023
Comment on lines +219 to +229
<ImageButton
android:id="@+id/revealPasswordButton"
android:layout_width="48dp"
android:layout_height="30dp"
android:layout_marginTop="3dp"
android:background="@null"
android:contentDescription="@string/saved_login_reveal_password"
app:tint="?attr/textPrimary"
app:layout_constraintEnd_toStartOf="@id/clearPasswordTextButton"
app:layout_constraintTop_toTopOf="@id/inputLayoutPassword"
app:srcCompat="@drawable/mozac_ic_eye_24" />
Copy link
Member

Choose a reason for hiding this comment

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

I am wondering if I missing something. I don't see anything about adding a reveal password functionality in the original requirements.

Copy link
Member

Choose a reason for hiding this comment

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

@cwzilla Could you clarify your intention from mozilla-mobile/fenix#28609? Were we suppose to add a button to reveal the password when adding a login?

Copy link

Choose a reason for hiding this comment

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

Yes, correct, would like to add the eye icon to reveal/hide password on the password field on the Add a Login screen.

Copy link
Contributor

@titooan titooan left a comment

Choose a reason for hiding this comment

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

Sorry for the delay for reviewing the last changes.
Thanks for adressing all the issues we pointed out!

When testing it I realised that clicking the "reveal/unreveal password" button resets the field state, putting the carret at the beggining of the field. It doesn't sound ideal to me.
One way to solve this would be to use the passwordToggleEnabled attribute (see StackOverflow link for more info).

The problem is: it doesn't seem to be easy to place the visibility button where we want on the field, meaning I think it will need to lie at the end of the field.
We still need to position the "clear" button. It could be:

  • outside of the field, at its end
  • before the visibility button, in the field.

@cwzilla, do you know which option would be the best? 

@cwzilla
Copy link

cwzilla commented Sep 5, 2023

Sorry for the delay for reviewing the last changes. Thanks for adressing all the issues we pointed out!

When testing it I realised that clicking the "reveal/unreveal password" button resets the field state, putting the carret at the beggining of the field. It doesn't sound ideal to me. One way to solve this would be to use the passwordToggleEnabled attribute (see StackOverflow link for more info).

The problem is: it doesn't seem to be easy to place the visibility button where we want on the field, meaning I think it will need to lie at the end of the field. We still need to position the "clear" button. It could be:

* outside of the field, at its end

* before the visibility button, in the field.

@cwzilla, do you know which option would be the best?

Hi, I think in the field would look better!

Copy link
Contributor

mergify bot commented Feb 28, 2024

This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏

1 similar comment
Copy link
Contributor

mergify bot commented Mar 4, 2024

This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏

@gabrielluong gabrielluong added the followup PR that needs to be followed up label Mar 15, 2024
Copy link
Contributor

mergify bot commented Mar 15, 2024

This pull request has conflicts when rebasing. Could you fix it @gitstart? 🙏

@debojyoti452
Copy link

hello @gabrielluong,
Is the issue still persists? do you think I can push the fix as the PR was raised by me

@gabrielluong
Copy link
Member

Hello, Thank you so much for your contribution. We have moved our firefox-android repo over to mozilla-central. Please feel free to reopen a new PR against the new repo. You will have to clone the new repository and reapply your changes. Thank you again, and sorry for the inconvenience.

For more information, please see https://github.com/mozilla-mobile/firefox-android/wiki#upcoming-migration-to-mozilla-central.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
followup PR that needs to be followed up 🕵️‍♀️ needs review PRs that need to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify password field text to using Roboto monospace
5 participants