CommandPalette: Search for dashboards using API (#61090)

* CommandPalette: Search for dashboards using API

* Fix ordering of dashboards

* Put recent + search dashboards in root list, refactor actions into hook

* limit recent dashboards to 5

* search debounce to 200ms

* update priorities

* extract i18n
This commit is contained in:
Josh Hunt
2023-01-10 14:59:32 +00:00
committed by GitHub
parent 9a14a7db03
commit 5d725d22ad
14 changed files with 285 additions and 129 deletions

View File

@@ -5,6 +5,21 @@
"success": "Copied"
}
},
"command-palette": {
"action": {
"change-theme": "Change theme...",
"dark-theme": "Dark",
"light-theme": "Light",
"search": "Search"
},
"section": {
"actions": "Actions",
"dashboard-search-results": "Dashboards",
"pages": "Pages",
"preferences": "Preferences",
"recent-dashboards": "Recently viewed dashboards"
}
},
"common": {
"locale": {
"default": "Default"
@@ -83,7 +98,6 @@
"datasource-onboarding": {
"contact-admin": "Please contact your administrator to configure data sources.",
"explanation": "To visualize your data, you'll need to connect it first.",
"logo": "Logo for {{datasourceName}} data source",
"new-dashboard": "New dashboard",
"preferred": "Connect your preferred data source:",
"sampleData": "Or set up a new dashboard with sample data",
@@ -314,7 +328,7 @@
},
"support-bundles": {
"subtitle": "Download support bundles",
"title": "Support Bundles"
"title": "Support bundles"
},
"teams": {
"subtitle": "Groups of users that have common dashboard and permission needs",