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

View File

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

View File

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

View File

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

View File

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