feat(app): one Profile for every app, the person's own tab first, then each app's (ADR 0014)
The public profile was already one per person for every service of an instance (the register, ADR 0016); its app side was Learn's alone. It moves into halkyon_app: the model, the repository on the module's endpoints, the form, the avatar drawn on the device and the sheet with someone's profile. They take the Public prefix (PublicProfileRepository, BasePublicProfileGateway), as Train's own ProfileRepository holds the body's figures. AppDependencies gains profiles and files, the picker the avatar is chosen with, which moves out of Learn too. HalkyonProfile is every app's Profile screen: the person's own tab first, the same in every app (the account and the ways they sign in, the app's own cards, then the public profile), then the app's own tabs, folding into the title. Learn adds its inbox and Statistics. Train adds Progress, Days and, where nothing records, Plans, and so opens on the person's tab, no longer on Progress. Todo, which has no Profile tab, opens it from a row at the top of Browse, where Todoist keeps the account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
a0bb75f1ad
commit
b7b0b937fe
1 changed files with 1668 additions and 1293 deletions
|
|
@ -1737,6 +1737,244 @@ class HalkyonAppLocalizationsEn extends HalkyonAppLocalizations {
|
|||
String whatsNewVersion(String version) {
|
||||
return 'Version $version';
|
||||
}
|
||||
|
||||
@override
|
||||
String get profileIdentified => 'Your progress is kept with your account.';
|
||||
|
||||
@override
|
||||
String get profileProblemAvatarInvalid =>
|
||||
'This picture can\'t be used: choose a PNG, JPEG, WebP or GIF image.';
|
||||
|
||||
@override
|
||||
String get profileProblemBioTooLong => 'At most 500 characters.';
|
||||
|
||||
@override
|
||||
String get profileProblemDisplayNameTooLong => 'At most 30 characters.';
|
||||
|
||||
@override
|
||||
String get profileProblemHandleInvalid =>
|
||||
'A handle is 1 to 30 letters (a to z), digits or underscores.';
|
||||
|
||||
@override
|
||||
String get profileProblemHandleReserved =>
|
||||
'This handle is kept for the instance.';
|
||||
|
||||
@override
|
||||
String get profileProblemHandleTaken => 'Someone else has this handle.';
|
||||
|
||||
@override
|
||||
String get profileProblemLinkInvalid =>
|
||||
'Links start with https:// or http://.';
|
||||
|
||||
@override
|
||||
String get profileProblemPublished =>
|
||||
'You have published: your handle can\'t change, nor your profile go.';
|
||||
|
||||
@override
|
||||
String get profileProblemTooManyHandleChecks =>
|
||||
'Too many handles were tried. Try again in an hour.';
|
||||
|
||||
@override
|
||||
String get profileProblemTooManyLinkChecks =>
|
||||
'The links were checked too often. Try again in an hour.';
|
||||
|
||||
@override
|
||||
String get profileProblemTooManyLinks => 'At most 4 links.';
|
||||
|
||||
@override
|
||||
String get profileSheetNotFound => 'Nobody on this instance has this handle.';
|
||||
|
||||
@override
|
||||
String get profileSheetTitle => 'Profile';
|
||||
|
||||
@override
|
||||
String get profileSheetUnreachable =>
|
||||
'The profile couldn’t be loaded. Check your connection.';
|
||||
|
||||
@override
|
||||
String get profileSignInWays => 'Ways to sign in';
|
||||
|
||||
@override
|
||||
String get profileTabProfile => 'Profile';
|
||||
|
||||
@override
|
||||
String get profileTitle => 'Profile';
|
||||
|
||||
@override
|
||||
String get profileWayEmail => 'Email address';
|
||||
|
||||
@override
|
||||
String get profileWayLinked => 'Signs you in';
|
||||
|
||||
@override
|
||||
String get publicProfileAddLink => 'Add link';
|
||||
|
||||
@override
|
||||
String publicProfileAddress(String address) {
|
||||
return 'Others find you as @$address';
|
||||
}
|
||||
|
||||
@override
|
||||
String publicProfileAddressPrivate(String address) {
|
||||
return 'Private until you fill in your profile or publish something; then others find you as @$address.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get publicProfileBio => 'Bio';
|
||||
|
||||
@override
|
||||
String get publicProfileCheckLinks => 'Check links';
|
||||
|
||||
@override
|
||||
String get publicProfileChoosePicture => 'Choose picture';
|
||||
|
||||
@override
|
||||
String get publicProfileDisplayName => 'Display name';
|
||||
|
||||
@override
|
||||
String get publicProfileDisplayNameHint =>
|
||||
'The name shown beside your handle';
|
||||
|
||||
@override
|
||||
String get publicProfileFailed => 'Couldn\'t reach the instance. Try again.';
|
||||
|
||||
@override
|
||||
String get publicProfileHandle => 'Handle';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleChangeTitle => 'Change your handle';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleChecking => 'Checking…';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleChoose => 'Choose a handle';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleChooseTitle => 'Choose your handle';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleConfirmChange => 'Change';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleConfirmChoose => 'Choose';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleDialogText =>
|
||||
'Others find you by your handle. You can change it until you first publish a studyset.';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleFirst =>
|
||||
'Choose your handle first: your profile is made with it, and saves as you write from then on.';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleFixed =>
|
||||
'Fixed since you published: others refer to it.';
|
||||
|
||||
@override
|
||||
String publicProfileHandleFree(String handle) {
|
||||
return '@$handle is free';
|
||||
}
|
||||
|
||||
@override
|
||||
String get publicProfileHandleHint =>
|
||||
'Letters, digits and underscores, up to 30';
|
||||
|
||||
@override
|
||||
String get publicProfileHandleYours => 'This is your handle';
|
||||
|
||||
@override
|
||||
String get publicProfileIntro =>
|
||||
'How others see you once you publish: the handle they find you by, your name, a few words and links. It saves as you write, once you have chosen your handle.';
|
||||
|
||||
@override
|
||||
String get publicProfileLinkHint => 'https://…';
|
||||
|
||||
@override
|
||||
String get publicProfileLinkVerified => 'Links back to your profile';
|
||||
|
||||
@override
|
||||
String get publicProfileLinks => 'Links';
|
||||
|
||||
@override
|
||||
String publicProfileLinksChecked(int count, int verified) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Checked: $verified of $count links link back to your profile.',
|
||||
one: 'Checked: $verified of 1 link links back to your profile.',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get publicProfileLinksHint => 'Your site or other accounts, up to 4.';
|
||||
|
||||
@override
|
||||
String publicProfilePage(String url) {
|
||||
return 'Your profile page: $url';
|
||||
}
|
||||
|
||||
@override
|
||||
String get publicProfilePageCopied => 'Address copied.';
|
||||
|
||||
@override
|
||||
String get publicProfilePageCopy => 'Copy the address';
|
||||
|
||||
@override
|
||||
String get publicProfilePicture => 'Picture';
|
||||
|
||||
@override
|
||||
String get publicProfilePictureLater =>
|
||||
'Choose your handle to add a picture.';
|
||||
|
||||
@override
|
||||
String get publicProfilePictureType => 'Images';
|
||||
|
||||
@override
|
||||
String get publicProfileRemove => 'Remove profile';
|
||||
|
||||
@override
|
||||
String get publicProfileRemoveLink => 'Remove link';
|
||||
|
||||
@override
|
||||
String get publicProfileRemoveMessage =>
|
||||
'Your display name, bio, links and picture are removed. Your handle stays yours and private until you fill in your profile again or publish something.';
|
||||
|
||||
@override
|
||||
String get publicProfileRemovePicture => 'Remove picture';
|
||||
|
||||
@override
|
||||
String get publicProfileRemoveTitle => 'Remove your public profile?';
|
||||
|
||||
@override
|
||||
String get publicProfileRemoved => 'Profile removed.';
|
||||
|
||||
@override
|
||||
String get publicProfileRetry => 'Retry';
|
||||
|
||||
@override
|
||||
String get publicProfileSavedNow => 'Saved';
|
||||
|
||||
@override
|
||||
String get publicProfileSaving => 'Saving…';
|
||||
|
||||
@override
|
||||
String get publicProfileTitle => 'Public profile';
|
||||
|
||||
@override
|
||||
String get publicProfileUnreachable =>
|
||||
'Your public profile can\'t be reached right now.';
|
||||
|
||||
@override
|
||||
String get publicProfileVerifyHint =>
|
||||
'A link gets a checkmark once its page links back to your profile page with rel=\"me\", as Mastodon checks links.';
|
||||
|
||||
@override
|
||||
String get profileAccount => 'Account';
|
||||
|
||||
@override
|
||||
String get profileSheetLinkVerified => 'Links back to this profile';
|
||||
}
|
||||
|
||||
/// The translations for English, as used in the United Kingdom (`en_GB`).
|
||||
|
|
|
|||
Loading…
Reference in a new issue