Skip to content

Commit a49a2cc

Browse files
authored
feat(header): add new NFS header (#2783)
Signed-off-by: Rohit Rai <rohitkrai03@gmail.com>
1 parent 5348fb2 commit a49a2cc

52 files changed

Lines changed: 4839 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-global-header': minor
3+
---
4+
5+
Added a new frontend system based header

workspaces/global-header/app-config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
app:
22
title: RHDH Global Header Test App
33
baseUrl: http://localhost:3000
4+
5+
packages: all
6+
7+
extensions:
8+
- api:app/app-language:
9+
config:
10+
availableLanguages: ['en', 'de', 'fr', 'it', 'es', 'ja']
11+
defaultLanguage: 'en'
12+
- page:catalog:
13+
config:
14+
path: /
15+
416
support:
517
url: https://access.redhat.com/products/red-hat-developer-hub
618
items:
@@ -11,6 +23,39 @@ app:
1123
- url: https://access.redhat.com/documentation/en-us/red_hat_developer_hub
1224
title: Documentation
1325

26+
globalHeader:
27+
components:
28+
- title: Visualizer Dashboard
29+
icon: dashboard
30+
link: /visualizer/tree
31+
priority: 75
32+
33+
menuItems:
34+
- target: app-launcher
35+
title: Internal Wiki
36+
icon: article
37+
link: https://wiki.internal.example.com
38+
sectionLabel: Resources
39+
priority: 80
40+
- target: app-launcher
41+
title: Issue Tracker
42+
icon: bug_report
43+
link: https://issues.internal.example.com
44+
sectionLabel: Resources
45+
priority: 70
46+
- target: help
47+
title: FAQ
48+
icon: quiz
49+
link: https://faq.example.com
50+
sectionLabel: Support
51+
priority: 90
52+
- target: help
53+
title: Community Forum
54+
icon: forum
55+
link: https://forum.example.com
56+
sectionLabel: Support
57+
priority: 80
58+
1459
organization:
1560
name: My Company
1661

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
# Global header
1+
# Global Header
22

3-
Red Hat Developer Hub includes a new configable and highly extendable global header plugin starting with RHDH 1.5.
3+
Red Hat Developer Hub includes a configurable and highly extensible global header plugin starting with RHDH 1.5.
44

55
By default it includes a Search input field, Create, Starred[^1], Support[^2] and Notifications[^3] icon buttons and a user profile dropdown.
66

7-
[^1]: Only when an enitity is starred.
7+
The plugin supports two integration modes:
8+
9+
- **New Frontend System** -- Extension blueprints (`GlobalHeaderComponentBlueprint`, `GlobalHeaderMenuItemBlueprint`) allow any plugin to contribute toolbar items and dropdown menu items. See the [New Frontend System Guide](new-frontend-system.md) for full details, including architecture, code examples, and API reference.
10+
- **Legacy Mount Points** -- Dynamic plugin mount points for traditional Backstage apps. See [Configuration](configuration.md).
11+
12+
Deployers can also add menu items directly via `app-config.yaml` without writing any plugin code. See [Config-Driven Menu Items](new-frontend-system.md#config-driven-menu-items).
13+
14+
[^1]: Only when an entity is starred.
815
[^2]: Only when the Support URL is configured in the `app-config.yaml`.
916
[^3]: Only when the notifications plugin is installed.

0 commit comments

Comments
 (0)