Skip to content

[2.x] revert(admin): remove collapsible extension categories, restore 3-section sidebar#4446

Merged
imorland merged 2 commits into2.xfrom
im/revert-admin-nav-categories
Mar 14, 2026
Merged

[2.x] revert(admin): remove collapsible extension categories, restore 3-section sidebar#4446
imorland merged 2 commits into2.xfrom
im/revert-admin-nav-categories

Conversation

@imorland
Copy link
Copy Markdown
Member

Summary

Reverts the collapsible extension category sidebar introduced in #4392, replacing it with the previous 3-section flat list (Features, Themes, Languages).

The collapsible groups caused more problems than they solved:

  • Everything collapsed by default — you open the admin panel and can see zero extensions
  • Count badges (orange 27) read like unread notification counts, creating false urgency
  • Single-item categories (Infrastructure: 1, Analytics: 1, Themes: 1) added a click with no payoff
  • Extensions with specific categories (moderation, discussion, etc.) would have been invisible until manually expanded

What's kept from #4392

The rest of that PR is preserved:

  • Extension health widget on the dashboard (abandoned packages, suggestions, disabled extensions)
  • Abandoned package ! badges on individual extension sidebar items
  • ExtensionLinkButton tooltip showing title and version
  • ExtensionManager::getInstalledPackageNames() and AdminPayload abandoned override logic

Changes

  • AdminNav.js: removed collapsed state, isCollapsed/toggleCollapsed/categoryIcon methods, restored plain <h4> category headers
  • AdminApplication.tsx: reverted extensionCategories to { feature: 30, theme: 20, language: 10 }
  • AdminNav.less: reverted .ExtensionListTitle to simple muted uppercase heading, removed 5 new CSS classes

Extensions with specific categories (moderation, discussion, formatting, etc.) fall back to the Features section via the existing getCategorizedExtensions fallback behaviour.

…tion sidebar

The collapsible category groups introduced in #4392 added too much
friction — everything collapsed by default, count badges read like
notification counts, and single-item categories (Infrastructure: 1,
Analytics: 1) were pointless to collapse.

Reverts AdminNav back to plain <h4> section headers with three sections
(Features, Themes, Languages). All extensions with specific categories
(moderation, discussion, formatting, etc.) fall back to Features via
getCategorizedExtensions, which is the correct behaviour for a flat list.

The extension health widget, abandoned package badges on individual
extension items, and ExtensionLinkButton tooltip are all preserved.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imorland imorland requested a review from a team as a code owner March 14, 2026 22:40
@imorland imorland changed the title revert(admin): remove collapsible extension categories, restore 3-section sidebar [2.x] revert(admin): remove collapsible extension categories, restore 3-section sidebar Mar 14, 2026
All 20 bundled extensions had their composer.json category changed from
"feature" to specific values (moderation, formatting, discussion, etc.)
in #4392 alongside the collapsible sidebar. Since the sidebar is being
reverted to a 3-section model (feature/theme/language), restoring
"feature" keeps the data consistent with the rendering logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imorland imorland merged commit 3e6268d into 2.x Mar 14, 2026
27 checks passed
@imorland imorland deleted the im/revert-admin-nav-categories branch March 14, 2026 22:59
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.

1 participant