Dashboards: Add restricted extension point for empty state (#111788)

* Dashboards: Add restricted extension point for empty state

* FeatureToggles: Regenerate files with new toggle

* Dashboards: Pass default empty UI as component, not children

* Dashboards: Expose hooks for empty state methods to extensions

* Dashboards: Move empty state button hooks to dedicated file

* Dashboards: Render loader while empty state plugin components loading

* Dashboards: Pass empty state default UI as method

* Dashboards: De-duplicate hook usages in empty state

* Dashboards: De-duplicate read-only repo check in empty state
This commit is contained in:
Matt Cowley
2025-10-13 09:03:13 +02:00
committed by GitHub
parent 1e5f65faf9
commit 85174e3313
12 changed files with 217 additions and 59 deletions
+16
View File
@@ -1383,6 +1383,22 @@
"expression": "false"
}
},
{
"metadata": {
"name": "enableDashboardEmptyExtensions",
"resourceVersion": "1759194774156",
"creationTimestamp": "2025-09-30T01:12:54Z"
},
"spec": {
"description": "Set this to true to enable all dashboard empty state extensions registered by plugins.",
"stage": "experimental",
"codeowner": "@grafana/dashboards-squad",
"frontend": true,
"hideFromAdminPage": true,
"hideFromDocs": true,
"expression": "false"
}
},
{
"metadata": {
"name": "enableDatagridEditing",