Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@red-hat-developer-hub/backstage-plugin-global-header': minor
---

Promote global-header NFS plugin from `/alpha` to stable. NFS APIs are now exported from the main package entry point. OFS APIs move to `/legacy` (deprecated). Translations remain at `/alpha`.
2 changes: 1 addition & 1 deletion workspaces/global-header/packages/app-legacy/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { NotificationsPage } from '@backstage/plugin-notifications';
import { githubAuthApiRef } from '@backstage/core-plugin-api';

import { getAllThemes } from '@red-hat-developer-hub/backstage-plugin-theme';
import { globalHeaderTranslations } from '@red-hat-developer-hub/backstage-plugin-global-header';
import { globalHeaderTranslations } from '@red-hat-developer-hub/backstage-plugin-global-header/legacy';
import ManageAccounts from '@mui/icons-material/ManageAccountsOutlined';
import AccountCircleOutlinedIcon from '@mui/icons-material/AccountCircleOutlined';
import Logout from '@mui/icons-material/LogoutOutlined';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { MyGroupsSidebarItem } from '@backstage/plugin-org';
import {
GlobalHeaderComponent,
defaultGlobalHeaderComponentsMountPoints,
} from '@red-hat-developer-hub/backstage-plugin-global-header';
} from '@red-hat-developer-hub/backstage-plugin-global-header/legacy';
import { NotificationsSidebarItem } from '@backstage/plugin-notifications';

/** This component is copy pasted from RHDH and should be kept in sync. */
Expand Down
2 changes: 1 addition & 1 deletion workspaces/global-header/packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
globalHeaderTranslationsModule,
GlobalHeaderMenuItemBlueprint,
GlobalHeaderMenuItem,
} from '@red-hat-developer-hub/backstage-plugin-global-header/alpha';
} from '@red-hat-developer-hub/backstage-plugin-global-header';
import { navModule } from './modules/nav';

const signInModule = createFrontendModule({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,53 @@
dynamicPlugins:
frontend:
red-hat-developer-hub.backstage-plugin-global-header:
# NFS (New Frontend System) deployment requires these extensions in app-config.yaml:
# app:
# extensions:
# - app-root-wrapper:app/global-header
# - translation:app/global-header-translations
# - api:app/app-language:
# config:
# availableLanguages: ['en', 'de', 'es', 'fr', 'it', 'ja']
# defaultLanguage: 'en'
# ------------------------------------------------------------

# OFS (Old Frontend System) deployment configuration:

# Note: Legacy/OFS exports are only available from `module: Legacy`.
# The default module (PluginRoot) is NFS-only.
translationResources:
- importName: globalHeaderTranslations
module: Legacy
ref: globalHeaderTranslationRef
mountPoints:
- mountPoint: application/header
importName: GlobalHeader
module: Legacy
config:
position: above-sidebar # above-main-content | above-sidebar
- mountPoint: global.header/component
importName: CompanyLogo
module: Legacy
config:
priority: 200
props:
to: '/'
- mountPoint: global.header/component
importName: SearchComponent
module: Legacy
config:
priority: 100
- mountPoint: global.header/component
importName: Spacer
module: Legacy
config:
priority: 99
props:
growFactor: 0
- mountPoint: global.header/component
importName: HeaderIconButton
module: Legacy
config:
priority: 90
props:
Expand All @@ -37,16 +58,19 @@ dynamicPlugins:
to: create
- mountPoint: global.header/component
importName: StarredDropdown
module: Legacy
config:
priority: 85

- mountPoint: global.header/component
importName: ApplicationLauncherDropdown
module: Legacy
config:
priority: 82

- mountPoint: global.header/application-launcher
importName: MenuItemLink
module: Legacy
config:
section: Documentation
priority: 150
Expand All @@ -58,6 +82,7 @@ dynamicPlugins:

- mountPoint: global.header/application-launcher
importName: MenuItemLink
module: Legacy
config:
section: Developer Tools
priority: 100
Expand All @@ -69,28 +94,34 @@ dynamicPlugins:

- mountPoint: global.header/component
importName: HelpDropdown
module: Legacy
config:
priority: 80

- mountPoint: global.header/help
importName: SupportButton
module: Legacy
config:
priority: 10

- mountPoint: global.header/component
importName: NotificationButton
module: Legacy
config:
priority: 70
- mountPoint: global.header/component
importName: Divider
module: Legacy
config:
priority: 50
- mountPoint: global.header/component
importName: ProfileDropdown
module: Legacy
config:
priority: 10
- mountPoint: global.header/profile
importName: MenuItemLink
module: Legacy
config:
priority: 100
props:
Expand All @@ -100,6 +131,7 @@ dynamicPlugins:
icon: manageAccounts
- mountPoint: global.header/profile
importName: MenuItemLink
module: Legacy
config:
priority: 90
props:
Expand All @@ -109,5 +141,6 @@ dynamicPlugins:
icon: account
- mountPoint: global.header/profile
importName: LogoutButton
module: Legacy
config:
priority: 10
24 changes: 23 additions & 1 deletion workspaces/global-header/plugins/global-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,25 @@
"exports": {
".": "./src/index.ts",
"./alpha": "./src/alpha/index.ts",
"./legacy": "./src/legacy.ts",
"./global-header-module": "./src/globalHeaderModuleExport.ts",
"./global-header-translations-module": "./src/globalHeaderTranslationsModuleExport.ts",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"alpha": [
"src/alpha/index.ts"
],
"legacy": [
"src/legacy.ts"
],
"global-header-module": [
"src/globalHeaderModuleExport.ts"
],
"global-header-translations-module": [
"src/globalHeaderTranslationsModuleExport.ts"
],
"package.json": [
"package.json"
]
Expand Down Expand Up @@ -102,5 +114,15 @@
"dist",
"config.d.ts"
],
"configSchema": "config.d.ts"
"configSchema": "config.d.ts",
"scalprum": {
"name": "red-hat-developer-hub.backstage-plugin-global-header",
"exposedModules": {
"PluginRoot": "./src/index.ts",
"Alpha": "./src/alpha/index.ts",
"Legacy": "./src/legacy.ts",
"GlobalHeaderModule": "./src/globalHeaderModuleExport.ts",
"GlobalHeaderTranslationsModule": "./src/globalHeaderTranslationsModuleExport.ts"
}
}
}
Loading
Loading