Skip to content

Commit b8ff6e7

Browse files
GitHub Actionsopenshift-cherrypick-robot
authored andcommitted
Enable Quicklinks and Starred Items by default in the global header
1 parent 39c79ba commit b8ff6e7

File tree

4 files changed

+108
-2
lines changed

4 files changed

+108
-2
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3-
"preconfigured"
3+
"preconfigured",
4+
"quicklinks"
45
]
56
}

assemblies/assembly-configuring-the-global-header.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ By default, the {product-short} global header includes the following components:
1616
include::modules/configuring-the-global-header/proc-customize-rhdh-global-header.adoc[leveloffset=+1]
1717

1818

19-
include::modules/configuring-the-global-header/proc-mount-points.adoc[leveloffset=+1]
19+
include::modules/configuring-the-global-header/proc-mount-points.adoc[leveloffset=+1]
20+
21+
include::modules/configuring-the-global-header/con-quicklinks-and-starred-items-in-global-header.adoc[leveloffset=+1]
22+
23+
include::modules/configuring-the-global-header/proc-enabling-quicklinks-starred-items-upgrade.adoc[leveloffset=+1]
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[id="quicklinks-and-starred-items-in-global-header_{context}"]
2+
= Enable *Quicklinks* and *Starred Items* by default in the global header
3+
4+
The *Quicklinks* matrix and *Starred Items* drop-down are enabled by default and are visible without any additional configuration when you deploy a new {product} instance.
5+
6+
The *Quicklinks* matrix, organized by sections (for example, Documentation or Developer Tools), allows users to quickly access internal or external resources. The *Starred Items* drop-down contains entities and pages that the user has starred.
7+
8+
The default configuration includes the following components:
9+
10+
*StarredDropdown*: Ensures that the `Starred Items` menu appears by default, as shown in the following configuration:
11+
12+
[source,yaml]
13+
----
14+
# Group: Global Header
15+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header
16+
- mountPoint: global.header/component
17+
importName: StarredDropdown
18+
config:
19+
priority: 85
20+
----
21+
22+
*ApplicationLauncherDropdown*: Provides the `Quicklinks` matrix (application launcher), as shown in the following configuration:
23+
24+
[source,yaml]
25+
----
26+
# Group: Global Header
27+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header
28+
- mountPoint: global.header/component
29+
importName: ApplicationLauncherDropdown
30+
config:
31+
priority: 82
32+
----
33+
34+
*MenuItemLink entries*: Define a section, title, icon, and link. The default configuration includes links to the {product-short} documentation and an {product-very-short} Local instance, as shown in the following configurations:
35+
36+
[source,yaml]
37+
----
38+
- mountPoint: global.header/application-launcher
39+
importName: MenuItemLink
40+
config:
41+
section: Documentation
42+
priority: 150
43+
props:
44+
title: Developer Hub
45+
icon: developerHub
46+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub
47+
48+
- mountPoint: global.header/application-launcher
49+
importName: MenuItemLink
50+
config:
51+
section: Developer Tools
52+
priority: 100
53+
props:
54+
title: RHDH Local
55+
icon: developerHub
56+
link: https://github.com/redhat-developer/rhdh-local
57+
----
58+
59+
[NOTE]
60+
====
61+
When upgrading from previous versions, the installer does not overwrite your existing `dynamic-plugins.yaml` configuration. If you had not configured *Starred Items* or *Quicklinks* previously, they remain disabled after the upgrade.
62+
====
63+
64+
65+
66+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[id="enabling-quicklinks-starred-items-upgrade_{context}"]
2+
= Enabling Quicklinks and Starred Items after an upgrade
3+
4+
You can enable the *Quicklinks* and *Starred Items* features after upgrading from {product} `1.6` or earlier. By default, these features are not automatically enabled in upgraded environments.
5+
6+
.Procedure
7+
8+
. Locate your dynamic-plugin configuration. If you are using the Operator, this configuration is stored in a ConfigMap referenced by your Backstage custom resource (CR).
9+
10+
. Enable the global-header plugin. Ensure that the `red-hat-developer-hub-backstage-plugin-global-header` entry exists under the `plugins: list` and that `disabled: false` is set.
11+
12+
. Add the *StarredDropdown*, *ApplicationLauncherDropdown*, and *MenuItemLink* components. Under the plugin's `mountPoints`, add the components as shown in the following example:
13+
+
14+
[source,yaml]
15+
----
16+
mountPoints:
17+
- mountPoint: application/header
18+
importName: GlobalHeader
19+
config:
20+
position: above-sidebar
21+
- mountPoint: global.header/component
22+
importName: StarredDropdown
23+
config:
24+
priority: 85
25+
- mountPoint: global.header/component
26+
importName: ApplicationLauncherDropdown
27+
config:
28+
priority: 82
29+
- mountPoint: global.header/component
30+
importName: MenuItemLink
31+
config:
32+
priority: 80
33+
----
34+
35+
. Apply the configuration and restart the pod. After updating the ConfigMap file, restart your {product} instance so that the global header displays the star icon, *Quicklinks* matrix, and *menu item* link.

0 commit comments

Comments
 (0)