New Logs Context: Logs context using the new Logs Panel (#108852)

* LogLineContext: initial support

* LogLineContext: infinite scroll bottom

* LogLineContext: clean up styles and support both scrolls

* InfiniteScroll: support top scrolling

* LogLineContext: support center matched line

* LogLineContext: read options from storage

* LogLineContext: move padding container

* LogLineContext: reset on ui change

* LogLineContext: improve sort order and fix open in split

* LogLineContext: show log line

* Translations

* LogsPanel: integrate new context component

* LogLineContext: add unit test

* Prettier

* Remove unused import

* InfiniteScroll: add "scroll to load more" top

* LogLineContext: rename collapsible

* Update tests

* LogLineContext: refactor center button

* LogLineContext: handle overflow in small viewports

* LogLineContext: format referenced log line

* Memoize

* LogLineContext: make modal bigger

* LogList: improve a11y

* LogLineContext: flexbox magic

* LogLineContext: revert center button change

* LogsPanel: hide overflow

* LogLineContext: responsive min-height

* LogLineContext: fix wrap log message

* InfiniteScroll: improve direction handling

* Add feature flag

* Implement feature flag

* InfiniteScroll: report direction
This commit is contained in:
Matias Chomicki
2025-08-01 11:30:17 +00:00
committed by GitHub
parent 9ca0750134
commit 3f90c85c4e
17 changed files with 1207 additions and 67 deletions
+7
View File
@@ -1890,6 +1890,13 @@ var (
Owner: grafanaDataProSquad,
FrontendOnly: true,
},
{
Name: "newLogContext",
Description: "New Log Context component",
Stage: FeatureStageExperimental,
Owner: grafanaObservabilityLogsSquad,
FrontendOnly: true,
},
}
)
+1
View File
@@ -244,3 +244,4 @@ dashboardDsAdHocFiltering,experimental,@grafana/datapro,false,false,true
dashboardLevelTimeMacros,experimental,@grafana/dashboards-squad,false,false,true
alertmanagerRemoteSecondaryWithRemoteState,experimental,@grafana/alerting-squad,false,false,false
adhocFiltersInTooltips,experimental,@grafana/datapro,false,false,true
newLogContext,experimental,@grafana/observability-logs,false,false,true
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
244 dashboardLevelTimeMacros experimental @grafana/dashboards-squad false false true
245 alertmanagerRemoteSecondaryWithRemoteState experimental @grafana/alerting-squad false false false
246 adhocFiltersInTooltips experimental @grafana/datapro false false true
247 newLogContext experimental @grafana/observability-logs false false true
+4
View File
@@ -986,4 +986,8 @@ const (
// FlagAdhocFiltersInTooltips
// Enable adhoc filter buttons in visualization tooltips
FlagAdhocFiltersInTooltips = "adhocFiltersInTooltips"
// FlagNewLogContext
// New Log Context component
FlagNewLogContext = "newLogContext"
)
+13
View File
@@ -2150,6 +2150,19 @@
"expression": "false"
}
},
{
"metadata": {
"name": "newLogContext",
"resourceVersion": "1754044501326",
"creationTimestamp": "2025-08-01T10:35:01Z"
},
"spec": {
"description": "New Log Context component",
"stage": "experimental",
"codeowner": "@grafana/observability-logs",
"frontend": true
}
},
{
"metadata": {
"name": "newLogsPanel",