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

chore: [IOBP-408] Added iowallet:// as custom url schema to provide outcome #320

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented Nov 21, 2023

Short description

This PR adds the iowallet:// as custom url schema into onboarding wallet flow to provide the outcome selected

List of changes proposed in this pull request

  • Into html page, has been changed the url schema with iowallet:// in order to be triggered as callback to the custom webview implemented inside the app

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #320 (e04af2a) into master (cafc36d) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is n/a.

❗ Current head e04af2a differs from pull request most recent head 23b51f3. Consider uploading reports for the commit 23b51f3 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #320   +/-   ##
=======================================
  Coverage   67.73%   67.73%           
=======================================
  Files         144      144           
  Lines        5009     5009           
  Branches      587      587           
=======================================
  Hits         3393     3393           
  Misses       1615     1615           
  Partials        1        1           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7db8657...23b51f3. Read the comment docs.

@Hantex9 Hantex9 merged commit 4f37306 into master Nov 28, 2023
4 checks passed
Hantex9 added a commit to pagopa/io-app that referenced this pull request Nov 29, 2023
## ⚠️ Depends on #5189 and
pagopa/io-dev-api-server#320 ⚠️

## Short description
This PR changes the new wallet onboarding flow using the custom web view
implemented by Authentication team, ensuring an improved and fulfilling
user experience.

## List of changes proposed in this pull request
- Removed the previous `WalletOnboardingWebView` component
- Added a new custom hook `useWalletOnboardingWebView` which implements
all the business logic to start an onboarding process showing the custom
webview. It gives a function `startOnboarding` which accept as input the
paymentMethodId and whenever the webview is closed, it emit an
`onSuccess` or `onFailure` or `onError` or `onDismiss` event, in this
way this hook can be more flexible and reusable in other flows (such as
the payment flow)
- Edited the previous `WalletOnboardingStartScreen` to
`WalletOnboardingFeedbackScreen` which shows a screen with the relative
result screen page

## How to test
- Checkout this PR on dev-server:
pagopa/io-dev-api-server#320
- Open the `New wallet playground` section;
- Start the onboarding flow;
- Select a payment method into the list
- It will shows a webview into a modal, select the outcome desidred and
check that the feedback page is correct

## Preview


https://github.com/pagopa/io-app/assets/34343582/27852172-576e-464d-be4e-71394f3ec488

---------

Co-authored-by: Jacopo Pompilii <[email protected]>
Co-authored-by: Martino Cesari Tomba <[email protected]>
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.

2 participants