Skip to content

fix(auth): use primary button + i18n for login form and toolbar#1172

Merged
perber merged 2 commits into
mainfrom
fix/login-button-i18-brand-color
Jun 17, 2026
Merged

fix(auth): use primary button + i18n for login form and toolbar#1172
perber merged 2 commits into
mainfrom
fix/login-button-i18-brand-color

Conversation

@perber

@perber perber commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Replaces the custom brand-colored login button in UserToolbar with the standard Button component (primary variant), removes the redundant "Not logged in" label, and adds an auth i18n namespace covering all login-form and toolbar strings.

Replaces the custom brand-colored login button in UserToolbar with the
standard Button component (primary variant), removes the redundant
"Not logged in" label, and adds an auth i18n namespace covering all
login-form and toolbar strings.
Copilot AI review requested due to automatic review settings June 17, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes the unauthenticated login CTA in the UserToolbar by switching to the shared Button component and introduces an auth i18n namespace to localize login-related UI strings.

Changes:

  • Added a new auth English locale namespace and registered it with i18next.
  • Updated LoginForm placeholders and submit button text to use react-i18next.
  • Updated UserToolbar to use the shared Button (small) for the login action, removed the custom login-button CSS, and localized unauthenticated/auth-disabled labels.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui/leafwiki-ui/src/locales/en/auth.json Adds new auth namespace strings for login-related UI.
ui/leafwiki-ui/src/lib/i18n.ts Registers the auth namespace in i18next resources.
ui/leafwiki-ui/src/index.css Removes styling for the now-deleted custom toolbar login button class.
ui/leafwiki-ui/src/features/auth/LoginForm.tsx Replaces hardcoded login form strings with t(...) lookups.
ui/leafwiki-ui/src/components/UserToolbar.tsx Uses shared Button for login CTA and localizes unauthenticated/auth-disabled labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui/leafwiki-ui/src/features/auth/LoginForm.tsx
@perber
perber merged commit 335d68b into main Jun 17, 2026
10 of 11 checks passed
@perber
perber deleted the fix/login-button-i18-brand-color branch June 17, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants