Skip to content

Commit 67727a5

Browse files
Add help text descriptions for social media fields in public profile (#4515)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
1 parent 0e9f986 commit 67727a5

2 files changed

Lines changed: 60 additions & 6 deletions

File tree

frontend/src/components/public-profile-card/index.tsx

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
109109
{null}
110110
</InputWrapper>
111111
</GridColumn>
112-
<InputWrapper title="Website">
112+
<InputWrapper
113+
title="Website"
114+
description={
115+
<FormattedMessage id="profile.publicProfile.website.description" />
116+
}
117+
>
113118
<Input
114119
{...url("participantWebsite")}
115120
required={false}
@@ -118,7 +123,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
118123
errors={getParticipantValidationError("website")}
119124
/>
120125
</InputWrapper>
121-
<InputWrapper title="Mastodon">
126+
<InputWrapper
127+
title="Mastodon"
128+
description={
129+
<FormattedMessage id="profile.publicProfile.mastodon.description" />
130+
}
131+
>
122132
<Input
123133
{...text("participantMastodonHandle")}
124134
required={false}
@@ -127,7 +137,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
127137
errors={getParticipantValidationError("mastodonHandle")}
128138
/>
129139
</InputWrapper>
130-
<InputWrapper title="Instagram">
140+
<InputWrapper
141+
title="Instagram"
142+
description={
143+
<FormattedMessage id="profile.publicProfile.instagram.description" />
144+
}
145+
>
131146
<Input
132147
{...text("participantInstagramHandle")}
133148
required={false}
@@ -136,7 +151,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
136151
errors={getParticipantValidationError("instagramHandle")}
137152
/>
138153
</InputWrapper>
139-
<InputWrapper title="LinkedIn URL">
154+
<InputWrapper
155+
title="LinkedIn URL"
156+
description={
157+
<FormattedMessage id="profile.publicProfile.linkedin.description" />
158+
}
159+
>
140160
<Input
141161
{...url("participantLinkedinUrl")}
142162
required={false}
@@ -145,7 +165,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
145165
errors={getParticipantValidationError("linkedinUrl")}
146166
/>
147167
</InputWrapper>
148-
<InputWrapper title="Facebook URL">
168+
<InputWrapper
169+
title="Facebook URL"
170+
description={
171+
<FormattedMessage id="profile.publicProfile.facebook.description" />
172+
}
173+
>
149174
<Input
150175
{...url("participantFacebookUrl")}
151176
required={false}
@@ -154,7 +179,12 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
154179
errors={getParticipantValidationError("facebookUrl")}
155180
/>
156181
</InputWrapper>
157-
<InputWrapper title="Twitter">
182+
<InputWrapper
183+
title="Twitter"
184+
description={
185+
<FormattedMessage id="profile.publicProfile.twitter.description" />
186+
}
187+
>
158188
<Input
159189
{...text("participantTwitterHandle")}
160190
required={false}

frontend/src/locale/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ Let's get in touch to find the best solution for your business' needs!`,
9191
"profile.publicProfile.yourBio.description":
9292
"Write something about yourself: your interests, your current occupation and more!",
9393
"profile.publicProfile.yourSocials": "Your socials",
94+
"profile.publicProfile.website.description":
95+
"Your website URL (e.g., https://example.com)",
96+
"profile.publicProfile.mastodon.description":
97+
"Your Mastodon handle (e.g., user@mastodon.social)",
98+
"profile.publicProfile.instagram.description":
99+
"Your Instagram handle without @ (e.g., pycon.it)",
100+
"profile.publicProfile.linkedin.description":
101+
"Your LinkedIn profile URL (e.g., https://www.linkedin.com/in/your-profile-here)",
102+
"profile.publicProfile.facebook.description":
103+
"Your Facebook profile URL (e.g., https://www.facebook.com/pythonitalia)",
104+
"profile.publicProfile.twitter.description":
105+
"Your Twitter handle without @ (e.g., pyconit)",
94106
"profile.ticketsEdit.qrCodeDescription":
95107
"The QR Code links to your public profile and can be used to quickly share contact details with fellow attendees and sponsors!",
96108
"profile.ticketsEdit.editProfile":
@@ -2200,6 +2212,18 @@ Usa il pulsante 'Gestisci' nella pagina per confermare o rifiutare il grant. Hai
22002212
"profile.publicProfile.yourBio.description":
22012213
"Scrivi qualcosa su di te: i tuoi interessi, il tuo lavoro attuale e cosi via!",
22022214
"profile.publicProfile.yourSocials": "I tuoi social",
2215+
"profile.publicProfile.website.description":
2216+
"L'URL del tuo sito web (es., https://example.com)",
2217+
"profile.publicProfile.mastodon.description":
2218+
"Il tuo handle Mastodon (es., utente@mastodon.social)",
2219+
"profile.publicProfile.instagram.description":
2220+
"Il tuo handle Instagram senza @ (es., pycon.it)",
2221+
"profile.publicProfile.linkedin.description":
2222+
"L'URL del tuo profilo LinkedIn (es., https://www.linkedin.com/in/il-tuo-profilo)",
2223+
"profile.publicProfile.facebook.description":
2224+
"L'URL del tuo profilo Facebook (es., https://www.facebook.com/pythonitalia)",
2225+
"profile.publicProfile.twitter.description":
2226+
"Il tuo handle Twitter senza @ (es., pyconit)",
22032227
"profile.ticketsEdit.qrCodeDescription":
22042228
"Il QR Code porta al tuo profilo e può essere utilizzato per condividere rapidamente i tuoi contatti con altri partecipanti o sponsors!",
22052229
"profile.ticketsEdit.editProfile":

0 commit comments

Comments
 (0)