-
Notifications
You must be signed in to change notification settings - Fork 650
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
Link Payment Method Rows UI #9681
base: master
Are you sure you want to change the base?
Conversation
521b349
to
a694583
Compare
Diffuse output:
APK
DEX
ARSC
|
f2827b1
to
36b7739
Compare
Add screenshots Minor fixes clean up fix test theme Fix screenshots Remove strings remove unused payment details remove alpha Delete screenshots Update strings.xml Update screenshots Fix screenshots
1ccdab7
to
98a4d44
Compare
link/res/values/strings.xml
Outdated
<!-- Default name for bank account payment method when bank name is unavailable --> | ||
<string name="stripe_wallet_bank">Bank</string> | ||
<!-- Accessibility description for Passthrough payment method --> | ||
<string name="stripe_wallet_passthrough_description" translatable="false">Passthrough</string> |
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.
why is this not translatable? I would think that this word doesn't make sense in many languages
@JvmStatic | ||
@Parameterized.Parameters(name = "{0}") | ||
@SuppressWarnings("LongMethod") | ||
fun data(): List<TestCase> { |
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.
for the screenshot tests where there's only one parameter, it doesn't seem to give us many benefits to make the test parameterized. I think it would make it harder for us to track down a test case that's failing and is also a bit less readable than e.g. using a helper function which would enable us to include just the relevant parameters for that test case
onMenuButtonClick = onMenuButtonClick | ||
) | ||
} | ||
TabRowDefaults.Divider( |
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.
should the divider be included in the list itself, rather than on each individual list item? This seems like it would give us less control over something like not having a divider shown at the bottom of the list
} | ||
|
||
val showWarning = (paymentDetails as? Card)?.isExpired ?: false | ||
if (showWarning && !isSelected) { |
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.
why do we not show the warning if the PM is selected? That is kind of surprising -- presumably a user would still want to know if their card is expired especially if they had selected that card
Summary
Compose UI for Link Payment Method Rows
Motivation
JIRA
Testing
Screenshots
Changelog