Repository navigation
Expand file tree
/
Copy pathresponsive_surface_catalog.dart
More file actions
362 lines (357 loc) · 15.9 KB
/
Copy pathresponsive_surface_catalog.dart
File metadata and controls
362 lines (357 loc) · 15.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
/// Catalog of interactive surfaces that **must** pass the responsive matrix
/// (device × text scale × real tap). Adding a new bottom sheet / sticky-CTA
/// flow without a matrix gate is a review-blocking gap.
///
/// This is a living list, not a proof of completeness: the self-test in
/// `responsive_surface_catalog_test.dart` verifies that every listed surface's
/// matrix test file exists, its production file exists, and that production
/// file actually references [ScrollableActionsLayout]. It cannot verify that
/// every sticky-CTA surface in the app has been listed here — that is a
/// review responsibility for every new sticky-CTA surface.
///
/// Line coverage % of the repo is a different metric — see docs/testing.md.
library;
/// One surface under the responsive layout contract.
class ResponsiveSurface {
const ResponsiveSurface({
required this.id,
required this.description,
required this.matrixTestPath,
required this.productionPath,
});
final String id;
final String description;
/// Path under `test/` that runs [kFullResponsiveMatrix] (or a documented
/// subset) with [expectFullyTappable] on primary CTAs.
final String matrixTestPath;
/// Path under `lib/` of the production widget that must use
/// [ScrollableActionsLayout] (or equivalent Expanded + scroll + sticky
/// actions).
final String productionPath;
}
/// Living catalog — extend when adding sticky-CTA sheets/pages.
const kResponsiveSurfaceCatalog = <ResponsiveSurface>[
ResponsiveSurface(
id: 'pay_flow_sheet',
description: 'Payment flow explanation sheet opened from the scanner (close-only)',
matrixTestPath: 'test/screens/pay/pay_flow_sheet_responsive_matrix_test.dart',
productionPath: 'lib/screens/pay/widgets/pay_flow_sheet.dart',
),
ResponsiveSurface(
id: 'bitbox_connect_sheet',
description: 'BitBox pairing bottom sheet (all button-bearing states)',
matrixTestPath:
'test/screens/hardware_connect_bitbox/connect_bitbox_responsive_matrix_test.dart',
productionPath: 'lib/screens/hardware_connect_bitbox/widgets/connect_content.dart',
),
ResponsiveSurface(
id: 'dashboard_page',
description: 'Dashboard main page',
matrixTestPath: 'test/screens/dashboard/dashboard_responsive_matrix_test.dart',
productionPath: 'lib/screens/dashboard/dashboard_page.dart',
),
ResponsiveSurface(
id: 'create_wallet_view',
description: 'Create wallet view',
matrixTestPath: 'test/screens/create_wallet/create_wallet_responsive_matrix_test.dart',
productionPath: 'lib/screens/create_wallet/create_wallet_view.dart',
),
ResponsiveSurface(
id: 'verify_pin_page',
description: 'Verify PIN page',
matrixTestPath: 'test/screens/pin/verify_pin_responsive_matrix_test.dart',
productionPath: 'lib/screens/pin/verify_pin_page.dart',
),
ResponsiveSurface(
id: 'kyc_completed_page',
description: 'KYC completed status page',
matrixTestPath: 'test/screens/kyc/subpages/kyc_status_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_completed_page.dart',
),
ResponsiveSurface(
id: 'kyc_manual_review_page',
description: 'KYC manual review status page',
matrixTestPath: 'test/screens/kyc/subpages/kyc_status_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_manual_review_page.dart',
),
ResponsiveSurface(
id: 'kyc_pending_page',
description: 'KYC pending status page',
matrixTestPath: 'test/screens/kyc/subpages/kyc_status_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_pending_page.dart',
),
ResponsiveSurface(
id: 'kyc_unsupported_step_page',
description: 'KYC unsupported-step handoff page',
matrixTestPath: 'test/screens/kyc/subpages/kyc_status_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_unsupported_step_page.dart',
),
ResponsiveSurface(
id: 'kyc_personal_data_missing_user_data_page',
description: 'KYC personal-data missing-payload refresh page',
matrixTestPath: 'test/screens/kyc/subpages/kyc_status_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/steps/personal_data/kyc_personal_data_page.dart',
),
ResponsiveSurface(
id: 'kyc_account_merge_page',
description: 'KYC account merge page',
matrixTestPath: 'test/screens/kyc/kyc_merge_link_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_account_merge_page.dart',
),
ResponsiveSurface(
id: 'kyc_merge_processing_page',
description: 'KYC merge processing page',
matrixTestPath: 'test/screens/kyc/kyc_merge_link_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_merge_processing_page.dart',
),
ResponsiveSurface(
id: 'kyc_link_wallet_page',
description: 'KYC link wallet page',
matrixTestPath: 'test/screens/kyc/kyc_merge_link_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/steps/link_wallet/kyc_link_wallet_page.dart',
),
ResponsiveSurface(
id: 'kyc_financial_data_questions_page',
description: 'KYC financial data questions page',
matrixTestPath:
'test/screens/kyc/steps/financial_data/kyc_financial_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/kyc/steps/financial_data/subpages/kyc_financial_data_questions_page.dart',
),
ResponsiveSurface(
id: 'onboarding_completed_page',
description: 'Onboarding completed page',
matrixTestPath: 'test/screens/onboarding/onboarding_completed_responsive_matrix_test.dart',
productionPath: 'lib/screens/onboarding/onboarding_completed_page.dart',
),
ResponsiveSurface(
id: 'support_create_ticket_page',
description: 'Support create ticket page',
matrixTestPath: 'test/screens/support/support_create_ticket_responsive_matrix_test.dart',
productionPath: 'lib/screens/support/subpages/support_create_ticket_page.dart',
),
ResponsiveSurface(
id: 'settings_edit_address_page',
description: 'Settings edit address form',
matrixTestPath:
'test/screens/settings_user_data/settings_user_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/settings_user_data/subpages/edit_address/settings_edit_address_page.dart',
),
ResponsiveSurface(
id: 'settings_wallet_address_page',
description: 'Wallet address QR page (sticky Send CTA)',
matrixTestPath:
'test/screens/settings_wallet_address/settings_wallet_address_responsive_matrix_test.dart',
productionPath: 'lib/screens/settings_wallet_address/settings_wallet_address_page.dart',
),
ResponsiveSurface(
id: 'settings_edit_name_page',
description: 'Settings edit name form',
matrixTestPath:
'test/screens/settings_user_data/settings_user_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/settings_user_data/subpages/edit_name/settings_edit_name_page.dart',
),
ResponsiveSurface(
id: 'settings_edit_phone_number_page',
description: 'Settings edit phone number form',
matrixTestPath:
'test/screens/settings_user_data/settings_user_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/settings_user_data/subpages/edit_phone_number/settings_edit_phone_number_page.dart',
),
ResponsiveSurface(
id: 'settings_edit_pending_page',
description: 'Settings edit pending status page',
matrixTestPath:
'test/screens/settings_user_data/settings_user_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/settings_user_data/subpages/others/settings_edit_pending_page.dart',
),
ResponsiveSurface(
id: 'settings_edit_failure_page',
description: 'Settings edit failure status page',
matrixTestPath:
'test/screens/settings_user_data/settings_user_data_responsive_matrix_test.dart',
productionPath:
'lib/screens/settings_user_data/subpages/others/settings_edit_failure_page.dart',
),
ResponsiveSurface(
id: 'verify_seed_page',
description: 'Verify seed phrase page (confirm CTA)',
matrixTestPath: 'test/screens/verify_seed/verify_seed_responsive_matrix_test.dart',
productionPath: 'lib/screens/verify_seed/verify_seed_page.dart',
),
ResponsiveSurface(
id: 'restore_wallet_view',
description: 'Restore wallet from seed phrase view (next CTA)',
matrixTestPath: 'test/screens/restore_wallet/restore_wallet_responsive_matrix_test.dart',
productionPath: 'lib/screens/restore_wallet/restore_wallet_view.dart',
),
ResponsiveSurface(
id: 'buy_page',
description: 'Buy page (primary CTA)',
matrixTestPath: 'test/screens/buy/buy_responsive_matrix_test.dart',
productionPath: 'lib/screens/buy/buy_page.dart',
),
ResponsiveSurface(
id: 'pay_quote_page',
description: 'Pay quote page (confirm CTA)',
matrixTestPath: 'test/screens/pay/pay_quote_responsive_matrix_test.dart',
productionPath: 'lib/screens/pay/pay_quote_page.dart',
),
ResponsiveSurface(
id: 'pay_info_page',
description: 'Pay info disclosure (Continue CTA)',
matrixTestPath: 'test/screens/pay/pay_info_responsive_matrix_test.dart',
productionPath: 'lib/screens/pay/pay_info_page.dart',
),
ResponsiveSurface(
id: 'receive_page',
description: 'Receive QR page (sticky Send CTA)',
matrixTestPath: 'test/screens/receive/receive_responsive_matrix_test.dart',
productionPath: 'lib/screens/receive/receive_page.dart',
),
ResponsiveSurface(
id: 'sell_page',
description: 'Sell page (primary CTA)',
matrixTestPath: 'test/screens/sell/sell_responsive_matrix_test.dart',
productionPath: 'lib/screens/sell/sell_page.dart',
),
ResponsiveSurface(
id: 'send_amount_page',
description: 'Send amount page (next CTA)',
matrixTestPath: 'test/screens/send/send_amount_responsive_matrix_test.dart',
productionPath: 'lib/screens/send/send_amount_page.dart',
),
ResponsiveSurface(
id: 'send_info_page',
description: 'Send info disclosure (Continue CTA)',
matrixTestPath: 'test/screens/send/send_info_responsive_matrix_test.dart',
productionPath: 'lib/screens/send/send_info_page.dart',
),
ResponsiveSurface(
id: 'send_confirm_page',
description: 'Send confirmation page (confirm CTA)',
matrixTestPath: 'test/screens/send/send_confirm_responsive_matrix_test.dart',
productionPath: 'lib/screens/send/send_confirm_page.dart',
),
ResponsiveSurface(
id: 'send_process_result_sheet',
description: 'Send process terminal result sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/send/send_process_result_sheet_responsive_matrix_test.dart',
productionPath: 'lib/screens/send/send_process_page.dart',
),
ResponsiveSurface(
id: 'send_recipient_page',
description: 'Send recipient manual-entry block (next CTA)',
matrixTestPath: 'test/screens/send/send_recipient_responsive_matrix_test.dart',
productionPath: 'lib/screens/send/send_recipient_page.dart',
),
ResponsiveSurface(
id: 'setup_pin_page',
description: 'Setup PIN page (sticky numeric keypad as actions)',
matrixTestPath: 'test/screens/pin/setup_pin_responsive_matrix_test.dart',
productionPath: 'lib/screens/pin/setup_pin_page.dart',
),
ResponsiveSurface(
id: 'kyc_failure_page',
description: 'KYC failure status page (no CTA — gates overflow + message reachability only)',
matrixTestPath: 'test/screens/kyc/kyc_static_pages_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/subpages/kyc_failure_page.dart',
),
ResponsiveSurface(
id: 'kyc_signature_unsupported_page',
description:
'KYC signature-unsupported status page (no CTA — gates overflow + message reachability only)',
matrixTestPath: 'test/screens/kyc/kyc_static_pages_responsive_matrix_test.dart',
productionPath:
'lib/screens/kyc/steps/signature_unsupported/kyc_signature_unsupported_page.dart',
),
ResponsiveSurface(
id: 'sell_confirm_sheet',
description: 'Sell confirmation bottom sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/sell/sell_sheets_responsive_matrix_test.dart',
productionPath: 'lib/screens/sell/widgets/sell_confirm_sheet.dart',
),
ResponsiveSurface(
id: 'sell_executed_sheet',
description: 'Sell executed/receipt bottom sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/sell/sell_sheets_responsive_matrix_test.dart',
productionPath: 'lib/screens/sell/widgets/sell_executed_sheet.dart',
),
ResponsiveSurface(
id: 'pay_result_sheet',
description: 'Pay success and failure bottom sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/pay/pay_result_sheet_responsive_matrix_test.dart',
productionPath: 'lib/screens/pay/widgets/pay_result_sheet.dart',
),
ResponsiveSurface(
id: 'forgot_pin_bottom_sheet',
description: 'Forgot-PIN bottom sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/pin/pin_sheets_responsive_matrix_test.dart',
productionPath: 'lib/screens/pin/widgets/forgot_pin_bottom_sheet.dart',
),
ResponsiveSurface(
id: 'enable_biometric_bottom_sheet',
description: 'Enable-biometric bottom sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/pin/pin_sheets_responsive_matrix_test.dart',
productionPath: 'lib/screens/pin/widgets/enable_biometric_bottom_sheet.dart',
),
ResponsiveSurface(
id: 'referral_terms_page',
description: 'Referral terms acceptance page (sticky create CTA)',
matrixTestPath: 'test/screens/referral/referral_responsive_matrix_test.dart',
productionPath: 'lib/screens/referral/referral_terms_page.dart',
),
ResponsiveSurface(
id: 'referral_create_page',
description: 'Referral invite create page (sticky create CTA)',
matrixTestPath: 'test/screens/referral/referral_responsive_matrix_test.dart',
productionPath: 'lib/screens/referral/referral_create_page.dart',
),
ResponsiveSurface(
id: 'referral_overview_page',
description: 'Referral overview page (sticky create CTA)',
matrixTestPath: 'test/screens/referral/referral_responsive_matrix_test.dart',
productionPath: 'lib/screens/referral/referral_overview_page.dart',
),
ResponsiveSurface(
id: 'kyc_registration_referral_step',
description: 'KYC registration invite/promo code step (sticky next/skip CTAs)',
matrixTestPath: 'test/screens/referral/referral_responsive_matrix_test.dart',
productionPath: 'lib/screens/kyc/steps/registration/steps/kyc_registration_referral_step.dart',
),
ResponsiveSurface(
id: 'update_required_page',
description: 'hard-update gate (sticky Update / GitHub / Backup / Receive CTAs)',
matrixTestPath: 'test/screens/update_required/update_required_responsive_matrix_test.dart',
productionPath: 'lib/screens/update_required/update_required_page.dart',
),
// Migration covers 45 surfaces total (bitbox_connect_sheet + 44 above). No
// further known candidates remain from the prior sweep. welcome_page was
// reviewed and found safe (scrolls end-to-end, no separate sticky CTA) — not
// a migration candidate. Not exhaustive — review responsibility for every
// new sticky-CTA surface.
ResponsiveSurface(
id: 'startup_failure_page',
description: 'Startup failure page (Retry / Reset wallet / Contact support)',
matrixTestPath: 'test/screens/startup_failure/startup_failure_responsive_matrix_test.dart',
productionPath: 'lib/screens/startup_failure/startup_failure_page.dart',
),
ResponsiveSurface(
id: 'startup_failure_reset_sheet',
description: 'Startup failure reset-wallet confirmation sheet (shrinkWrap mode)',
matrixTestPath: 'test/screens/startup_failure/startup_failure_responsive_matrix_test.dart',
productionPath: 'lib/screens/startup_failure/widgets/startup_failure_reset_sheet.dart',
),
ResponsiveSurface(
id: 'transaction_detail_return_to_dashboard',
description:
'transaction detail after pay or transfer, with the button back to the dashboard',
matrixTestPath:
'test/screens/transaction_history/transaction_detail_responsive_matrix_test.dart',
productionPath: 'lib/screens/transaction_history/transaction_detail_page.dart',
),
];