v4: the header drops the username link — on wide screens it stood beside the avatar, which leads to the same profile, so only Playlists stays there. The avatar's menu still opens with @username first. 670 frontend tests pass, and tsc, eslint, deno fmt and i18n:compile --strict are clean; checked in a screenshot in Smooth dark at 1400px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
khannurien
2026-10-08 22:23:46 +00:00
parent 886216749e
commit 2c031b0102
5 changed files with 22 additions and 26 deletions

View File

@@ -24,10 +24,12 @@ describe("AppHeader", () => {
renderWithContexts(<AppHeader disableNew />, {
session: makeSession({ username: "ann" }),
});
expect(screen.getByRole("link", { name: "ann" })).toHaveAttribute(
expect(screen.getByRole("link", { name: "Playlists" })).toHaveAttribute(
"href",
"/@ann",
"/@ann/playlists",
);
expect(screen.getByRole("button", { name: "User menu" }))
.toBeInTheDocument();
expect(screen.getByRole("button", { name: "Chat" })).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Notifications" }))
.toBeInTheDocument();