GoodDollar / GoodProtocolUI

UI for the GoodProtocol smart contracts
https://good-swap.vercel.app
GNU General Public License v3.0
7 stars 12 forks source link

[GoodId-dapp]: onboarding flow implementation #550

Open L03TJ3 opened 2 months ago

L03TJ3 commented 2 months ago

Business Description

We want to implement a new onboard flow

Detailed Description of Functionality

Claim page

the claim page has two different states:

What should happen when a user clicks on the blue claim now button (Implementation of the Web3Action button):

  1. checks if a user is connected, if not requests to connect
  2. checks if a user wallet is on the right chain, if not request to switch
  3. if connected and on the right chain we verify if a user has already done the upgrade flow 3a. if yes --> continue to new claim screen Depending on the final design it either automatically triggers the claim (like it does now) or it shows the new claim screen with separate claim buttons per available pool

3b. if no --> navigate to the good-id page.

GoodId page (Tab for this page is only shown for already whitelisted wallets, that will not change)

The goodid page can have various states.

What should happen for the pre-upgrade 'upgrade' button and claim-button action navigation?

Technical Implementation

Design Reference:

(Mobile) image

Acceptance Criteria

Specify criteria that will be used to determine if the feature meets the requirements and functions correctly.