mirror of
https://github.com/apache/superset.git
synced 2024-09-16 10:39:55 -04:00
feat: Update nav bar with new data information architecture for SQL Lab + SQL (#21245)
This commit is contained in:
parent
8c2719b11c
commit
b302818522
@ -355,6 +355,7 @@ export default function MenuWrapper({ data, ...rest }: MenuProps) {
|
||||
};
|
||||
// Menu items that should go into settings dropdown
|
||||
const settingsMenus = {
|
||||
Data: true,
|
||||
Security: true,
|
||||
Manage: true,
|
||||
};
|
||||
|
@ -226,6 +226,16 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
href="/superset/welcome/",
|
||||
cond=lambda: bool(appbuilder.app.config["LOGO_TARGET_PATH"]),
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
DatabaseView,
|
||||
"Databases",
|
||||
label=__("Database Connections"),
|
||||
icon="fa-database",
|
||||
category="Data",
|
||||
category_label=__("Data"),
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
AnnotationLayerModelView,
|
||||
"Annotation Layers",
|
||||
@ -251,6 +261,16 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
category="",
|
||||
category_icon="",
|
||||
)
|
||||
|
||||
appbuilder.add_link(
|
||||
"Datasets",
|
||||
label=__("Datasets"),
|
||||
href="/tablemodelview/list/",
|
||||
icon="fa-table",
|
||||
category="",
|
||||
category_icon="",
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
DynamicPluginsView,
|
||||
"Plugins",
|
||||
@ -328,18 +348,19 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
)
|
||||
appbuilder.add_link(
|
||||
"SQL Editor",
|
||||
label=_("SQL Editor"),
|
||||
label=_("SQL Lab"),
|
||||
href="/superset/sqllab/",
|
||||
category_icon="fa-flask",
|
||||
icon="fa-flask",
|
||||
category="SQL Lab",
|
||||
category_label=__("SQL Lab"),
|
||||
category_label=__("SQL"),
|
||||
)
|
||||
appbuilder.add_link(
|
||||
__("Saved Queries"),
|
||||
href="/savedqueryview/list/",
|
||||
icon="fa-save",
|
||||
category="SQL Lab",
|
||||
category_label=__("SQL"),
|
||||
)
|
||||
appbuilder.add_link(
|
||||
"Query Search",
|
||||
@ -348,27 +369,8 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
icon="fa-search",
|
||||
category_icon="fa-flask",
|
||||
category="SQL Lab",
|
||||
category_label=__("SQL Lab"),
|
||||
category_label=__("SQL"),
|
||||
)
|
||||
appbuilder.add_view(
|
||||
DatabaseView,
|
||||
"Databases",
|
||||
label=__("Databases"),
|
||||
icon="fa-database",
|
||||
category="Data",
|
||||
category_label=__("Data"),
|
||||
category_icon="fa-database",
|
||||
)
|
||||
appbuilder.add_link(
|
||||
"Datasets",
|
||||
label=__("Datasets"),
|
||||
href="/tablemodelview/list/",
|
||||
icon="fa-table",
|
||||
category="Data",
|
||||
category_label=__("Data"),
|
||||
category_icon="fa-table",
|
||||
)
|
||||
appbuilder.add_separator("Data")
|
||||
|
||||
appbuilder.add_api(LogRestApi)
|
||||
appbuilder.add_view(
|
||||
|
Loading…
Reference in New Issue
Block a user