-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(global-header): added mount points for global header #2168
feat(global-header): added mount points for global header #2168
Conversation
The image is available at: |
f7700b5
to
5080c3e
Compare
The image is available at: |
964a108
to
a123747
Compare
The image is available at: |
/test e2e-tests |
a467323
to
314e8f0
Compare
The image is available at: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial feedback:
9a37dde
to
ad1eab1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just render all "above sidebar" headers and all "above content" headers:
The image is available at: |
The image is available at: |
/cc @debsmita1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with positions
above-sidebar
and above-main-content
and invalid position value
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, yep, this looks good! One small suggestion below to extract the new code into a new component.
And then I think this PR should also include some new documentation in https://github.com/redhat-developer/rhdh/blob/main/docs/dynamic-plugins/frontend-plugin-wiring.md
I think a good spot would be after "Customizing and Adding Entity tabs" (before "Provide additional Utility APIs").
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
1db34b3
to
90ec01a
Compare
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
The image is available at: |
Signed-off-by: Yi Cai <[email protected]>
The image is available at: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kadel , can you take a look at changes in this file?
You can also review it from: https://github.com/ciiay/rhdh/blob/rhidp-5471-create-mountpoints-for-global-header/docs/dynamic-plugins/frontend-plugin-wiring.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @ciiay. The change incl. documentation change lgtm. 👍
We can always improve.
I've tested the container image on a cluster without enabling the plugin. ✔️
With enabled plugin and without any other configuration the header is shown ✔️
global:
dynamic:
plugins:
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header
disabled: false
I could also add another header from the test package ✔️
global:
dynamic:
plugins:
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header
disabled: false
- package: '@red-hat-developer-hub/[email protected]'
integrity: 'sha512-Dlay4DUAC3SifSJx4dmKDeD07DITGX9ZZ2SMCgcMMc00GJVKToD3DFuPYZ7lV2C2Ve7gWDufCf5NUmqaUWf6GA=='
pluginConfig:
dynamicPlugins:
frontend:
red-hat-developer-hub.backstage-plugin-global-header-test:
mountPoints:
- mountPoint: application/header
importName: CrashHeader
config:
layout:
position: above-main-content
above-sidebar works also ✔️
ErrorBoundary works also expected ✔️
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christoph-jerolimov, debsmita1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
9a7353c
into
redhat-developer:main
Description
This is for RHIDP-5471
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer
/workspaces/global-header/plugins/global-header/
directory, runyarn install
andyarn dev
Screen recording:
Locally:
rhidp_5471.mp4
OCP:
rhidp_5471_pr_2168.mp4