Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Keep a single Profile page
Tianzhou Chen0a0c5b015093
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.tsindex 81224629b7..da484aec41 100644--- a/frontend/src/router/index.ts+++ b/frontend/src/router/index.ts@@ -130,6 +130,12 @@ const routes: Array<RouteRecordRaw> = [},},{+ // "u" stands for user. Strictly speaking, it's not accurate because we+ // may refer to other principal type in the future. But from the endusers'+ // perspective, they are more familiar with the "user" concept.+ // We make an exception to use a shorthand here because it's a commonly+ // accessed endpint, and maybe in the future, we will further provide a+ // shortlink like u/<<uid>>path: "u/:principalId",name: "workspace.profile",meta: {@@ -162,8 +168,8 @@ const routes: Array<RouteRecordRaw> = [path: "",name: "setting.profile",meta: { title: () => "Profile" },- component: () => import("../views/SettingAccountProfile.vue"),- alias: "account/profile",+ component: () => import("../views/ProfileDashboard.vue"),+ alias: "profile",props: true,},{diff --git a/frontend/src/views/Account.vue b/frontend/src/views/Account.vuedeleted file mode 100644index 52612b6e11..0000000000--- a/frontend/src/views/Account.vue+++ /dev/null@@ -1,11 +0,0 @@-<template>- <h1>Account</h1>-</template>--<script lang="ts">-export default {- name: "Account",- components: {},- setup(props, ctx) {},-};-</script>diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vueindex f7150afce0..52d0b15a3c 100644--- a/frontend/src/views/ProfileDashboard.vue+++ b/frontend/src/views/ProfileDashboard.vue@@ -89,13 +89,11 @@import { computed } from "vue";import { useStore } from "vuex";import { useRouter } from "vue-router";-import { PrincipalId } from "../types";export default {name: "ProfileDashboard",props: {principalId: {- required: true,type: String,},},@@ -107,7 +105,10 @@ export default {const currentUser = computed(() => store.getters["auth/currentUser"]());const principal = computed(() => {- return store.getters["principal/principalById"](props.principalId);+ if (props.principalId) {+ return store.getters["principal/principalById"](props.principalId);+ }+ return store.getters["principal/principalById"](currentUser.value.id);});const isCurrentUser = computed(() => {diff --git a/frontend/src/views/SettingAccountProfile.vue b/frontend/src/views/SettingAccountProfile.vuedeleted file mode 100644index 6acc27ee5d..0000000000--- a/frontend/src/views/SettingAccountProfile.vue+++ /dev/null@@ -1,11 +0,0 @@-<template>- <h1>Account Profile</h1>-</template>--<script lang="ts">-export default {- name: "SettingAccountProfile",- props: {},- setup(props, ctx) {},-};-</script>diff --git a/frontend/src/views/SettingSidebar.vue b/frontend/src/views/SettingSidebar.vueindex c759c9da84..1a6942c9aa 100644--- a/frontend/src/views/SettingSidebar.vue+++ b/frontend/src/views/SettingSidebar.vue@@ -45,7 +45,7 @@</div><div class="space-y-1"><router-link- to="/setting/account/profile"+ to="/setting/profile"class="outline-item group w-full flex items-center pl-11 pr-2 py-2">Profile