# Use case overview
The three flow diagrams present on this page display the relation between use cases. This relation is based
on which use cases can be triggered by a given use case, therefore giving a representation
on which flows a user can have between various use cases. For readability the relations
between the various use cases are divided into 3 diagrams, one showing the use case flow
for opening and onboarding the app, the second displays the use case flow from the app dashboard,
and the third showing the use case flow from viewing the app menu.
## Opening and onboarding use case flow
```{mermaid}
flowchart LR
INTRODUCE["1.1 Introduce the app"]
OPEN["1.2 Open the app"]
SETUP_PIN["2.1 Setup PIN & biometrics"]
UNLOCK["2.3 Unlock the app"]
OBTAIN_PID["3.1 Obtain PID"]
ALL_CARDS["7.1 Show all cards"]
APP_INFO["9.2 Get app info"]
WIPE["9.4 Wipe app data"]
OPEN --> UNLOCK
OPEN --> INTRODUCE
UNLOCK --> ALL_CARDS
UNLOCK --> OBTAIN_PID
UNLOCK --> APP_INFO
UNLOCK --> WIPE
INTRODUCE --> SETUP_PIN
OBTAIN_PID --> ALL_CARDS
WIPE --> INTRODUCE
SETUP_PIN --> OBTAIN_PID
SETUP_PIN --> APP_INFO
```
## Dashboard use case flow
The two circle nodes in the flow diagram underneath depict the same point in the flow. When user reaches the second circle node
the user will start again at the first circle node.
```{mermaid}
flowchart LR
START((" "))
END((" "))
APP_TOUR["1.3 Watch explainer videos"]
OBTAIN_CARDS["4.1 Obtain EAA"]
SHARE["5.1 Share data with RP"]
LOGIN["5.2 Log in to RP"]
ALL_HISTORY["6.1 Browse app activity"]
CARD_HISTORY["6.2 Browse card activity"]
HISTORY_EVENT["6.3 View activity details"]
ALL_CARDS["7.1 Show all cards"]
CARD["7.2 View card Details"]
MENU["9.1 View app menu"]
APP_INFO["9.2 Get app info"]
QR["9.9 Scan QR"]
START --> ALL_CARDS
ALL_CARDS --> APP_TOUR
ALL_CARDS --> MENU
ALL_CARDS --> QR
ALL_CARDS --> ALL_HISTORY
ALL_CARDS --> CARD
ALL_CARDS --> APP_INFO
OBTAIN_CARDS --> END
SHARE --> END
LOGIN --> END
QR --> OBTAIN_CARDS
QR --> SHARE
QR --> LOGIN
ALL_HISTORY --> HISTORY_EVENT
CARD_HISTORY --> HISTORY_EVENT
CARD --> CARD_HISTORY
```
## Menu use case flow
```{mermaid}
flowchart LR
ELLIP1[⋯]
ELLIP2[⋯]
ELLIP3[⋯]
INTRODUCE["1.1 Introduce the app"]
APP_TOUR["1.3 Watch explainer videos"]
TOGGLEBIO["2.2 Toggle biometrics"]
UNLOCK["2.3 Unlock the app"]
CHANGEPIN["2.6 Change PIN"]
OBTAIN_CARDS["4.1 Obtain EAA"]
SHARE["5.1 Share data with RP"]
LOGIN["5.2 Log in to RP"]
ALL_HISTORY["6.1 Browse app activity"]
HISTORY_EVENT["6.3 View activity details"]
MENU["9.1 View app menu"]
APP_INFO["9.2 Get app info"]
CHANGELANG["9.3 Change app language"]
WIPE["9.4 Wipe app data"]
HELP["9.6 Get help"]
LOGOUT["9.7 Logout of app"]
QR["9.9 Scan QR"]
WIPE --> INTRODUCE
OBTAIN_CARDS --> ELLIP1
SHARE --> ELLIP2
LOGIN --> ELLIP3
QR --> OBTAIN_CARDS
QR --> SHARE
QR --> LOGIN
MENU --> APP_TOUR
MENU --> QR
MENU --> ALL_HISTORY
MENU --> APP_INFO
MENU --> LOGOUT
MENU --> HELP
MENU --> CHANGEPIN
MENU --> TOGGLEBIO
MENU --> CHANGELANG
MENU --> WIPE
ALL_HISTORY --> HISTORY_EVENT
LOGOUT --> UNLOCK
classDef trans fill:transparent,stroke:transparent
class ELLIP1 trans
class ELLIP2 trans
class ELLIP3 trans
```