-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
chore: Add entry point for SliceHeader frontend extension #25968
chore: Add entry point for SliceHeader frontend extension #25968
Conversation
@@ -239,6 +242,9 @@ const SliceHeader: FC<SliceHeaderProps> = ({ | |||
<div className="header-controls"> | |||
{!editMode && ( | |||
<> | |||
{SliceHeaderExtension && ( |
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.
Can we add a test for when the extension is provided?
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.
Good point, done
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.
lgtm
@@ -239,6 +242,9 @@ const SliceHeader: FC<SliceHeaderProps> = ({ | |||
<div className="header-controls"> | |||
{!editMode && ( | |||
<> | |||
{SliceHeaderExtension && ( | |||
<SliceHeaderExtension slice={slice} dashboardId={dashboardId} /> |
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.
do we need the entire slice or just the id?
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're right, if an extension needs entire slice, it can be pulled from redux store using just the id. Updated
SUMMARY
Adds
dashboard.slice.header
to frontend extensions registry for a SliceHeaderExtension componentBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
No changes expected
ADDITIONAL INFORMATION