Skip to content

feat(language-switcher): Implement new language and theme switcher menus - #807

Merged
aXenDeveloper merged 2 commits into
canaryfrom
feat(language-switcher)--Implement-new-language-and-theme-switcher-menus
Sep 13, 2026
Merged

aXenDeveloper merged 2 commits into
canaryfrom
feat(language-switcher)--Implement-new-language-and-theme-switcher-menus

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Sep 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vitnode-prod Ready Ready Preview Sep 13, 2026 1:27pm UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 999606bbeb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

user: AvatarUser & { email: string };
}) => (
<>
<Avatar className="size-8" size={32} user={user} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Hide the duplicate avatar label from assistive technology

When an authenticated visitor opens either user menu, this Avatar contributes alt={user.name} immediately before a visible span containing the same name, causing screen readers to announce the identity twice. Mark this avatar instance aria-hidden or otherwise give it empty alt text because the image is repetitive.

AGENTS.md reference: AGENTS.md:L54-L55

Useful? React with 👍 / 👎.

Comment on lines +13 to +15
<div className="grid flex-1 text-start text-sm leading-tight">
<span className="truncate font-medium">{user.name}</span>
<span className="text-muted-foreground truncate text-xs">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the identity copy within the typography minimums

For every authenticated user, the new identity block renders the email with text-xs (12px) and applies leading-tight to both lines, below the repository's required 14px minimum and 1.4–1.6 line height. Use at least text-sm and leading-relaxed so this newly exposed account text remains readable.

AGENTS.md reference: AGENTS.md:L70-L70

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1dfd08257a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


return (
<RouterLink className={className} href={href}>
<Link<RegisteredRouter, string, string> className={className} href={href}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass the card destination through to

In newly generated applications, the internal Register and AdminCP cards pass their destination as the native href prop, but TanStack Router builds Link navigation from to; with to omitted, these cards resolve against the current route instead of navigating to href. The hero buttons above use the correct to={...} form, and this card should do the same.

Useful? React with 👍 / 👎.

{ Icon: MonitorIcon, value: "system" },
] as const;

export const ThemeSwitcherMenu = () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Document the new preference-switcher feature

This patch introduces a new theme/language preference workflow and relocates those controls into the account and AdminCP menus, but it adds no user or developer documentation for the feature. Add concise documentation explaining where the controls live and what the light, dark, and system choices do, as required for every new feature.

AGENTS.md reference: AGENTS.md:L75-L75

Useful? React with 👍 / 👎.

@aXenDeveloper
aXenDeveloper merged commit 8acdf6d into canary Sep 13, 2026
4 checks passed
@aXenDeveloper
aXenDeveloper deleted the feat(language-switcher)--Implement-new-language-and-theme-switcher-menus branch September 13, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant