Skip to content

Commit

Permalink
MBL-1556: Add network calls to confirm address and requery the PPO ca…
Browse files Browse the repository at this point in the history
…rd list (#2088)

* Add infinite scroll to PPO screen

* Attempting to fix tests

* Test paging source

* linter

* Merge conflicts

* Linter

* Fixes

* Linter

* Testing

* Fix

* update graphql schema

* fix

* Hooked up requery and tests

* lint

* Cleanup

* trying to fix tests

* Fixed flaky tests

* Cleanup

* lint

* cleanup

* linter

---------

Co-authored-by: Yun <[email protected]>
Co-authored-by: Leigh Douglas <[email protected]>
  • Loading branch information
3 people authored Aug 6, 2024
1 parent 2d6291c commit 07cc7e4
Show file tree
Hide file tree
Showing 25 changed files with 13,377 additions and 54,382 deletions.
4 changes: 2 additions & 2 deletions app/src/main/graphql/checkout.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ mutation CompleteOnSessionCheckout($checkoutId: ID!, $paymentIntentClientSecret:
}
}

mutation completeOrder($projectId: ID! $stripePaymentMethodId: String, $paymentSourceId: String, $paymentSourceReusable: Boolean, $paymentMethodTypes: [String!]) {
completeOrder(input:{ projectId: $projectId, stripePaymentMethodId: $stripePaymentMethodId, paymentSourceId: $paymentSourceId, paymentSourceReusable: $paymentSourceReusable, paymentMethodTypes: $paymentMethodTypes }) {
mutation completeOrder($projectId: ID!, $stripePaymentMethodId: String, $paymentSourceId: String, $paymentSourceReusable: Boolean, $paymentMethodTypes: [String!]) {
completeOrder(input:{stripePaymentMethodId: $stripePaymentMethodId, paymentSourceId: $paymentSourceId, paymentSourceReusable: $paymentSourceReusable, paymentMethodTypes: $paymentMethodTypes }) {
status
clientSecret
}
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ fragment ppoCard on Backing {
amount {
...amount
}
deliveryAddress {
id
}
project {
name
id
Expand Down
38 changes: 15 additions & 23 deletions app/src/main/graphql/pledgeProjectsOverview.graphql
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
query PledgedProjectsOverview($first: Int, $after: String, $last: Int, $before: String) {
pledgeProjectsOverview {
categories {
count
slug
title
}
pledges(first : $first, after: $after, last : $last, before: $before) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
pledgeProjectsOverview {
pledges(first : $first, after: $after, last : $last, before: $before) {
totalCount
edges {
cursor
cursor
node {
backing {
... ppoCard
}
backing {
...ppoCard
}
tierType
tags
}
}
nodes {
backing {
... ppoCard
}
pageInfo {
hasPreviousPage
hasNextPage
endCursor
startCursor
}
}
}
}
}
}
Loading

0 comments on commit 07cc7e4

Please sign in to comment.