Dashboard: New experimental time range zoom shortcuts (#114190)

* feat(toggle): new feature toggle for time range zoom keyboard shortcuts

* feat(keyboard-shortcuts): handle `t +` and `t -` key combinations

* test(keyboard-shortcuts): validate time range zoom with `t +`, and `t -`

* chore(i18n): update keyboard shortcut translations

* refactor(time-range): no-op when timespan is zero instead of defaulting
This commit is contained in:
Jesse David Peterson
2025-11-20 17:14:27 -04:00
committed by GitHub
parent 6f9c867660
commit ef00dd4940
10 changed files with 337 additions and 22 deletions
+7
View File
@@ -1099,6 +1099,13 @@ var (
FrontendOnly: true,
Owner: grafanaDatavizSquad,
},
{
Name: "newTimeRangeZoomShortcuts",
Description: "Enables new keyboard shortcuts for time range zoom operations",
Stage: FeatureStageExperimental,
FrontendOnly: true,
Owner: grafanaDatavizSquad,
},
{
Name: "azureMonitorDisableLogLimit",
Description: "Disables the log limit restriction for Azure Monitor when true. The limit is enabled by default.",
+1
View File
@@ -152,6 +152,7 @@ pluginsSriChecks,GA,@grafana/plugins-platform-backend,false,false,false
unifiedStorageBigObjectsSupport,experimental,@grafana/search-and-storage,false,false,false
timeRangeProvider,experimental,@grafana/grafana-frontend-platform,false,false,false
timeRangePan,experimental,@grafana/dataviz-squad,false,false,true
newTimeRangeZoomShortcuts,experimental,@grafana/dataviz-squad,false,false,true
azureMonitorDisableLogLimit,GA,@grafana/partner-datasources,false,false,false
playlistsReconciler,experimental,@grafana/grafana-app-platform-squad,false,true,false
passwordlessMagicLinkAuthentication,experimental,@grafana/identity-access-team,false,false,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
152 unifiedStorageBigObjectsSupport experimental @grafana/search-and-storage false false false
153 timeRangeProvider experimental @grafana/grafana-frontend-platform false false false
154 timeRangePan experimental @grafana/dataviz-squad false false true
155 newTimeRangeZoomShortcuts experimental @grafana/dataviz-squad false false true
156 azureMonitorDisableLogLimit GA @grafana/partner-datasources false false false
157 playlistsReconciler experimental @grafana/grafana-app-platform-squad false true false
158 passwordlessMagicLinkAuthentication experimental @grafana/identity-access-team false false false
+13
View File
@@ -2873,6 +2873,19 @@
"hideFromDocs": true
}
},
{
"metadata": {
"name": "newTimeRangeZoomShortcuts",
"resourceVersion": "1763646782694",
"creationTimestamp": "2025-11-20T13:53:02Z"
},
"spec": {
"description": "Enables new keyboard shortcuts for time range zoom operations",
"stage": "experimental",
"codeowner": "@grafana/dataviz-squad",
"frontend": true
}
},
{
"metadata": {
"name": "newVizSuggestions",