After someone successfully scanned their face, we should show a screen to confirm the data that was scanned.
HappyPath:The flow of the screen when the user reaches the segmentation screen:
A modal pops up showing we are processing their data
We request location permission
we get their fv signature from local storage which we saved at the start of the onboarding flow (If not found on gooddapp, we do have to request their signature again. on the wallet too, but we can do this in the background without the user having to sign)
two calls are made to the api endpoints 'identity' and 'location'. we get a verifiable credential for each from the goodserver
the certificates are stored in the certificates db
the verified values for age,gender,location are then read from the certificates
age needs to be destructured through the from/to fields of the credentialsubject in the Age certificate
country name needs to be mapped from the country code taken from the credentialsubject in the Location certificate
gender can be taken as is from the credentialsubject in the Gender certificate
the modal closes and we show the segmentation screen with the three values and two buttons where a user can agree/disagree with the shown values
A user clicks on 'No, I am not
--> is navigated through the wizard to the segmentation-dispute screens (This flow is not finalized yet)
Unhappy path:
When processing the data and requesting the certificates something can go wrong.
Could be a technical error, could be a user denies permission to read location etc
In any circumstance where we are not able to verify all their data they will see a similar segmentation screen but the action of the buttons is different.
whichever value we were not able to determine will be shown as 'Unverified'
Because we could not determine all values when the user clicks on 'Yes, I am' will be in this scenario skipping the 'agreement' screen and will continue to the final 'confirmation screen'
Acceptance Criteria
[ ] - The UI follows the design defined in figma
[ ] - we show the appropriate values taken from the different certificates
[ ] - The user is navigated to the appropriate screens depending on if it agrees or not with the determined values
Business Description
https://github.com/GoodDollar/GoodWeb3-Mono/issues/140
Detailed Description of Functionality
After someone successfully scanned their face, we should show a screen to confirm the data that was scanned.
HappyPath:The flow of the screen when the user reaches the segmentation screen:
Where does a user navigate to after
Unhappy path:
When processing the data and requesting the certificates something can go wrong. Could be a technical error, could be a user denies permission to read location etc In any circumstance where we are not able to verify all their data they will see a similar segmentation screen but the action of the buttons is different.
Acceptance Criteria