Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(neon_framework): Enable viewing and editing profile properties #2345

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell/dart_flutter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ unfocus
writeln
xmark
arrowshape
autocorrect
32 changes: 31 additions & 1 deletion packages/neon_framework/lib/l10n/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
}
}
},
"errorUserPasswordConfirmationRequired": "You need to confirm your user password",
"errorWrongUserPassword": "Wrong user password",
"errorDialog": "An error has occurred",
"actionYes": "Yes",
"actionNo": "No",
Expand Down Expand Up @@ -199,6 +201,33 @@
}
}
},
"accountOptionsCategoryProfile": "Profile",
"accountOptionsProfileDisplayNameLabel": "Full name",
"accountOptionsProfileDisplayNameHint": "Your full name",
"accountOptionsProfileEmailLabel": "Email",
"accountOptionsProfileEmailHint": "Primary email for password reset and notifications",
"accountOptionsProfilePhoneLabel": "Phone number",
"accountOptionsProfilePhoneHint": "Your phone number",
"accountOptionsProfileAddressLabel": "Location",
"accountOptionsProfileAddressHint": "Your city",
"accountOptionsProfileWebsiteLabel": "Website",
"accountOptionsProfileWebsiteHint": "Your website",
"accountOptionsProfileTwitterLabel": "X (formerly Twitter)",
"accountOptionsProfileTwitterHint": "Your X (formerly Twitter) handle",
"accountOptionsProfileFediverseLabel": "Fediverse (e.g. Mastodon)",
"accountOptionsProfileFediverseHint": "Your handle",
"accountOptionsProfileOrganisationLabel": "Organisation",
"accountOptionsProfileOrganisationHint": "Your organisation",
"accountOptionsProfileRoleLabel": "Role",
"accountOptionsProfileRoleHint": "Your role",
"accountOptionsProfileHeadlineLabel": "Headline",
"accountOptionsProfileHeadlineHint": "Your headline",
"accountOptionsProfileBiographyLabel": "About",
"accountOptionsProfileBiographyHint": "Your biography",
"accountOptionsProfileScopePrivate": "Only visible to people matched via phone number integration through Talk on mobile",
"accountOptionsProfileScopeLocal": "Only visible to people on this instance and guests",
"accountOptionsProfileScopeFederated": "Only synchronize to trusted servers",
"accountOptionsProfileScopePublished": "Synchronize to trusted servers and the global and public address book",
"accountOptionsInitialApp": "App to show initially",
"accountOptionsAutomatic": "Automatic",
"licenses": "Licenses",
Expand Down Expand Up @@ -278,5 +307,6 @@
"userStatusClearAtThisWeek": "This week",
"userStatusActionClear": "Clear status",
"userStatusStatusMessage": "Status message",
"userStatusOnlineStatus": "Online status"
"userStatusOnlineStatus": "Online status",
"passwordConfirmationUserPassword": "Your user password"
}
180 changes: 180 additions & 0 deletions packages/neon_framework/lib/l10n/localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,18 @@ abstract class NeonLocalizations {
/// **'Route not found: {route}'**
String errorRouteNotFound(String route);

/// No description provided for @errorUserPasswordConfirmationRequired.
///
/// In en, this message translates to:
/// **'You need to confirm your user password'**
String get errorUserPasswordConfirmationRequired;

/// No description provided for @errorWrongUserPassword.
///
/// In en, this message translates to:
/// **'Wrong user password'**
String get errorWrongUserPassword;

/// No description provided for @errorDialog.
///
/// In en, this message translates to:
Expand Down Expand Up @@ -713,6 +725,168 @@ abstract class NeonLocalizations {
/// **'{used} used of {total} ({relative}%)'**
String accountOptionsQuotaUsedOf(String used, String total, String relative);

/// No description provided for @accountOptionsCategoryProfile.
///
/// In en, this message translates to:
/// **'Profile'**
String get accountOptionsCategoryProfile;

/// No description provided for @accountOptionsProfileDisplayNameLabel.
///
/// In en, this message translates to:
/// **'Full name'**
String get accountOptionsProfileDisplayNameLabel;

/// No description provided for @accountOptionsProfileDisplayNameHint.
///
/// In en, this message translates to:
/// **'Your full name'**
String get accountOptionsProfileDisplayNameHint;

/// No description provided for @accountOptionsProfileEmailLabel.
///
/// In en, this message translates to:
/// **'Email'**
String get accountOptionsProfileEmailLabel;

/// No description provided for @accountOptionsProfileEmailHint.
///
/// In en, this message translates to:
/// **'Primary email for password reset and notifications'**
String get accountOptionsProfileEmailHint;

/// No description provided for @accountOptionsProfilePhoneLabel.
///
/// In en, this message translates to:
/// **'Phone number'**
String get accountOptionsProfilePhoneLabel;

/// No description provided for @accountOptionsProfilePhoneHint.
///
/// In en, this message translates to:
/// **'Your phone number'**
String get accountOptionsProfilePhoneHint;

/// No description provided for @accountOptionsProfileAddressLabel.
///
/// In en, this message translates to:
/// **'Location'**
String get accountOptionsProfileAddressLabel;

/// No description provided for @accountOptionsProfileAddressHint.
///
/// In en, this message translates to:
/// **'Your city'**
String get accountOptionsProfileAddressHint;

/// No description provided for @accountOptionsProfileWebsiteLabel.
///
/// In en, this message translates to:
/// **'Website'**
String get accountOptionsProfileWebsiteLabel;

/// No description provided for @accountOptionsProfileWebsiteHint.
///
/// In en, this message translates to:
/// **'Your website'**
String get accountOptionsProfileWebsiteHint;

/// No description provided for @accountOptionsProfileTwitterLabel.
///
/// In en, this message translates to:
/// **'X (formerly Twitter)'**
String get accountOptionsProfileTwitterLabel;

/// No description provided for @accountOptionsProfileTwitterHint.
///
/// In en, this message translates to:
/// **'Your X (formerly Twitter) handle'**
String get accountOptionsProfileTwitterHint;

/// No description provided for @accountOptionsProfileFediverseLabel.
///
/// In en, this message translates to:
/// **'Fediverse (e.g. Mastodon)'**
String get accountOptionsProfileFediverseLabel;

/// No description provided for @accountOptionsProfileFediverseHint.
///
/// In en, this message translates to:
/// **'Your handle'**
String get accountOptionsProfileFediverseHint;

/// No description provided for @accountOptionsProfileOrganisationLabel.
///
/// In en, this message translates to:
/// **'Organisation'**
String get accountOptionsProfileOrganisationLabel;

/// No description provided for @accountOptionsProfileOrganisationHint.
///
/// In en, this message translates to:
/// **'Your organisation'**
String get accountOptionsProfileOrganisationHint;

/// No description provided for @accountOptionsProfileRoleLabel.
///
/// In en, this message translates to:
/// **'Role'**
String get accountOptionsProfileRoleLabel;

/// No description provided for @accountOptionsProfileRoleHint.
///
/// In en, this message translates to:
/// **'Your role'**
String get accountOptionsProfileRoleHint;

/// No description provided for @accountOptionsProfileHeadlineLabel.
///
/// In en, this message translates to:
/// **'Headline'**
String get accountOptionsProfileHeadlineLabel;

/// No description provided for @accountOptionsProfileHeadlineHint.
///
/// In en, this message translates to:
/// **'Your headline'**
String get accountOptionsProfileHeadlineHint;

/// No description provided for @accountOptionsProfileBiographyLabel.
///
/// In en, this message translates to:
/// **'About'**
String get accountOptionsProfileBiographyLabel;

/// No description provided for @accountOptionsProfileBiographyHint.
///
/// In en, this message translates to:
/// **'Your biography'**
String get accountOptionsProfileBiographyHint;

/// No description provided for @accountOptionsProfileScopePrivate.
///
/// In en, this message translates to:
/// **'Only visible to people matched via phone number integration through Talk on mobile'**
String get accountOptionsProfileScopePrivate;

/// No description provided for @accountOptionsProfileScopeLocal.
///
/// In en, this message translates to:
/// **'Only visible to people on this instance and guests'**
String get accountOptionsProfileScopeLocal;

/// No description provided for @accountOptionsProfileScopeFederated.
///
/// In en, this message translates to:
/// **'Only synchronize to trusted servers'**
String get accountOptionsProfileScopeFederated;

/// No description provided for @accountOptionsProfileScopePublished.
///
/// In en, this message translates to:
/// **'Synchronize to trusted servers and the global and public address book'**
String get accountOptionsProfileScopePublished;

/// No description provided for @accountOptionsInitialApp.
///
/// In en, this message translates to:
Expand Down Expand Up @@ -868,6 +1042,12 @@ abstract class NeonLocalizations {
/// In en, this message translates to:
/// **'Online status'**
String get userStatusOnlineStatus;

/// No description provided for @passwordConfirmationUserPassword.
///
/// In en, this message translates to:
/// **'Your user password'**
String get passwordConfirmationUserPassword;
}

class _NeonLocalizationsDelegate extends LocalizationsDelegate<NeonLocalizations> {
Expand Down
92 changes: 92 additions & 0 deletions packages/neon_framework/lib/l10n/localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ class NeonLocalizationsEn extends NeonLocalizations {
return 'Route not found: $route';
}

@override
String get errorUserPasswordConfirmationRequired => 'You need to confirm your user password';

@override
String get errorWrongUserPassword => 'Wrong user password';

@override
String get errorDialog => 'An error has occurred';

Expand Down Expand Up @@ -364,6 +370,89 @@ class NeonLocalizationsEn extends NeonLocalizations {
return '$used used of $total ($relative%)';
}

@override
String get accountOptionsCategoryProfile => 'Profile';

@override
String get accountOptionsProfileDisplayNameLabel => 'Full name';

@override
String get accountOptionsProfileDisplayNameHint => 'Your full name';

@override
String get accountOptionsProfileEmailLabel => 'Email';

@override
String get accountOptionsProfileEmailHint => 'Primary email for password reset and notifications';

@override
String get accountOptionsProfilePhoneLabel => 'Phone number';

@override
String get accountOptionsProfilePhoneHint => 'Your phone number';

@override
String get accountOptionsProfileAddressLabel => 'Location';

@override
String get accountOptionsProfileAddressHint => 'Your city';

@override
String get accountOptionsProfileWebsiteLabel => 'Website';

@override
String get accountOptionsProfileWebsiteHint => 'Your website';

@override
String get accountOptionsProfileTwitterLabel => 'X (formerly Twitter)';

@override
String get accountOptionsProfileTwitterHint => 'Your X (formerly Twitter) handle';

@override
String get accountOptionsProfileFediverseLabel => 'Fediverse (e.g. Mastodon)';

@override
String get accountOptionsProfileFediverseHint => 'Your handle';

@override
String get accountOptionsProfileOrganisationLabel => 'Organisation';

@override
String get accountOptionsProfileOrganisationHint => 'Your organisation';

@override
String get accountOptionsProfileRoleLabel => 'Role';

@override
String get accountOptionsProfileRoleHint => 'Your role';

@override
String get accountOptionsProfileHeadlineLabel => 'Headline';

@override
String get accountOptionsProfileHeadlineHint => 'Your headline';

@override
String get accountOptionsProfileBiographyLabel => 'About';

@override
String get accountOptionsProfileBiographyHint => 'Your biography';

@override
String get accountOptionsProfileScopePrivate =>
'Only visible to people matched via phone number integration through Talk on mobile';

@override
String get accountOptionsProfileScopeLocal => 'Only visible to people on this instance and guests';

@override
String get accountOptionsProfileScopeFederated => 'Only synchronize to trusted servers';

@override
String get accountOptionsProfileScopePublished =>
'Synchronize to trusted servers and the global and public address book';

@override
String get accountOptionsInitialApp => 'App to show initially';

Expand Down Expand Up @@ -505,4 +594,7 @@ class NeonLocalizationsEn extends NeonLocalizations {

@override
String get userStatusOnlineStatus => 'Online status';

@override
String get passwordConfirmationUserPassword => 'Your user password';
}
Loading