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

Remove embark #1855

Merged
merged 35 commits into from
Nov 1, 2023
Merged

Conversation

StylianosGakis
Copy link
Member

With this, other things are allowed to go, like:
Fallbacks to embark claim flow and embark moving flow
Offer screen entirely
Legacy moving flow (Now, f-flag turns off the entire feature instead)
Everything to do with the old quote_cart
Danish address autocomplete
Old Swedish login dialog (replaced with new login design)
A bunch of giraffe queries and mutations
CheckoutActivity
Cross selling result (coming from Offer screen)
Notification tracking activity
Old Perils adapter
Legacy change address
HonestyPledgeBottomSheet
A quack ton of XML files 😍
The ones leftover are mostly for Chat. Common claims (Emergency activity) is bound to go soon too.

For the deep link to point to for now while we still have one payment
connection link.
The ones that are still relevant do it through androidx.navigation
instead. The ones left are to be deleted when moving flow is out which
allows us to delete the offer page.
Should now just be handled by the androidx.navigation deep link handling
To be passed to Trustly to get informed about success/failure
Octopus has to also contribute its metadata so that dependant modules
can use its schema. In this case
InitiateTrustlyConnectPaymentSession.graphql.
Some sample untested UI code for all of this to be tested when the
presenter is hooked up correctly.
Just make the normal connect-payment, which is trustly for SE.
Then add the second one for Adyen. This way the deep link goes to the
Trustly one by default, but if you are in SE/NO you just get navigated
to the right place. If not, nothing happens.
Wire up TrustlyPresenter
Navigate to Adyen connect-payment in non SE market
Use the right strings
Use the right insets for the WebView
Simply do not render the layout until we get the screen size. This way
the HomeLayout won't first assume the screen size has 0 height and try
to lay out everything in a column at the top of the screen.
This way the animated placement on the cards won't do the jump that it
used to
Bump authlib and use the exposed PaymentRepository to fetch the right
payment connection URL from there directly
Add adyen screen and Presenter
Add a special error case for when the initialization of connect payment
fails, and not the connecting of the payment itself.
Fix the loading bar in the WebViews by making it go on top of the
WebView instead of pushing it when it appears.
Remove the entire Adyen SDK and all adjacent classes which use adyen
related content, like the serializer in apollo-giraffe
Remove the unused queries and mutations
Update the readme with the updated instructions to get setup, and remove
the Adyen related strings that were setup in CI
Shrink PaymentRepository to only use the public API it needs, and remove
the unused ones

todo: Remove OfferActivity and Embark which also were depending on these
classes
With this, other things are allowed to go, like:
Fallbacks to embark claim flow and embark moving flow
Offer screen entirely
Legacy moving flow (Now, f-flag turns off the entire feature instead)
Everything to do with the old quote_cart
Danish address autocomplete
Old Swedish login dialog (replaced with new login design)
A bunch of giraffe queries and mutations
CheckoutActivity
Cross selling result (coming from Offer screen)
Notification tracking activity
Old Perils adapter
Legacy change address
HonestyPledgeBottomSheet
A quack ton of XML files 😍

Some unused resources are for sure gonna be left after this, but they
can always be eliminated gradually
All have been unused for over 1 year, and with the migration away from
Giraffe, will never see use anyway
These are reported as trusted redirects from our backend, which we can
use to be informed about when the connection is finished, successfully
or not.
This also automatically fixes the issue with the payment information not
being refreshed when the connection is done and you come back to this
screen.
@StylianosGakis StylianosGakis requested a review from a team as a code owner November 1, 2023 13:36
@StylianosGakis StylianosGakis merged commit ba127df into develop Nov 1, 2023
4 checks passed
@StylianosGakis StylianosGakis deleted the refactor/remove_embark_offerscreen_quotecart branch November 1, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants