Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: reorder project sidebar items (#8891)

Danny Xu6c0da0d66f77
diff --git a/frontend/src/components/Project/ProjectSidebar.vue b/frontend/src/components/Project/ProjectSidebar.vue
index ca2043ee51..0a17c11ba5 100644
--- a/frontend/src/components/Project/ProjectSidebar.vue
+++ b/frontend/src/components/Project/ProjectSidebar.vue
@@ -95,6 +95,13 @@ const projectSidebarItemList = computed((): ProjectSidebarItem[] => {
title: t("common.databases"),
hash: "databases",
},
+ {
+ title: t("common.groups"),
+ hash: "database-groups",
+ hide:
+ isTenantProject.value ||
+ !currentUserIamPolicy.isMemberOfProject(project.value.name),
+ },
{
title: t("common.change-history"),
hash: "change-history",
@@ -108,13 +115,6 @@ const projectSidebarItemList = computed((): ProjectSidebarItem[] => {
hide: !currentUserIamPolicy.isMemberOfProject(project.value.name),
},
// TODO: Anomaly
- {
- title: t("common.database-groups"),
- hash: "database-groups",
- hide:
- isTenantProject.value ||
- !currentUserIamPolicy.isMemberOfProject(project.value.name),
- },
],
},
{
@@ -138,38 +138,38 @@ const projectSidebarItemList = computed((): ProjectSidebarItem[] => {
// TODO: Changelists
// TODO: Sync schema
{
- title: t("common.manage"),
- icon: h(Users),
+ title: t("settings.sidebar.integration"),
+ icon: h(Link),
hide:
isDefaultProject.value ||
- !currentUserIamPolicy.isMemberOfProject(project.value.name),
+ !currentUserIamPolicy.allowToChangeDatabaseOfProject(
+ project.value.name
+ ),
children: [
{
- title: t("common.members"),
- hash: "members",
+ title: t("common.gitops"),
+ hash: "gitops",
},
{
- title: t("common.activities"),
- hash: "activities",
+ title: t("common.webhooks"),
+ hash: "webhook",
},
],
},
{
- title: t("settings.sidebar.integration"),
- icon: h(Link),
+ title: t("common.manage"),
+ icon: h(Users),
hide:
isDefaultProject.value ||
- !currentUserIamPolicy.allowToChangeDatabaseOfProject(
- project.value.name
- ),
+ !currentUserIamPolicy.isMemberOfProject(project.value.name),
children: [
{
- title: t("common.gitops"),
- hash: "gitops",
+ title: t("common.members"),
+ hash: "members",
},
{
- title: t("common.webhooks"),
- hash: "webhook",
+ title: t("common.activities"),
+ hash: "activities",
},
],
},
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index e5484badb3..e8022375e3 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -254,6 +254,7 @@
},
"expiration": "Expiration",
"configure": "Configure",
+ "groups": "Groups",
"database-groups": "Database Groups",
"members": "Members",
"warehouse": "Warehouse",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 25c40d5c32..c678d68c0a 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -254,6 +254,7 @@
},
"expiration": "Expiración",
"configure": "Configurar",
+ "groups": "Grupos",
"database-groups": "Grupo de bases de datos",
"members": "Miembros",
"warehouse": "Almacén",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index dca91eaf8c..0797916f65 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -252,6 +252,7 @@
},
"expiration": "过期时间",
"configure": "配置",
+ "groups": "分组",
"database-groups": "数据库分组",
"members": "成员",
"warehouse": "仓库",