feat(profile): the profile saves as it is written, the handle chosen in a dialog that checks it

Changing the profile meant a Save button at the foot of the form, which
the floating navigation bar half covered on a phone. A field now saves
when it is left or Enter is pressed in it, and a link when it is
removed; "Saving…" and "Saved" show beside the title. The form keeps
what is being written as saves come back, where it used to start afresh
and lose focus after each one.

The handle is chosen in a dialog that asks the instance while it is
typed whether it is free (`ProfileEndpoint.checkHandle`, which tells
nothing `byHandle` doesn't), and choosing the first makes the profile
with what was written. Saves go one at a time, the latest of those
waiting next, and a handle chosen holds for every save after it, so a
field's save can't take it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-12 19:07:42 +02:00
commit 959014b4a1
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -1648,7 +1648,7 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get publicProfileIntro =>
'How others see you once you publish: the handle they find you by, your name, a few words and links. Nothing here shows until you save it.';
'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 publicProfileAnonymousHint =>
@ -1696,7 +1696,44 @@ class AppLocalizationsEn extends AppLocalizations {
String get publicProfileRemoveLink => 'Remove link';
@override
String get publicProfileSaved => 'Profile saved.';
String get publicProfileSaving => 'Saving…';
@override
String get publicProfileSavedNow => 'Saved';
@override
String get publicProfileHandleChoose => 'Choose a handle';
@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 publicProfileHandleChooseTitle => 'Choose your handle';
@override
String get publicProfileHandleChangeTitle => 'Change your handle';
@override
String get publicProfileHandleDialogText =>
'Others find you by your handle. You can change it until you first publish a studyset.';
@override
String get publicProfileHandleChecking => 'Checking…';
@override
String publicProfileHandleFree(String handle) {
return '@$handle is free';
}
@override
String get publicProfileHandleYours => 'This is your handle';
@override
String get publicProfileHandleConfirmChoose => 'Choose';
@override
String get publicProfileHandleConfirmChange => 'Change';
@override
String get publicProfileRemove => 'Remove profile';
@ -1766,7 +1803,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get publicProfilePictureType => 'Images';
@override
String get publicProfilePictureLater => 'Save your profile to add a picture.';
String get publicProfilePictureLater =>
'Choose your handle to add a picture.';
@override
String get settingsTitle => 'Settings';