v4: users can't rename themselves, /settings lays out again, and its selectors fit a phone — PATCH /api/me refuses a username with a 400 and changes nothing else in that request; a name changes only through PATCH /api/users/:key/username, which needs user:manage, from /@name/manage. The old name still stays an alias for good. renameUser lost its 30-day limit and its exempt flag, and RENAME_LIMITS holds the slug limit alone. /settings shows the username as plain text, and the rename hint left the catalogs. The settings grid sized its control column to its widest content, the rename hint, which stretched every control under it; that column now takes the remaining width and each control keeps its own size. A segmented control wraps instead of overflowing; in a settings row on a phone it takes the full width, and one of more than 4 options (the styles) lays out in two even rows. .btn-border turned red on hover, so Settings, Manage, Retry and Back looked like Log out; it is now neutral (Smooth's accent is red too), and only Log out takes the new btn-border--danger, muted until hovered red. A <button> and a <Link> .btn-border are now the same height. API.md and the module docs say who renames; the backend tests rename through the moderator route and check a self-rename is refused, and the malformed-name check moved to the manage tab's test. 254 backend and 667 frontend tests pass, and tsc, deno check and doc:lint are clean; Smooth, Brutalist, GeoCities and Kanagawa were checked in screenshots at desktop and phone widths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
khannurien
2026-10-07 06:50:43 +00:00
parent 4468438ba7
commit 0a16d3c96c
21 changed files with 235 additions and 307 deletions

File diff suppressed because one or more lines are too long

View File

@@ -120,13 +120,13 @@ msgstr "yours"
#. js-lingui-explicit-id
#: api/mail/digest.ts:221
#: src/pages/Settings.tsx:190
#: src/pages/Settings.tsx:157
msgid "digest.monthly"
msgstr "Monthly recap"
#. js-lingui-explicit-id
#: api/mail/digest.ts:221
#: src/pages/Settings.tsx:181
#: src/pages/Settings.tsx:148
msgid "digest.weekly"
msgstr "Weekly digest"
@@ -501,7 +501,7 @@ msgstr "A link is required"
msgid "a post"
msgstr "a post"
#: src/pages/Settings.tsx:108
#: src/pages/Settings.tsx:86
msgid "Account"
msgstr "Account"
@@ -550,7 +550,7 @@ msgstr "Already have an account? <0>Log in</0>"
msgid "An unexpected error occurred."
msgstr "An unexpected error occurred."
#: src/pages/Settings.tsx:135
#: src/pages/Settings.tsx:102
msgid "Appearance"
msgstr "Appearance"
@@ -565,7 +565,7 @@ msgstr "At least {0} characters"
msgid "At most {maxLength} characters."
msgstr "At most {maxLength} characters."
#: src/pages/Settings.tsx:51
#: src/pages/Settings.tsx:44
msgid "Auto"
msgstr "Auto"
@@ -629,7 +629,7 @@ msgstr "Change image"
msgid "Change password"
msgstr "Change password"
#: src/pages/Settings.tsx:130
#: src/pages/Settings.tsx:97
msgid "Change password…"
msgstr "Change password…"
@@ -678,7 +678,7 @@ msgstr "Close without posting? The attached file won't be kept — everything yo
msgid "Collapse player"
msgstr "Collapse player"
#: src/pages/Settings.tsx:144
#: src/pages/Settings.tsx:111
msgid "Color scheme"
msgstr "Color scheme"
@@ -752,11 +752,11 @@ msgstr "Creating…"
msgid "Current password"
msgstr "Current password"
#: src/pages/Settings.tsx:53
#: src/pages/Settings.tsx:46
msgid "Dark"
msgstr "Dark"
#: src/pages/Settings.tsx:155
#: src/pages/Settings.tsx:122
msgid "Default tab"
msgstr "Default tab"
@@ -944,7 +944,7 @@ msgstr "Editing"
msgid "Editing {0}"
msgstr "Editing {0}"
#: src/pages/Settings.tsx:179
#: src/pages/Settings.tsx:146
msgid "Email"
msgstr "Email"
@@ -1017,7 +1017,7 @@ msgstr "Failed to update avatar"
msgid "Failed to update role"
msgstr "Failed to update role"
#: src/pages/Settings.tsx:153
#: src/pages/Settings.tsx:120
msgid "Feeds"
msgstr "Feeds"
@@ -1052,7 +1052,7 @@ msgstr "Follow some users to see their dumps here."
#: src/components/feed/FeedTabBar.tsx:43
#: src/components/profile/ProfileFollowTab.tsx:163
#: src/pages/Settings.tsx:60
#: src/pages/Settings.tsx:53
#: src/pages/UserPublicProfile.tsx:157
msgid "Followed"
msgstr "Followed"
@@ -1087,7 +1087,7 @@ msgid "Go to login"
msgstr "Go to login"
#: src/components/feed/FeedTabBar.tsx:39
#: src/pages/Settings.tsx:57
#: src/pages/Settings.tsx:50
msgid "Hot"
msgstr "Hot"
@@ -1132,7 +1132,7 @@ msgid "Invitees"
msgstr "Invitees"
#: src/components/feed/FeedTabBar.tsx:41
#: src/pages/Settings.tsx:59
#: src/pages/Settings.tsx:52
msgid "Journal"
msgstr "Journal"
@@ -1144,7 +1144,7 @@ msgstr "Keep editing"
msgid "Letters, numbers and underscores only"
msgstr "Letters, numbers and underscores only"
#: src/pages/Settings.tsx:52
#: src/pages/Settings.tsx:45
msgid "Light"
msgstr "Light"
@@ -1276,7 +1276,7 @@ msgstr "new"
#: src/components/chat/ChatModal.tsx:669
#: src/components/feed/FeedTabBar.tsx:40
#: src/pages/Settings.tsx:58
#: src/pages/Settings.tsx:51
msgid "New"
msgstr "New"
@@ -1368,7 +1368,7 @@ msgstr "Nothing here yet."
#: src/components/layout/NotificationBell.tsx:54
#: src/pages/Notifications.tsx:308
#: src/pages/Notifications.tsx:364
#: src/pages/Settings.tsx:164
#: src/pages/Settings.tsx:131
msgid "Notifications"
msgstr "Notifications"
@@ -1376,11 +1376,11 @@ msgstr "Notifications"
msgid "Notifications ({unreadNotificationCount} unread)"
msgstr "Notifications ({unreadNotificationCount} unread)"
#: src/pages/Settings.tsx:65
#: src/pages/Settings.tsx:58
msgid "Off"
msgstr "Off"
#: src/pages/Settings.tsx:64
#: src/pages/Settings.tsx:57
msgid "On"
msgstr "On"
@@ -1413,7 +1413,7 @@ msgstr "Overview"
msgid "Page not found"
msgstr "Page not found"
#: src/pages/Settings.tsx:124
#: src/pages/Settings.tsx:91
#: src/pages/UserLogin.tsx:82
msgid "Password"
msgstr "Password"
@@ -1690,8 +1690,8 @@ msgstr "Set new password"
#: src/components/layout/UserMenu.tsx:89
#: src/components/profile/ProfileHeader.tsx:177
#: src/pages/Settings.tsx:77
#: src/pages/Settings.tsx:105
#: src/pages/Settings.tsx:69
#: src/pages/Settings.tsx:83
msgid "Settings"
msgstr "Settings"
@@ -1718,7 +1718,7 @@ msgstr "Some images couldn't be uploaded."
msgid "Something went wrong"
msgstr "Something went wrong"
#: src/pages/Settings.tsx:166
#: src/pages/Settings.tsx:133
msgid "Sounds"
msgstr "Sounds"
@@ -1726,7 +1726,7 @@ msgstr "Sounds"
msgid "Start fresh"
msgstr "Start fresh"
#: src/pages/Settings.tsx:137
#: src/pages/Settings.tsx:104
msgid "Style"
msgstr "Style"
@@ -1778,7 +1778,7 @@ msgstr "This page does not exist."
msgid "This reset link is missing or malformed."
msgstr "This reset link is missing or malformed."
#: src/pages/Settings.tsx:202
#: src/pages/Settings.tsx:169
msgid "This site doesn't send email, so no digest goes out."
msgstr "This site doesn't send email, so no digest goes out."
@@ -1915,7 +1915,7 @@ msgstr "User menu"
#: src/components/profile/ProfileManageTab.tsx:61
#: src/components/profile/UsernameField.tsx:55
#: src/pages/Settings.tsx:110
#: src/pages/Settings.tsx:88
#: src/pages/UserLogin.tsx:75
#: src/pages/UserRegister.tsx:137
msgid "Username"
@@ -1970,10 +1970,6 @@ msgstr "Write a reply…"
msgid "Yesterday"
msgstr "Yesterday"
#: src/pages/Settings.tsx:116
msgid "You can change it once every {renameDays} days. Links to your old name keep working, and nobody else can take it."
msgstr "You can change it once every {renameDays} days. Links to your old name keep working, and nobody else can take it."
#: src/components/dump/create/DuplicateNotice.tsx:61
msgid "You can post it anyway."
msgstr "You can post it anyway."

File diff suppressed because one or more lines are too long

View File

@@ -120,13 +120,13 @@ msgstr "à vous"
#. js-lingui-explicit-id
#: api/mail/digest.ts:221
#: src/pages/Settings.tsx:190
#: src/pages/Settings.tsx:157
msgid "digest.monthly"
msgstr "Récap mensuel"
#. js-lingui-explicit-id
#: api/mail/digest.ts:221
#: src/pages/Settings.tsx:181
#: src/pages/Settings.tsx:148
msgid "digest.weekly"
msgstr "Résumé hebdomadaire"
@@ -501,7 +501,7 @@ msgstr "Il faut un lien"
msgid "a post"
msgstr "une publication"
#: src/pages/Settings.tsx:108
#: src/pages/Settings.tsx:86
msgid "Account"
msgstr "Compte"
@@ -550,7 +550,7 @@ msgstr "Vous avez déjà un compte ? <0>Se connecter</0>"
msgid "An unexpected error occurred."
msgstr "Une erreur inattendue s'est produite."
#: src/pages/Settings.tsx:135
#: src/pages/Settings.tsx:102
msgid "Appearance"
msgstr "Apparence"
@@ -565,7 +565,7 @@ msgstr "Au moins {0} caractères"
msgid "At most {maxLength} characters."
msgstr "{maxLength} caractères au maximum."
#: src/pages/Settings.tsx:51
#: src/pages/Settings.tsx:44
msgid "Auto"
msgstr "Auto"
@@ -629,7 +629,7 @@ msgstr "Changer l'image"
msgid "Change password"
msgstr "Changer le mot de passe"
#: src/pages/Settings.tsx:130
#: src/pages/Settings.tsx:97
msgid "Change password…"
msgstr "Changer le mot de passe…"
@@ -678,7 +678,7 @@ msgstr "Fermer sans publier ? Le fichier joint sera perdu — ce que vous avez
msgid "Collapse player"
msgstr "Réduire le lecteur"
#: src/pages/Settings.tsx:144
#: src/pages/Settings.tsx:111
msgid "Color scheme"
msgstr "Thème de couleur"
@@ -752,11 +752,11 @@ msgstr "Création…"
msgid "Current password"
msgstr "Mot de passe actuel"
#: src/pages/Settings.tsx:53
#: src/pages/Settings.tsx:46
msgid "Dark"
msgstr "Sombre"
#: src/pages/Settings.tsx:155
#: src/pages/Settings.tsx:122
msgid "Default tab"
msgstr "Onglet par défaut"
@@ -944,7 +944,7 @@ msgstr "Modification"
msgid "Editing {0}"
msgstr "Édition de {0}"
#: src/pages/Settings.tsx:179
#: src/pages/Settings.tsx:146
msgid "Email"
msgstr "E-mail"
@@ -1017,7 +1017,7 @@ msgstr "Impossible de mettre à jour l'avatar"
msgid "Failed to update role"
msgstr "Erreur lors de la mise à jour du rôle"
#: src/pages/Settings.tsx:153
#: src/pages/Settings.tsx:120
msgid "Feeds"
msgstr "Flux"
@@ -1052,7 +1052,7 @@ msgstr "Suivez des utilisateurs pour voir leurs recos ici."
#: src/components/feed/FeedTabBar.tsx:43
#: src/components/profile/ProfileFollowTab.tsx:163
#: src/pages/Settings.tsx:60
#: src/pages/Settings.tsx:53
#: src/pages/UserPublicProfile.tsx:157
msgid "Followed"
msgstr "Suivi"
@@ -1087,7 +1087,7 @@ msgid "Go to login"
msgstr "Aller à la connexion"
#: src/components/feed/FeedTabBar.tsx:39
#: src/pages/Settings.tsx:57
#: src/pages/Settings.tsx:50
msgid "Hot"
msgstr "Tendances"
@@ -1132,7 +1132,7 @@ msgid "Invitees"
msgstr "Invités"
#: src/components/feed/FeedTabBar.tsx:41
#: src/pages/Settings.tsx:59
#: src/pages/Settings.tsx:52
msgid "Journal"
msgstr "Journal"
@@ -1144,7 +1144,7 @@ msgstr "Continuer l'édition"
msgid "Letters, numbers and underscores only"
msgstr "Lettres, chiffres et tirets bas seulement"
#: src/pages/Settings.tsx:52
#: src/pages/Settings.tsx:45
msgid "Light"
msgstr "Clair"
@@ -1276,7 +1276,7 @@ msgstr "nouveau"
#: src/components/chat/ChatModal.tsx:669
#: src/components/feed/FeedTabBar.tsx:40
#: src/pages/Settings.tsx:58
#: src/pages/Settings.tsx:51
msgid "New"
msgstr "Nouveau"
@@ -1368,7 +1368,7 @@ msgstr "Rien ici pour l'instant."
#: src/components/layout/NotificationBell.tsx:54
#: src/pages/Notifications.tsx:308
#: src/pages/Notifications.tsx:364
#: src/pages/Settings.tsx:164
#: src/pages/Settings.tsx:131
msgid "Notifications"
msgstr "Notifications"
@@ -1376,11 +1376,11 @@ msgstr "Notifications"
msgid "Notifications ({unreadNotificationCount} unread)"
msgstr "Notifications ({unreadNotificationCount} non lues)"
#: src/pages/Settings.tsx:65
#: src/pages/Settings.tsx:58
msgid "Off"
msgstr "Désactivés"
#: src/pages/Settings.tsx:64
#: src/pages/Settings.tsx:57
msgid "On"
msgstr "Activés"
@@ -1413,7 +1413,7 @@ msgstr "Aperçu"
msgid "Page not found"
msgstr "Page introuvable"
#: src/pages/Settings.tsx:124
#: src/pages/Settings.tsx:91
#: src/pages/UserLogin.tsx:82
msgid "Password"
msgstr "Mot de passe"
@@ -1690,8 +1690,8 @@ msgstr "Définir un nouveau mot de passe"
#: src/components/layout/UserMenu.tsx:89
#: src/components/profile/ProfileHeader.tsx:177
#: src/pages/Settings.tsx:77
#: src/pages/Settings.tsx:105
#: src/pages/Settings.tsx:69
#: src/pages/Settings.tsx:83
msgid "Settings"
msgstr "Paramètres"
@@ -1718,7 +1718,7 @@ msgstr "Certaines images n'ont pas pu être envoyées."
msgid "Something went wrong"
msgstr "Une erreur est survenue"
#: src/pages/Settings.tsx:166
#: src/pages/Settings.tsx:133
msgid "Sounds"
msgstr "Sons"
@@ -1726,7 +1726,7 @@ msgstr "Sons"
msgid "Start fresh"
msgstr "Repartir de zéro"
#: src/pages/Settings.tsx:137
#: src/pages/Settings.tsx:104
msgid "Style"
msgstr "Style"
@@ -1778,7 +1778,7 @@ msgstr "Rien à voir, circulez."
msgid "This reset link is missing or malformed."
msgstr "Ce lien de réinitialisation est absent ou malformé."
#: src/pages/Settings.tsx:202
#: src/pages/Settings.tsx:169
msgid "This site doesn't send email, so no digest goes out."
msgstr "Ce site n'envoie pas d'e-mails, aucun résumé ne part donc."
@@ -1915,7 +1915,7 @@ msgstr "Menu utilisateur"
#: src/components/profile/ProfileManageTab.tsx:61
#: src/components/profile/UsernameField.tsx:55
#: src/pages/Settings.tsx:110
#: src/pages/Settings.tsx:88
#: src/pages/UserLogin.tsx:75
#: src/pages/UserRegister.tsx:137
msgid "Username"
@@ -1970,10 +1970,6 @@ msgstr "Écrire une réponse…"
msgid "Yesterday"
msgstr "Hier"
#: src/pages/Settings.tsx:116
msgid "You can change it once every {renameDays} days. Links to your old name keep working, and nobody else can take it."
msgstr "Vous pouvez le changer une fois tous les {renameDays} jours. Les liens vers votre ancien nom marchent toujours, et personne d’autre ne peut le prendre."
#: src/components/dump/create/DuplicateNotice.tsx:61
msgid "You can post it anyway."
msgstr "Vous pouvez la publier quand même."