Skip to content

Commit 82a83b8

Browse files
authored
chore: change localize text about ideascale account to more clear one (#2271)
1 parent b7c13ee commit 82a83b8

File tree

3 files changed

+38
-32
lines changed

3 files changed

+38
-32
lines changed

catalyst_voices/apps/voices/integration_test/pageobject/onboarding/create_flow/step_3_setup_base_profile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SetupBaseProfilePanel extends OnboardingPageBase {
6565
expect($(ideascaleInfoCard), findsOneWidget);
6666
expect(
6767
infoCardTitleLocator.text,
68-
(await t()).createBaseProfileSetupIdeascaleAccount,
68+
(await t()).createBaseProfileHasIdeascaleAccountAlready,
6969
);
7070
expect(
7171
infoCardDescriptionLocator.text,

catalyst_voices/apps/voices/lib/pages/registration/create_base_profile/stage/setup_panel.dart

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,6 @@ class SetupPanel extends StatelessWidget {
3939
}
4040
}
4141

42-
class _Title extends StatelessWidget {
43-
const _Title();
44-
45-
@override
46-
Widget build(BuildContext context) {
47-
final theme = Theme.of(context);
48-
final textTheme = theme.textTheme;
49-
50-
final textStyle = (textTheme.titleMedium ?? const TextStyle()).copyWith(
51-
color: theme.colors.textOnPrimaryLevel1,
52-
);
53-
54-
return Text(
55-
key: const Key('TitleText'),
56-
context.l10n.createBaseProfileSetupTitle,
57-
style: textStyle,
58-
);
59-
}
60-
}
61-
6242
class _DisplayNameSelector extends StatelessWidget {
6343
const _DisplayNameSelector();
6444

@@ -164,7 +144,7 @@ class _IdeascaleInfoCard extends StatelessWidget {
164144
key: const Key('IdeascaleInfoCard'),
165145
icon: VoicesAssets.icons.mailOpen.buildIcon(),
166146
title: Text(
167-
context.l10n.createBaseProfileSetupIdeascaleAccount,
147+
context.l10n.createBaseProfileHasIdeascaleAccountAlready,
168148
key: const Key('InfoCardTitle'),
169149
),
170150
desc: BulletList(
@@ -179,6 +159,21 @@ class _IdeascaleInfoCard extends StatelessWidget {
179159
}
180160
}
181161

162+
class _Navigation extends StatelessWidget {
163+
final bool isNextEnabled;
164+
165+
const _Navigation({
166+
required this.isNextEnabled,
167+
});
168+
169+
@override
170+
Widget build(BuildContext context) {
171+
return RegistrationBackNextNavigation(
172+
isNextEnabled: isNextEnabled,
173+
);
174+
}
175+
}
176+
182177
class _NavigationSelector extends StatelessWidget {
183178
const _NavigationSelector();
184179

@@ -191,17 +186,22 @@ class _NavigationSelector extends StatelessWidget {
191186
}
192187
}
193188

194-
class _Navigation extends StatelessWidget {
195-
final bool isNextEnabled;
196-
197-
const _Navigation({
198-
required this.isNextEnabled,
199-
});
189+
class _Title extends StatelessWidget {
190+
const _Title();
200191

201192
@override
202193
Widget build(BuildContext context) {
203-
return RegistrationBackNextNavigation(
204-
isNextEnabled: isNextEnabled,
194+
final theme = Theme.of(context);
195+
final textTheme = theme.textTheme;
196+
197+
final textStyle = (textTheme.titleMedium ?? const TextStyle()).copyWith(
198+
color: theme.colors.textOnPrimaryLevel1,
199+
);
200+
201+
return Text(
202+
key: const Key('TitleText'),
203+
context.l10n.createBaseProfileSetupTitle,
204+
style: textStyle,
205205
);
206206
}
207207
}

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,14 @@
775775
"createBaseProfileSetupEmailLabel": "Your e-mail",
776776
"createBaseProfileSetupEmailHint": "E-mail",
777777
"createBaseProfileSetupEmailHelper": "Please provide e-mail used for your Ideascale.",
778-
"createBaseProfileSetupIdeascaleAccount": "Ideascale account",
779-
"createBaseProfileSetupIdeascaleReason1": "Please use the e-mail you use on cardano.ideascale.com",
778+
"createBaseProfileHasIdeascaleAccountAlready": "Submitted proposals in Ideascale before",
779+
"@createBaseProfileHasIdeascaleAccountAlready": {
780+
"description": "Label for info card to let user know to use the same email as in Ideascale if they have already submitted a proposal there."
781+
},
782+
"createBaseProfileSetupIdeascaleReason1": "Be sure to use the same email associated with your Ideascale account",
783+
"@createBaseProfileSetupIdeascaleReason1": {
784+
"description": "Description for info card to let user know to use the same email as in Ideascale if they have already submitted a proposal there."
785+
},
780786
"createBaseProfileAcknowledgementsTitle": "Mandatory Acknowledgements",
781787
"createBaseProfileAcknowledgementsToS": "I confirm that I have read and agree to be bound by {tos}.",
782788
"catalystTos": "Project Catalyst Terms and Conditions",

0 commit comments

Comments
 (0)