Skip to content

Add reset password button#1077

Closed
Mustahai wants to merge 4 commits intocommons-app:masterfrom
Mustahai:master
Closed

Add reset password button#1077
Mustahai wants to merge 4 commits intocommons-app:masterfrom
Mustahai:master

Conversation

@Mustahai
Copy link

Fix for Issue #1063 "Forgot password" link on login screen

<fr.free.nrw.commons.ui.widget.HtmlTextView
android:id="@+id/reset_password_link"
style="?android:textAppearanceSmall"
android:layout_width="wrap_content"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be "0dp" to make "layout_weight=1" work.

<fr.free.nrw.commons.ui.widget.HtmlTextView
android:id="@+id/about_privacy_policy"
style="?android:textAppearanceSmall"
android:layout_width="wrap_content"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be "0dp" to make "layout_weight=1" work.

style="?android:textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should add android:gravity="center_horizontal" line to make texts centered.

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/large_gap"
android:layout_weight="1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should add android:gravity="center_horizontal" line to make texts centered.

@neslihanturan
Copy link
Collaborator

Thanks @Mustahai for the PR:). It works but doesn't look very symmetric currently. So, some changes requested. Our expectation from your fixes is:

pr_passwd

@Mustahai
Copy link
Author

Thank you @neslihanturan for your feedback. I have updated and commited changes according to your feedback. I hope they will be according to your expectations.

@codecov-io
Copy link

codecov-io commented Jan 22, 2018

Codecov Report

Merging #1077 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1077   +/-   ##
======================================
  Coverage    3.85%   3.85%           
======================================
  Files         125     125           
  Lines        5757    5757           
  Branches      567     567           
======================================
  Hits          222     222           
  Misses       5520    5520           
  Partials       15      15

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 054fa93...58ddbd0. Read the comment docs.

@psh
Copy link
Collaborator

psh commented Jan 22, 2018

Just curious why the mockup in the original issue wasn't implemented -

image

@neslihanturan
Copy link
Collaborator

Oh, I wasn't aware of that design @psh , so tried make it better on my previous comments. But IMO the design you shared looks better. Sorry for missing that :/

@misaochan
Copy link
Member

Hi @Mustahai , thanks for your PR. Indeed we had agreed on using the design that @psh submitted at #1063 , could you please modify to suit that? Cheers. :)

@Mustahai
Copy link
Author

So I've been working on changing the design to fit @psh 's mockup, and unfortunately I've run into two issues that I hope you will be able to help me solve. This is the current layout on my emulator:

imagem

Now my issues are the following:
1 - I can't seem to be able to remove the underline on the forgot password link. There must be a simple way to do it but I'm not finding it.
2- The privacy policy link is moved up by the keyboard, and ends up inside the login frame, like this:

imagem

I hope to solve both issues with your sugestions.

@neslihanturan
Copy link
Collaborator

@Mustahai , can you please commit your code that results as you shared? So that we can see whats going on.

@Mustahai
Copy link
Author

The main issue I'm struggling with is that the login activity is a scroll view, so I can't, as far as I know, just send the policy settings link to the bottom of the screen.

@maskaravivek
Copy link
Contributor

Have fixed the merge conflicts. Will merge once the checks pass.

@neslihanturan
Copy link
Collaborator

Thanks for fixing the conflicts @maskaravivek , but according to discussion above, I have some doubts to merge this as is. What do you suggest @psh , should we wait for updates or merge it as is, since it doesn't look very problematic currently.

@misaochan
Copy link
Member

How does the UI look currently? Does it still have the overlapping text that is shown in the most recent screenshot?

@ujjwalagrawal17
Copy link
Contributor

@maskaravivek I think the issue is already fixed. So we can close this PR.

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.

7 participants