Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
set done flag on various intro item
Tianzhou Chenc1181ce6c00a
diff --git a/frontend/src/components/IntroList.vue b/frontend/src/components/IntroList.vueindex d615abb10c..e310f35de1 100644--- a/frontend/src/components/IntroList.vue+++ b/frontend/src/components/IntroList.vue@@ -70,14 +70,13 @@</template><script lang="ts">+import { computed, reactive, ComputedRef } from "vue";import { useStore } from "vuex";-import { PropType } from "vue";-import { RoleType } from "../types";type IntroItem = {name: string;link: string;- done: boolean;+ done: ComputedRef<boolean>;};export default {@@ -88,33 +87,43 @@ export default {setup() {const store = useStore();- const introList: IntroItem[] = [+ const introList: IntroItem[] = reactive([{name: "Add an environment",link: "/environment",- done: false,+ done: computed(() => {+ return store.getters["uistate/introStateByKey"]("environment.create");+ }),},{name: "Create an instance",link: "/instance",- done: false,+ done: computed(() => {+ return store.getters["uistate/introStateByKey"]("instance.create");+ }),},{name: "Request a database",link: "/task/new?template=bytebase.datasource.create",- done: false,+ done: computed(() =>+ store.getters["uistate/introStateByKey"]("datasource.create")+ ),},{name: "Create a table",link: "/task/new?template=bytebase.datasource.schema.update",- done: false,+ done: computed(() =>+ store.getters["uistate/introStateByKey"]("table.create")+ ),},{name: "Invite a member",link: "/setting/member",- done: false,+ done: computed(() =>+ store.getters["uistate/introStateByKey"]("member.invite")+ ),},- ];+ ]);const hideQuickstart = () => {storediff --git a/frontend/src/components/MemberInvite.vue b/frontend/src/components/MemberInvite.vueindex 4a019b9cfc..5d46b3dfb4 100644--- a/frontend/src/components/MemberInvite.vue+++ b/frontend/src/components/MemberInvite.vue@@ -221,6 +221,11 @@ export default {console.error(error);});}++ store.dispatch("uistate/saveIntroStateByKey", {+ key: "member.invite",+ newState: true,+ });}}state.inviteList = [diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex 752aa8b229..98167a608b 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -147,6 +147,11 @@ export default {.then((createdEnvironment) => {state.showCreateModal = false;selectEnvironment(environmentList.value.length - 1);++ store.dispatch("uistate/saveIntroStateByKey", {+ key: "environment.create",+ newState: true,+ });}).catch((error) => {console.log(error);diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vueindex a4badd3f61..714d86ee03 100644--- a/frontend/src/views/InstanceDetail.vue+++ b/frontend/src/views/InstanceDetail.vue@@ -470,6 +470,11 @@ export default {router.push({name: "workspace.instance",});++ store.dispatch("uistate/saveIntroStateByKey", {+ key: "instance.create",+ newState: true,+ });}).catch((error) => {console.log(error);diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vueindex 2ae6d5b295..aaa1645dd5 100644--- a/frontend/src/views/TaskDetail.vue+++ b/frontend/src/views/TaskDetail.vue@@ -385,6 +385,13 @@ export default {.dispatch("task/createTask", state.task).then((createdTask) => {router.push(`/task/${taskSlug(createdTask.name, createdTask.id)}`);++ if (taskTemplate.value?.type == "bytebase.datasource.create") {+ store.dispatch("uistate/saveIntroStateByKey", {+ key: "datasource.create",+ newState: true,+ });+ }}).catch((error) => {console.log(error);