NestedFolders: Show nested folders in Browse folder view (#63746)

* dirty dirty code for showing nested folders in folder view

refactor to NestedFolderItem

Update dashboard grid view to new types

update tests

REBASE OUT OF THIS BRANCH - joshhunt/star-by-uid merged into this

Squashed commit of the following:

commit d0f046ccd3
Author: joshhunt <josh@trtr.co>
Date:   Wed Feb 8 18:35:56 2023 +0000

    undo async

commit abe2777a1f
Author: joshhunt <josh@trtr.co>
Date:   Wed Feb 8 18:34:11 2023 +0000

    Dashboards: Star dashboards by UID

add type for dashboard search dto

clean DashboardSearchItem type

simplify DashboardSearchHit type

remove unused properties from DashboardSearchHit

make uid non-optional

rename + move NestedFolderItem type to DashboardViewItem

clean up

* wip

* fix checkbox selection of nested folders

* show folder's parent correctly

* Add dashboard result kind

* don't render folder empty view in SearchView

* call nested folders api only if feature flag enabled

* remove unused import

* un-rename variable to reduce PR diff

* fix typo in comment

* fix order of pseudoFolders

* Fix General folder not showing in browse

* rename folder view tests

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Josh Hunt
2023-03-23 13:28:45 +00:00
committed by GitHub
parent da97139489
commit d13488a435
17 changed files with 250 additions and 97 deletions

View File

@@ -9,8 +9,7 @@
"action": {
"change-theme": "",
"dark-theme": "",
"light-theme": "",
"search": ""
"light-theme": ""
},
"search-box": {
"placeholder": ""
@@ -84,7 +83,6 @@
},
"toolbar": {
"add-panel": "Añadir panel",
"comments-show": "Mostrar comentarios del panel de control",
"mark-favorite": "Marcar como favorito",
"open-original": "Abrir el panel de control original",
"playlist-next": "Ir al siguiente panel de control",
@@ -292,7 +290,6 @@
"title": "Escenas"
},
"search": {
"placeholder": "Buscar Grafana",
"placeholderCommandPalette": ""
},
"search-dashboards": {
@@ -415,6 +412,11 @@
"go-to-folder": "",
"select-folder": ""
},
"result-kind": {
"dashboard": "",
"folder": "",
"panel": ""
},
"results-table": {
"datasource-header": "",
"location-header": "",