Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Make bookmark a task as the first quick start step.
天舟6b1ce92e598b
diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vueindex d81c6433a1..b7e3f3431a 100644--- a/frontend/src/components/Breadcrumb.vue+++ b/frontend/src/components/Breadcrumb.vue@@ -177,6 +177,12 @@ export default {link: currentRoute.value.path,creatorId: currentUser.value.id,})+ .then(() => {+ store.dispatch("uistate/saveIntroStateByKey", {+ key: "bookmark.create",+ newState: true,+ });+ }).catch((error) => {console.log(error);});diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vueindex 982ebaf815..ed5520f31d 100644--- a/frontend/src/components/ProfileDropdown.vue+++ b/frontend/src/components/ProfileDropdown.vue@@ -91,6 +91,10 @@ export default {};const resetQuickstart = () => {+ store.dispatch("uistate/saveIntroStateByKey", {+ key: "bookmark.create",+ newState: false,+ });store.dispatch("uistate/saveIntroStateByKey", {key: "environment.create",newState: false,diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vueindex 6570ec4e40..9b83138c56 100644--- a/frontend/src/components/Quickstart.vue+++ b/frontend/src/components/Quickstart.vue@@ -88,6 +88,13 @@ export default {const store = useStore();const introList: IntroItem[] = reactive([+ {+ name: "Bookmark a task",+ link: "/task/hello-world-1",+ done: computed(() => {+ return store.getters["uistate/introStateByKey"]("bookmark.create");+ }),+ },{name: "Add an environment",link: "/environment",diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.tsindex bf44bb5009..de07b4deea 100644--- a/frontend/src/miragejs/seeds/index.ts+++ b/frontend/src/miragejs/seeds/index.ts@@ -71,7 +71,9 @@ const workspacesSeeder = (server: any) => {let task = server.create("task", {type: "bytebase.general",- name: "General Task",+ name: "Hello, World!",+ description:+ "Welcome to Bytebase, this is the task interface where developers and DBAs collaborate on database management tasks such as: \n\n - Requesting new database\n - Adding a column\n - Troubleshooting performance issue\n\nLet's bookmark this task by clicking the star icon on the top of this page.",creatorId: ws1Dev1.id,assigneeId: ws1Owner.id,subscriberIdList: [ws1DBA.id, ws1Dev2.id],@@ -265,45 +267,6 @@ const workspacesSeeder = (server: any) => {workspace: workspace2,});- // Bookmarks- // Workspace 1- // Task 1- const task1 = server.schema.tasks.find(1);- server.create("bookmark", {- workspace: workspace1,- name: task1.name,- link: `/task/${taskSlug(task1.name, task1.id)}`,- creatorId: ws1Owner.id,- });-- // Task 2- const task2 = server.schema.tasks.find(2);- server.create("bookmark", {- workspace: workspace1,- name: task2.name,- link: `/task/${taskSlug(task2.name, task2.id)}`,- creatorId: ws1Owner.id,- });-- // Instance 1- const instance1 = server.schema.instances.find(1);- instance1.environment = environmentList1[0];- server.create("bookmark", {- workspace: workspace1,- name: instance1.name,- link: `/instance/${instanceSlug(instance1)}`,- creatorId: ws1Owner.id,- });-- // Database 1- const db1 = server.schema.databases.find("2");- server.create("bookmark", {- workspace: workspace1,- name: db1.name,- link: `/instance/${instanceSlug(instance1)}/db/${databaseSlug(db1)}`,- creatorId: ws1Owner.id,- });-// Workspace 2// Task 3const task3 = server.schema.tasks.findBy({