Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
fd3c553 to
b241352
Compare
…tree/braintree_android into add-basic-pay-later-button
There was a problem hiding this comment.
This generally looks great! A couple high level questions I think are worth asking
- The code for the pay later button is basically the same as that PayPalButton code. Is there any way to extract out a base class or something to reduce the amount of duplicated code?
- I noticed there weren't any analytics in here. Are those getting added later?
|
Op also looks like there are lint errors somewhere |
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ah yep, agreed. i pulled the color/style mapping into a shared |
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Ok cool! I think I was also wondering if there was a way to separate out the drawing methods since they are also really similar and then have both the PayPalButton and PayLaterButton both use the shared class for style and drawing? Do you think that would be a possibility? I just think it would make future changes a bit easier if it was all in one place |
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
yes, great callout. i've pulled the drawing, sizing, spinner logic into an internal |
mzlangreder
left a comment
There was a problem hiding this comment.
Are there scenarios where we might fail while still loading?
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Op. The AI just uncovered a bug in the payment buttons. If there is a failure that doesn't route through |
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ah yes, i think failures from |
Great! Thank you! I'll update the bug ticket to only include the venmo button since this fixes the other two. Also, are there tests for these cases? I'm not sure I see any where we check to make sure the button is re-enabled after the failure cases |
saralvasquez
left a comment
There was a problem hiding this comment.
I think with confirmation of the test cases I mentioned above this is ready to go. Great work!
Summary of changes
Screen_recording_20261014_114913.webm
AI Usage
Which AI Agent Was Used?
How was AI used?
unit test generation and xml asset loading
Estimated AI Code Contribution
Checklist
[ ] Added a changelog entryAuthors