Skip to content

ui: rename Header to PluginHeader - #32875

Merged
Rugvip merged 1 commit into
masterfrom
rugvip/rename-header-to-plugin-header
Feb 17, 2026
Merged

Rugvip merged 1 commit into
masterfrom
rugvip/rename-header-to-plugin-header

Conversation

@Rugvip

@Rugvip Rugvip commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

Had a discussion with @cdedreuille about this one, the overall plan is to rename the current Header to PluginHead and the current HeaderPage to just Header. We can't do that all at once since it'd be confusing, so instead we start with an immediate breaking rename of Header to PluginHeader. This is a component that didn't really have any existing use in Backstage apps just yet, so the impact of the immediate breaking change should be minimal. It is being introduced through #32812 alongside this change though.

This renames the Header component in @backstage/ui to PluginHeader. The following public exports have been renamed:

  • Header → PluginHeader
  • HeaderProps → PluginHeaderProps
  • HeaderDefinition → PluginHeaderDefinition

CSS class names updated from bui-Header* to bui-PluginHeader* to match. The HeaderTab type is unchanged since it's shared with HeaderPage.

The docs-ui site has been updated as well — the component page moved from /components/header to /components/plugin-header, and all snippets, examples, and changelog references have been updated.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie

Copy link
Copy Markdown
Contributor

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/ui packages/ui minor v0.12.0-next.2

@backstage-goalie backstage-goalie Bot added size:medium Medium-sized pull requests receive no change in priority for reviews. waiting-for:review The PR needs a review and will be visible in the review queue unless already assigned an owner. labels Feb 17, 2026
@github-actions

github-actions Bot commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

🎨 Visual Testing with Chromatic

@Rugvip
Rugvip marked this pull request as ready for review February 17, 2026 10:35
@Rugvip
Rugvip requested a review from a team as a code owner February 17, 2026 10:35
Copilot AI review requested due to automatic review settings February 17, 2026 10:35
@Rugvip
Rugvip requested a review from a team as a code owner February 17, 2026 10:35
Renamed the Header component to PluginHeader for clarity, along with
all associated exports (HeaderProps, HeaderDefinition) and CSS class
names. Updated docs-ui documentation to match.

Signed-off-by: Patrik Oldsberg <[email protected]>
@Rugvip
Rugvip force-pushed the rugvip/rename-header-to-plugin-header branch from 9f263b7 to 0ec3c0e Compare February 17, 2026 10:37

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 renames the Header component to PluginHeader in the @backstage/ui package as part of a broader refactoring strategy to better distinguish plugin-level headers from page-level headers. The change is introduced alongside PR #32812 which adds a new page extension system, with plans to eventually rename HeaderPage to Header in a future change.

Changes:

  • Renamed component exports and types: Header → PluginHeader, HeaderProps → PluginHeaderProps, HeaderDefinition → PluginHeaderDefinition
  • Updated all CSS class names from bui-Header* to bui-PluginHeader*
  • Updated documentation site, examples, stories, and changelogs to reflect the new naming

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/ui/src/index.ts Updated export from ./components/Header to ./components/PluginHeader
packages/ui/src/definitions.ts Updated export from HeaderDefinition to PluginHeaderDefinition
packages/ui/src/components/PluginHeader/*.ts(x) Renamed component, types, and definition files with all internal references updated
packages/ui/src/components/PluginHeader/PluginHeader.module.css Updated CSS class names from bui-Header* to bui-PluginHeader*
packages/ui/src/components/HeaderPage/types.ts Updated import path to reference PluginHeader directory
packages/ui/src/components/SearchField/SearchField.stories.tsx Updated component usage from Header to PluginHeader
packages/ui/src/components/FullPage/FullPage.stories.tsx Updated component usage and imports
packages/ui/report.api.md Removed old exports and added new PluginHeader exports, preserving shared HeaderTab type
docs-ui/src/utils/types.ts Updated component slug from 'header' to 'plugin-header'
docs-ui/src/utils/data.ts Updated component title and slug in navigation data
docs-ui/src/utils/changelogs/v0.9.0.ts Updated component references in changelog entries
docs-ui/src/app/components/plugin-header/* Updated all documentation files including snippets, examples, and MDX content
.changeset/rename-header-to-plugin-header.md Added well-formatted changeset with breaking change notice and migration guide

@emmaindal emmaindal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks good to me! I'm sure you explored alternatives here but just curious to know if you ever discussed PageHeader instead? Or are their certain circumstances where the recommendation is to not use this component?

@backstage-goalie backstage-goalie Bot added waiting-for:merge The PR has been approved and is awaiting merge. and removed waiting-for:review The PR needs a review and will be visible in the review queue unless already assigned an owner. labels Feb 17, 2026
@Rugvip

Rugvip commented Feb 17, 2026

Copy link
Copy Markdown
Member Author

@emmaindal yep the intention is for this header to be at the scope of the plugin rather than individual pages. In general we want to reduce the conflict with that's currently the HeaderPage and promote that one as much as possible for use on plugin pages. I think if you use the PageBlueprint you'd be more inclined to reach for the PageHeader, but that's not what we want.

@Rugvip
Rugvip merged commit 9e71e1d into master Feb 17, 2026
29 checks passed
@Rugvip
Rugvip deleted the rugvip/rename-header-to-plugin-header branch February 17, 2026 10:54
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.48.0 release, scheduled for Tue, 17 Feb 2026.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:medium Medium-sized pull requests receive no change in priority for reviews. waiting-for:merge The PR has been approved and is awaiting merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants