ScopesInput: Display parent and use + as separator (#107698)

* Display group and use + as separator

* Set/get parent node from URL

* Add hook useScopeNode

* Add loading state and Skeleton

* Add preload and actually commit hook

* Add preload

* Add feature flag

* Update test

* Fix test

* Fix tree test
This commit is contained in:
Tobias Skarhed
2025-07-31 16:32:41 +02:00
committed by GitHub
parent 32434810e1
commit 972e2f31e5
13 changed files with 172 additions and 25 deletions
+10
View File
@@ -769,6 +769,16 @@ var (
HideFromAdminPage: true,
Expression: "false",
},
{
Name: "useScopeSingleNodeEndpoint",
Description: "Use the single node endpoint for the scope api. This is used to fetch the scope parent node.",
Stage: FeatureStageExperimental,
Owner: grafanaOperatorExperienceSquad,
Expression: "false",
FrontendOnly: true,
HideFromDocs: true,
HideFromAdminPage: true,
},
{
Name: "promQLScope",
Description: "In-development feature that will allow injection of labels into prometheus queries.",
+1
View File
@@ -101,6 +101,7 @@ secretsManagementAppPlatform,experimental,@grafana/grafana-operator-experience-s
alertingSaveStatePeriodic,privatePreview,@grafana/alerting-squad,false,false,false
alertingSaveStateCompressed,preview,@grafana/alerting-squad,false,false,false
scopeApi,experimental,@grafana/grafana-app-platform-squad,false,false,false
useScopeSingleNodeEndpoint,experimental,@grafana/grafana-operator-experience-squad,false,false,true
promQLScope,GA,@grafana/oss-big-tent,false,false,false
logQLScope,privatePreview,@grafana/observability-logs,false,false,false
sqlExpressions,privatePreview,@grafana/grafana-datasources-core-services,false,false,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
101 alertingSaveStatePeriodic privatePreview @grafana/alerting-squad false false false
102 alertingSaveStateCompressed preview @grafana/alerting-squad false false false
103 scopeApi experimental @grafana/grafana-app-platform-squad false false false
104 useScopeSingleNodeEndpoint experimental @grafana/grafana-operator-experience-squad false false true
105 promQLScope GA @grafana/oss-big-tent false false false
106 logQLScope privatePreview @grafana/observability-logs false false false
107 sqlExpressions privatePreview @grafana/grafana-datasources-core-services false false false
+4
View File
@@ -415,6 +415,10 @@ const (
// In-development feature flag for the scope api using the app platform.
FlagScopeApi = "scopeApi"
// FlagUseScopeSingleNodeEndpoint
// Use the single node endpoint for the scope api. This is used to fetch the scope parent node.
FlagUseScopeSingleNodeEndpoint = "useScopeSingleNodeEndpoint"
// FlagPromQLScope
// In-development feature that will allow injection of labels into prometheus queries.
FlagPromQLScope = "promQLScope"
+16
View File
@@ -3242,6 +3242,22 @@
"hideFromDocs": true
}
},
{
"metadata": {
"name": "useScopeSingleNodeEndpoint",
"resourceVersion": "1753960766702",
"creationTimestamp": "2025-07-31T11:19:26Z"
},
"spec": {
"description": "Use the single node endpoint for the scope api. This is used to fetch the scope parent node.",
"stage": "experimental",
"codeowner": "@grafana/grafana-operator-experience-squad",
"frontend": true,
"hideFromAdminPage": true,
"hideFromDocs": true,
"expression": "false"
}
},
{
"metadata": {
"name": "useScopesNavigationEndpoint",