Repository navigation
fix(admin): standardise button and link patterns across admin UI - #934
Conversation
Use Kumo's Button icon prop and LinkButton (with external for new-tab links) instead of manual icon spacing and raw anchor styling. Fix invalid Link/Button nesting in plugin manager. Translate stray English strings in user list empty state.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-perf-coordinator | 523722e | May 07 2026, 11:50 AM |
🦋 Changeset detectedLatest commit: 523722e The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
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 |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-i18n | 523722e | May 07 2026, 11:51 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 523722e | May 07 2026, 11:51 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | 523722e | May 07 2026, 11:52 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | 523722e | May 07 2026, 11:52 AM |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/blocks
@emdash-cms/cloudflare
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
There was a problem hiding this comment.
Pull request overview
Standardizes button/link usage across the admin UI by replacing ad-hoc anchor styling and manual icon spacing with Kumo’s LinkButton and Button icon prop, improving consistency and fixing one instance of invalid nested interactive HTML.
Changes:
- Replaces raw external
<a>links styled as buttons withLinkButton externalwhere appropriate (including icon-only “view” links). - Converts multiple buttons from manual
<Icon className="me-2 ...">patterns to theiconprop for consistent spacing. - Fixes invalid
<Link><Button></Button></Link>nesting in the plugin manager by styling theLinkviabuttonVariants, and wraps two stray user-facing strings in Linguit.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/admin/src/components/WordPressImport.tsx | Uses semantic brand token for link color and marks a decorative icon aria-hidden. |
| packages/admin/src/components/users/UserList.tsx | Wraps two empty-state button labels in Lingui t and sets type="button". |
| packages/admin/src/components/ThemeMarketplaceDetail.tsx | Uses LinkButton external for the Demo link and switches a button icon to the icon prop. |
| packages/admin/src/components/ThemeMarketplaceBrowse.tsx | Converts retry button icon to the icon prop. |
| packages/admin/src/components/PluginManager.tsx | Removes invalid link/button nesting; uses buttonVariants on Link and converts icons to icon prop in relevant buttons. |
| packages/admin/src/components/MenuList.tsx | Reorders icon classes and adds aria-hidden to a decorative icon. |
| packages/admin/src/components/MarketplacePluginDetail.tsx | Converts install button icon to the icon prop. |
| packages/admin/src/components/MarketplaceBrowse.tsx | Converts retry button icon to the icon prop. |
| packages/admin/src/components/ContentList.tsx | Replaces published “view” anchor with LinkButton external (icon-only) for consistent semantics/styling. |
| packages/admin/src/components/ContentEditor.tsx | Removes the small-size mismatch on Discard changes and converts Live View to LinkButton external. |
| .changeset/legal-doodles-move.md | Adds a patch changeset describing the admin UI standardization changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What does this PR do?
Cleans up button and link inconsistencies across the admin UI. Started from a single `size="sm"` mismatch on the content editor toolbar's Discard changes button and expanded into a focused audit of related patterns.
Changes by file:
I deliberately scoped the i18n fix to just the two flagged buttons. `UserList.tsx` has many more untranslated strings (table headers, search placeholder, etc.); those should be a separate translation PR per the AGENTS.md "don't make bulk/spray changes" rule.
Closes #
Type of change
Checklist
AI-generated code disclosure
Screenshots / test output
The visible behaviour change in this PR is uniformity — all toolbar buttons now share the default `size="base"` and Kumo's icon spacing. Live View and the Demo link now render as Kumo `LinkButton`s with proper `external` semantics (`target="_blank" rel="noopener noreferrer"`) and middle-click support. The Marketplace link in the plugin manager no longer renders invalid `` nested HTML.