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

Aligned CTA button on login flow #2212

Merged
merged 11 commits into from
Feb 2, 2024

Conversation

surakin
Copy link
Contributor

@surakin surakin commented Jan 11, 2024

Adjusted the login flow buttons a little bit
They were slightly smaller on the onboarding page so I used that everywhere

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other : cosmetic

Content

Aligned the button on the login flow as requested

Motivation and context

Fixes #825

Screenshots / GIFs

Screenshot_20240111_181820
Screenshot_20240111_181832
Screenshot_20240111_181842
Screenshot_20240111_181903

Tests

Play around the initial flow

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

They were slightly smaller on the onboarding page so I used that everywhere

Signed-off-by: Marco Antonio Alvarez <[email protected]>
@surakin surakin requested a review from a team as a code owner January 11, 2024 17:34
@surakin surakin requested review from jmartinesp and removed request for a team January 11, 2024 17:34
Copy link
Contributor

Choose a reason for hiding this comment

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

Text doesn't fit the button here now

Copy link
Contributor

Choose a reason for hiding this comment

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

Spacing is off here too

@surakin
Copy link
Contributor Author

surakin commented Jan 11, 2024

Should I try to fix these? It's not like they are part of any enabled functionality yet 🤔

@jmartinesp
Copy link
Member

jmartinesp commented Jan 12, 2024

Thanks for the PR! IMO, the new alignment and size of the buttons looks better, somehow making them a bit smaller than the rest of the content makes them stand out more. However, any change in designs like this must be approved by our design team, since it's part of our effort to keep designs consistent across platforms. What do you think @amshakal ?

Also, I think @bmarty already did some work in this area, so maybe he knows better than me what decision we took about this (if we did).

On the other hand, about the 'broken' screenshots: I'd say we can make an exception for the onboarding screen and not follow this positioning of the 'Continue' button since it's the very first one if I'm not mistaken. As for the issue with the 'allow biometric' button text being cut, maybe we could change it from 'Allow biometric authentication' to 'Allow biometric unlock' or 'Use biometric authentication' so it fits.

Anyway, let's see what the design team thinks about these changes before discussing any changes.

@jmartinesp
Copy link
Member

@surakin sorry for the delay, but our design team is on holiday until next week 😓

@surakin
Copy link
Contributor Author

surakin commented Jan 16, 2024

No rush :) This can wait

@amshakal
Copy link

amshakal commented Feb 1, 2024

Heya! Thanks for contributing. :)
The buttons position and width looks good. I am happy to approve these suggestions from the design side.

@jmartinesp
Copy link
Member

Thanks @amshakal ! @surakin can you fix the conflicts?

surakin and others added 4 commits February 1, 2024 17:54
…o align-cta-button-on-login-flow

# Conflicts:
#	features/onboarding/impl/src/main/kotlin/io/element/android/features/onboarding/impl/OnBoardingView.kt
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Day-0_1_null_0,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Day-0_1_null_1,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Day-0_1_null_2,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Day-0_1_null_3,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Day-0_1_null_4,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Night-0_2_null_0,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Night-0_2_null_1,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Night-0_2_null_2,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Night-0_2_null_3,NEXUS_5,1.0,en].png
#	tests/uitests/src/test/snapshots/images/ui_S_t[f.onboarding.impl_OnBoardingScreen_null_OnBoardingScreen-Night-0_2_null_4,NEXUS_5,1.0,en].png
@surakin
Copy link
Contributor Author

surakin commented Feb 1, 2024

That should do!

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (5202f73) 70.07% compared to head (3cc5716) 71.23%.
Report is 19 commits behind head on develop.

Files Patch % Lines
...in/impl/screens/loginpassword/LoginPasswordView.kt 76.92% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2212      +/-   ##
===========================================
+ Coverage    70.07%   71.23%   +1.15%     
===========================================
  Files         1352     1352              
  Lines        33243    31857    -1386     
  Branches      6875     6322     -553     
===========================================
- Hits         23296    22692     -604     
+ Misses        6633     5856     -777     
+ Partials      3314     3309       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jmartinesp jmartinesp merged commit 6de07cc into element-hq:develop Feb 2, 2024
12 of 13 checks passed
@surakin surakin deleted the align-cta-button-on-login-flow branch February 2, 2024 07:27
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.

Align CTA button on login flow.
4 participants