|
1 | 1 | # @devtools/pay-card |
2 | 2 |
|
3 | | -The Card / Pay DevTool. It puts the Card / Pay feature into a given state from one place, in five |
4 | | -sections: **Feature flags**, **Onboarding** (toggle each step done or not-done), **Reset onboarding**, |
5 | | -**Feature tour** (seen state plus a reset) and **Env vars** (the Card backend values, with the |
6 | | -development tenant ready in each input). |
| 3 | +The Card / Pay DevTool. It puts the Card / Pay feature into a given state from one place. |
7 | 4 |
|
8 | | -The native panel adds a **Secure browser** section at the bottom: a URL field and one button, which |
9 | | -opens that URL in the secure browser the hosted login uses. The host supplies the action, so a host |
10 | | -without such a browser shows no section. |
| 5 | +The shared panel has five sections: **Feature flags**, **Onboarding** (toggle each step done or |
| 6 | +not-done), **Reset onboarding**, **Feature tour** (seen state plus a reset) and **Env vars** (the |
| 7 | +Card backend values, with the development tenant ready in each input). |
11 | 8 |
|
12 | | -The native panel adds four more sections at the top, when the host builds the `auth` prop: |
| 9 | +The native panel adds **Request verify hint** (seen state plus a reset) and, when the host supplies |
| 10 | +navigation, **Quick actions** (Portfolio / Pay tab). It also adds a **Secure browser** section: a |
| 11 | +URL field and one button, which opens that URL in the secure browser the hosted login uses. The |
| 12 | +host supplies the action, so a host without such a browser shows no section. |
| 13 | + |
| 14 | +When the host builds the `auth` prop, the native panel adds four more sections at the top: |
13 | 15 | **Auth session** (the stored tokens, or why the secure store refused a read), **Device secure |
14 | 16 | storage** (read the tokens, damage one, or clear the session), **Send API requests** (renew the |
15 | 17 | session, or get the user) and **MSW Auth Renewal Mock** (what the mocked |
@@ -56,6 +58,10 @@ interface PayCardToolProps { |
56 | 58 | }; |
57 | 59 | hasSeenFeatureTour: boolean; |
58 | 60 | resetPayCardFeatureTourSeen: () => void; |
| 61 | + hasSeenReceiveVerifyHint: boolean; |
| 62 | + resetReceiveVerifyHintSeen: () => void; |
| 63 | + onNavigateToPortfolio?: () => void; |
| 64 | + onNavigateToPayTab?: () => void; |
59 | 65 | env: { |
60 | 66 | // The app reads these values on every request, so `setVar` applies without a restart. Nothing |
61 | 67 | // saves them: after a restart the app reads the build's values again. |
|
0 commit comments