Skip to content

Conversation

mdvictor
Copy link
Collaborator

@mdvictor mdvictor commented Oct 16, 2025

Extends the vizPanel with a subHeader row in which various elements can be shown. This is in preparation to showing non applicable filter pills in there. Depends on PanelChrome to render the subHeader

📦 Published PR as canary version: 6.40.0--canary.1278.18560955561.0

✨ Test out this PR locally via:

npm install @grafana/[email protected]
npm install @grafana/[email protected]
# or 
yarn add @grafana/[email protected]
yarn add @grafana/[email protected]

@mdvictor mdvictor added minor Increment the minor version when merged release Create a release when this pr is merged labels Oct 16, 2025
@mdvictor mdvictor marked this pull request as ready for review October 16, 2025 12:24
Copy link
Collaborator

@dprokop dprokop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please consider my feedback in grafana/grafana#112507

/**
* Allows adding elements to the subheader of the panel.
*/
subHeaderContent?: React.ReactNode | SceneObject | SceneObject[];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
subHeaderContent?: React.ReactNode | SceneObject | SceneObject[];
subHeader?: React.ReactNode | SceneObject | SceneObject[];

@mdvictor
Copy link
Collaborator Author

Thank you @dprokop! I'll tackle the core PR and update based on review, thank you for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged release Create a release when this pr is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants