Skip to content

fix(admin): use dropdown for login page language selector#564

Merged
ascorbic merged 1 commit intomainfrom
fix/login-language-selector-dropdown
Apr 15, 2026
Merged

fix(admin): use dropdown for login page language selector#564
ascorbic merged 1 commit intomainfrom
fix/login-language-selector-dropdown

Conversation

@ascorbic
Copy link
Copy Markdown
Collaborator

What does this PR do?

The login page's language selector rendered every supported locale as an inline button with dot separators. That worked when there were three locales; with the current nine (and more coming) it wraps awkwardly and is hard to scan. This PR swaps it for the same kumo Select dropdown already used for the language setting in Settings, so the affordance is consistent and scales.

Also bumps @cloudflare/kumo to the workspace catalog (^1.18.0) so @emdash-cms/admin and @emdash-cms/blocks share a single version and pick up the Select component.

Closes #

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation and pnpm locale:extract has been run (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion

AI-generated code disclosure

  • This PR includes AI-generated code

Screenshots / test output

Verified pnpm --filter @emdash-cms/admin typecheck and pnpm lint:quick clean on the touched file.

Copilot AI review requested due to automatic review settings April 14, 2026 21:08
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 14, 2026

🦋 Changeset detected

Latest commit: 4e0509b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@emdash-cms/admin Patch
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
create-emdash Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 14, 2026

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@564

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@564

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@564

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@564

emdash

npm i https://pkg.pr.new/emdash@564

create-emdash

npm i https://pkg.pr.new/create-emdash@564

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@564

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@564

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@564

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@564

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@564

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@564

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@564

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@564

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@564

commit: 4e0509b

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the admin login page language selector to use the Kumo Select dropdown (matching the Settings page behavior) and standardizes @cloudflare/kumo to a single workspace-catalog version so admin/blocks share the same dependency version.

Changes:

  • Replace the login page’s inline locale button bar with a Select dropdown backed by SUPPORTED_LOCALES.
  • Add @cloudflare/kumo to the workspace catalog and switch dependent packages to catalog: to unify versions.
  • Add a changeset for the admin UI patch release.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds @cloudflare/kumo to the pnpm catalog for centralized versioning.
pnpm-lock.yaml Updates lockfile to use Kumo 1.18.0 and switches importers to catalog:.
packages/blocks/playground/package.json Moves Kumo dependency to catalog: for version alignment.
packages/blocks/package.json Moves Kumo dependency to catalog: for version alignment.
packages/admin/package.json Moves Kumo dependency to catalog: for version alignment.
packages/admin/src/components/LoginPage.tsx Replaces button-based language selector with Kumo Select.
.changeset/forty-facts-deny.md Declares a patch release for @emdash-cms/admin reflecting the UI change.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 14, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground 4e0509b Apr 15 2026, 07:12 AM

@github-actions
Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

@github-actions github-actions bot mentioned this pull request Apr 15, 2026
@ascorbic ascorbic disabled auto-merge April 15, 2026 06:10
The inline button bar didn't scale past a handful of locales. Swap it
for the same kumo Select dropdown used in Settings.
@ascorbic ascorbic force-pushed the fix/login-language-selector-dropdown branch from 976d199 to 4e0509b Compare April 15, 2026 07:10
@github-actions github-actions bot added size/S and removed size/M labels Apr 15, 2026
@ascorbic ascorbic merged commit 0b32b2f into main Apr 15, 2026
29 checks passed
@ascorbic ascorbic deleted the fix/login-language-selector-dropdown branch April 15, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants