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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user