Skip to content

Commit 90bc760

Browse files
authored
feat(cat-voices): add heads up to wallet details page (#2774)
1 parent cfbb194 commit 90bc760

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

catalyst_voices/apps/voices/lib/pages/registration/wallet_link/stage/wallet_details_panel.dart

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class WalletDetailsPanel extends StatelessWidget {
3131
_BlocWalletSummary(),
3232
],
3333
),
34-
footer: const _BlocNavigation(),
34+
footer: const _Footer(),
3535
);
3636
}
3737
}
@@ -127,6 +127,51 @@ class _ChooseOtherWalletNavigation extends StatelessWidget {
127127
}
128128
}
129129

130+
class _Footer extends StatelessWidget {
131+
const _Footer();
132+
133+
@override
134+
Widget build(BuildContext context) {
135+
return Column(
136+
crossAxisAlignment: CrossAxisAlignment.start,
137+
children: [
138+
Text(
139+
context.l10n.headsUp,
140+
style: Theme.of(context).textTheme.titleMedium,
141+
),
142+
const SizedBox(height: 8),
143+
const _HeadsUp(),
144+
const SizedBox(height: 24),
145+
const _BlocNavigation(),
146+
],
147+
);
148+
}
149+
}
150+
151+
class _HeadsUp extends StatelessWidget {
152+
const _HeadsUp();
153+
154+
@override
155+
Widget build(BuildContext context) {
156+
return ActionCard(
157+
key: const Key('WalletBalanceHeadsUp'),
158+
icon: VoicesAssets.icons.mailOpen.buildIcon(),
159+
title: Text(
160+
context.l10n.walletBalance,
161+
key: const Key('WalletBalanceHeadsUpTitle'),
162+
),
163+
desc: BulletList(
164+
key: const Key('WalletBalanceHeadsUpList'),
165+
items: [
166+
context.l10n.walletLinkWalletDetailsHeadsUpText,
167+
],
168+
spacing: 0,
169+
),
170+
statusIcon: VoicesAssets.icons.informationCircle.buildIcon(),
171+
);
172+
}
173+
}
174+
130175
class _RegistrationTextBackNextNavigation extends StatelessWidget {
131176
const _RegistrationTextBackNextNavigation();
132177

catalyst_voices/packages/internal/catalyst_voices_localization/lib/l10n/intl_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@
577577
"@walletLinkWalletDetailsNoticeTopUpLink": {
578578
"description": "A link to top-up provide when the user doesn't have enough balance on wallet link screen"
579579
},
580+
"walletLinkWalletDetailsHeadsUpText": "We only read your balance to calculate voting power — we can't access or use your wallet.",
581+
"@walletLinkWalletDetailsHeadsUpText": {
582+
"description": "A heads up content explaining that the app only reads wallet balance and cannot spend it."
583+
},
580584
"walletLinkTransactionTitle": "Let's make sure everything looks right.",
581585
"@walletLinkTransactionTitle": {
582586
"description": "A title in link wallet flow on transaction screen."

0 commit comments

Comments
 (0)