-
Notifications
You must be signed in to change notification settings - Fork 843
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
PM-15067 - Design Audit - Prevent Account Lockout Screen #4361
PM-15067 - Design Audit - Prevent Account Lockout Screen #4361
Conversation
…en' of https://github.com/bitwarden/android into phil/PM-15067-design-audit-prevent-account-lockout-screen
New Issues
Fixed Issues
|
@@ -75,102 +68,57 @@ fun PreventAccountLockoutScreen( | |||
) | |||
}, | |||
) { | |||
Column( | |||
NeverLoseAccessContent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this PreventAccountLockoutContent
to keep it consistent with the screen
.clip(RoundedCornerShape(size = 4.dp)) | ||
.background(BitwardenTheme.colorScheme.background.tertiary), | ||
) { | ||
private fun NeverLoseAccessContent(modifier: Modifier) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention here is to provide a default Modifier as well
@@ -107,7 +108,7 @@ private fun BitwardenContentBlock( | |||
?: Spacer(Modifier.width(16.dp)) | |||
} | |||
|
|||
Column { | |||
Column(modifier = Modifier.padding(end = 16.dp)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave this in the spacer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't get it to work as it was, it was still going to the very edge of the view. Any ideas why? On iOS we use spacers to space out views easily vs adding a spacer for padding reasons so I was pretty confused here haha.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanna give this a whirl:
Column(modifier = Modifier.weight(weight = 1f, fill = false)) {
Spacer(Modifier.height(12.dp))
Text(
text = headerText,
style = headerTextStyle,
)
subtitleText?.let {
Spacer(Modifier.height(4.dp))
Text(
text = it,
style = subtitleTextStyle,
color = BitwardenTheme.colorScheme.text.secondary,
)
}
Spacer(Modifier.height(12.dp))
}
Spacer(Modifier.width(16.dp))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worked like a charm. thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4361 +/- ##
==========================================
- Coverage 89.02% 89.02% -0.01%
==========================================
Files 451 451
Lines 39137 39106 -31
Branches 5524 5523 -1
==========================================
- Hits 34843 34813 -30
Misses 2368 2368
+ Partials 1926 1925 -1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎟️ Tracking
PM-15067
📔 Objective
PreventAccountLockoutScreen
to use theBitwardenContentCard
which matches the figma designs📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes