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

[βœ…] NT-1133 Enabling pledge button only when all fields are valid #836

Merged
merged 3 commits into from
Apr 13, 2020

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Apr 10, 2020

πŸ“² What

Enabling pledge button only when shipping rules have loaded, the pledge amount is valid, and a card has been selected.

πŸ€” Why

It's nice.

πŸ›  How

  • pledgeButtonIsEnabled only emits when the pledge total is valid and a card has been selected
  • Tests
    • Made a helper method apolloClientWithStoredCards to clean up.

bugs

  • Fixed bug where stored cards were fetched 5 times instead of 1
  • Fixed bug where pledgeButtonIsGone was changing the wrong view

πŸ‘€ See

Without shipping With shipping
device-2020-04-10-185215 2020-04-10 18_56_11 device-2020-04-10-185558 2020-04-10 19_02_03

πŸ“‹ QA

Pledgeβ„’

Story πŸ“–

NT-1133

Updated tests that broke because international projects don't accept Discover.
# Conflicts:
#	app/src/main/java/com/kickstarter/viewmodels/PledgeFragmentViewModel.kt
@eoji eoji merged commit 263a79d into NT-1103 Apr 13, 2020
@eoji eoji deleted the NT-1133 branch April 13, 2020 15:27
eoji added a commit that referenced this pull request Apr 20, 2020
* [🦢🏾] NT-1104 Add Pledge screen footer (#817)
* [⬇] NT-1120 Vertical payment methods in Pledge screen (#821)
* [πŸ”¨] NT-1121 Stored cards redesign (#822)
* [πŸ›’] NT-1105 Kickstarter is not a store redesign (#823)
* [πŸ’³] NT-1122 Initial card selection (#824)
* [⏳] NT-1124 Loading state for payment methods (#825)
* [βž•] NT-1125 New card CTA (#828)
* [πŸ’³] NT-1123 Last four digits copy (#826)
* [πŸ’³] NT-1123 Card not allowed copy (#827)
* [🎨] NT-1111 Adding 2 buttons in the new pledge footer (#830)
* [πŸ”Œ] NT-1129 Adding progress state for pledging (#831)
* [πŸ—£] NT-1126 Payment methods a11y (#829)
* [πŸ‘·πŸΎβ€β™€οΈ] NT-1128 Moved continue button in Pledge screen to footer (#833)
* [⚠️] NT-1131 Pledge error Toasts (#832)
* [␑] NT-1127 Removing Update pledge button (#834)
* [πŸ“] NT-1130 Pledge button CTA (#835)
* [βœ…] NT-1133 Enabling pledge button only when all fields are valid (#836)
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.

None yet

2 participants