Log: Added panel support for filtering callbacks (#88980)

* chore: update stale comment

* Logs Panel: add props for interactive callbacks

* LogsPanel: type guard unknown props

* chore: add comments

* chore: rename popover filtering callbacks prop names

* chore: format panelcfg

* Formatting

* LogsPanel: add default label filter handlers using panel context

* Formatting

* chore: add tests for new props
This commit is contained in:
Matias Chomicki
2024-06-11 15:54:41 +02:00
committed by GitHub
parent f32afbcb0a
commit ff0c9bd66a
13 changed files with 222 additions and 54 deletions

View File

@@ -15,6 +15,14 @@ export const pluginVersion = "11.1.0-pre";
export interface Options {
dedupStrategy: common.LogsDedupStrategy;
enableLogDetails: boolean;
isFilterLabelActive?: unknown;
/**
* TODO: figure out how to define callbacks
*/
onClickFilterLabel?: unknown;
onClickFilterOutLabel?: unknown;
onClickFilterOutString?: unknown;
onClickFilterString?: unknown;
prettifyLogMessage: boolean;
showCommonLabels: boolean;
showLabels: boolean;