v4: the instance fields ask for a URL — the login page's field read "Its address, like music.example" and /manage's "An instance's address, like music.example", an example that named no instance of the reader's. They now read "Your gerbeur's URL" and "An instance's URL".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
khannurien
2026-10-09 18:23:53 +00:00
parent 63803c552f
commit 141e526de7
8 changed files with 23 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@@ -355,8 +355,8 @@ msgid "Already have an account? <0>Log in</0>"
msgstr "Already have an account? <0>Log in</0>" msgstr "Already have an account? <0>Log in</0>"
#: src/components/federation/PeerManager.tsx:167 #: src/components/federation/PeerManager.tsx:167
msgid "An instance's address, like music.example" msgid "An instance's URL"
msgstr "An instance's address, like music.example" msgstr "An instance's URL"
#: src/utils/shared/api.ts:35 #: src/utils/shared/api.ts:35
msgid "An unexpected error occurred." msgid "An unexpected error occurred."
@@ -1068,11 +1068,7 @@ msgstr "invited by you"
msgid "Invitees" msgid "Invitees"
msgstr "Invitees" msgstr "Invitees"
#: src/components/federation/FederatedSignIn.tsx:107 #: src/components/feed/FeedTabBar.tsx:42
msgid "Its address, like music.example"
msgstr "Its address, like music.example"
#: src/components/feed/FeedTabBar.tsx:41
#: src/pages/Settings.tsx:56 #: src/pages/Settings.tsx:56
msgid "Journal" msgid "Journal"
msgstr "Journal" msgstr "Journal"
@@ -2165,6 +2161,10 @@ msgstr "Your account lives on {home}: your password, email address, avatar and u
msgid "Your email address" msgid "Your email address"
msgstr "Your email address" msgstr "Your email address"
#: src/components/federation/FederatedSignIn.tsx:107
msgid "Your gerbeur's URL"
msgstr "Your gerbeur's URL"
#: src/pages/ResetPassword.tsx:89 #: src/pages/ResetPassword.tsx:89
msgid "Your password has been changed. You can now log in." msgid "Your password has been changed. You can now log in."
msgstr "Your password has been changed. You can now log in." msgstr "Your password has been changed. You can now log in."

File diff suppressed because one or more lines are too long

View File

@@ -355,8 +355,8 @@ msgid "Already have an account? <0>Log in</0>"
msgstr "Vous avez déjà un compte ? <0>Se connecter</0>" msgstr "Vous avez déjà un compte ? <0>Se connecter</0>"
#: src/components/federation/PeerManager.tsx:167 #: src/components/federation/PeerManager.tsx:167
msgid "An instance's address, like music.example" msgid "An instance's URL"
msgstr "L'adresse d'une instance, comme music.example" msgstr "URL d'une instance"
#: src/utils/shared/api.ts:35 #: src/utils/shared/api.ts:35
msgid "An unexpected error occurred." msgid "An unexpected error occurred."
@@ -1068,11 +1068,7 @@ msgstr "sur votre invitation"
msgid "Invitees" msgid "Invitees"
msgstr "Invités" msgstr "Invités"
#: src/components/federation/FederatedSignIn.tsx:107 #: src/components/feed/FeedTabBar.tsx:42
msgid "Its address, like music.example"
msgstr "Son adresse, comme music.example"
#: src/components/feed/FeedTabBar.tsx:41
#: src/pages/Settings.tsx:56 #: src/pages/Settings.tsx:56
msgid "Journal" msgid "Journal"
msgstr "Journal" msgstr "Journal"
@@ -2165,6 +2161,10 @@ msgstr "Votre compte est sur {home} : votre mot de passe, votre adresse e-mail,
msgid "Your email address" msgid "Your email address"
msgstr "Votre adresse e-mail" msgstr "Votre adresse e-mail"
#: src/components/federation/FederatedSignIn.tsx:107
msgid "Your gerbeur's URL"
msgstr "URL de votre gerbeur"
#: src/pages/ResetPassword.tsx:89 #: src/pages/ResetPassword.tsx:89
msgid "Your password has been changed. You can now log in." msgid "Your password has been changed. You can now log in."
msgstr "Votre mot de passe a été modifié. Vous pouvez maintenant vous connecter." msgstr "Votre mot de passe a été modifié. Vous pouvez maintenant vous connecter."

View File

@@ -104,7 +104,7 @@ export function FederatedSignIn(
<FormError title={t`Couldn't reach that instance`} /> <FormError title={t`Couldn't reach that instance`} />
<TextField<Values> <TextField<Values>
name="instance" name="instance"
placeholder={t`Its address, like music.example`} placeholder={t`Your gerbeur's URL`}
autoComplete="url" autoComplete="url"
rules={{ required: true }} rules={{ required: true }}
/> />

View File

@@ -164,7 +164,7 @@ export function PeerManager(): React.JSX.Element {
<FormError title={t`Couldn't add that instance`} /> <FormError title={t`Couldn't add that instance`} />
<TextField<Values> <TextField<Values>
name="instance" name="instance"
placeholder={t`An instance's address, like music.example`} placeholder={t`An instance's URL`}
autoComplete="url" autoComplete="url"
rules={{ required: true }} rules={{ required: true }}
/> />

View File

@@ -121,7 +121,7 @@ describe("Manage", () => {
const user = open(); const user = open();
await user.type( await user.type(
await screen.findByPlaceholderText( await screen.findByPlaceholderText(
"An instance's address, like music.example", "An instance's URL",
), ),
"music.example", "music.example",
); );
@@ -173,7 +173,7 @@ describe("Manage", () => {
expect(screen.queryByRole("button", { name: "Blocked" })).not expect(screen.queryByRole("button", { name: "Blocked" })).not
.toBeInTheDocument(); .toBeInTheDocument();
await user.type( await user.type(
screen.getByPlaceholderText("An instance's address, like music.example"), screen.getByPlaceholderText("An instance's URL"),
"music.example{Enter}", "music.example{Enter}",
); );
await waitFor(() => await waitFor(() =>

View File

@@ -194,10 +194,10 @@ describe("UserLogin", () => {
}); });
await user.clear( await user.clear(
screen.getByPlaceholderText("Its address, like music.example"), screen.getByPlaceholderText("Your gerbeur's URL"),
); );
await user.type( await user.type(
screen.getByPlaceholderText("Its address, like music.example"), screen.getByPlaceholderText("Your gerbeur's URL"),
" films.example {Enter}", " films.example {Enter}",
); );
await waitFor(() => await waitFor(() =>
@@ -223,7 +223,7 @@ describe("UserLogin", () => {
); );
const user = setup(); const user = setup();
await user.type( await user.type(
screen.getByPlaceholderText("Its address, like music.example"), screen.getByPlaceholderText("Your gerbeur's URL"),
"films.example{Enter}", "films.example{Enter}",
); );
expect(await screen.findByRole("alert")).toHaveTextContent( expect(await screen.findByRole("alert")).toHaveTextContent(