Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Show project and database list on sidebar using lexical order
天舟cb2815a49771
diff --git a/frontend/src/components/DatabaseListSidePanel.vue b/frontend/src/components/DatabaseListSidePanel.vueindex 7fe53e4462..5cbbb6a7d7 100644--- a/frontend/src/components/DatabaseListSidePanel.vue+++ b/frontend/src/components/DatabaseListSidePanel.vue@@ -52,7 +52,9 @@ export default {for (const environment of environmentList.value) {envToDbMap.set(environment.id, []);}- for (const database of databaseList.value) {+ for (const database of databaseList.value.sort((a: any, b: any) => {+ return a.name.localeCompare(b.name);+ })) {const dbList = envToDbMap.get(database.instance.environment.id)!;// dbList may be undefined if the environment is archivedif (dbList) {@@ -68,16 +70,14 @@ export default {.filter((environment: Environment) => {return envToDbMap.get(environment.id)!.length > 0;})- .map(- (environment: Environment): BBOutlineItem => {- return {- id: "env." + environment.id,- name: environmentName(environment),- childList: envToDbMap.get(environment.id),- childCollapse: true,- };- }- );+ .map((environment: Environment): BBOutlineItem => {+ return {+ id: "env." + environment.id,+ name: environmentName(environment),+ childList: envToDbMap.get(environment.id),+ childCollapse: true,+ };+ });});return {diff --git a/frontend/src/components/ProjectListSidePanel.vue b/frontend/src/components/ProjectListSidePanel.vueindex e56f2d79fa..ae96f0915d 100644--- a/frontend/src/components/ProjectListSidePanel.vue+++ b/frontend/src/components/ProjectListSidePanel.vue@@ -40,15 +40,17 @@ export default {currentUser.value.id,"NORMAL");- return projectList.map(- (item: Project): BBOutlineItem => {+ return projectList+ .map((item: Project): BBOutlineItem => {return {id: item.id,name: projectName(item),link: `/project/${projectSlug(item)}`,};- }- );+ })+ .sort((a: any, b: any) => {+ return a.name.localeCompare(b.name);+ });});return {