Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: remove quickly action buttons in dashboard header (#2744)
boojacke32bf25f11f2
diff --git a/frontend/.env.dev b/frontend/.env.devindex 8d03d2b823..c0d6652113 100644--- a/frontend/.env.dev+++ b/frontend/.env.dev@@ -1,2 +1 @@NODE_ENV=development-BB_DEV_LICENSE=eyJhbGciOiJSUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJpbnN0YW5jZUNvdW50Ijo5OTk5LCJ0cmlhbGluZyI6ZmFsc2UsInBsYW4iOiJURUFNIiwiYXVkIjoiYmIubGljZW5zZSIsImV4cCI6MzMxNjkzOTIwMDAsImlhdCI6MTY0MzQ2Mzg4MiwiaXNzIjoiYnl0ZWJhc2UiLCJzdWIiOiI2NzUxODU0NS45MTI4NjI4NSJ9.plmS-PNPsI-Esis1ZCLWYgbx7K3C1AlQKG7pY1w_stuxOZgpSK3wm-GC4ILg8e6HebqAhz_39X2f9DvvOFySbnPffJ9v3Q3bTwxgk9vR1ttorS9VTWlZNv2tRmKeQD1rZCIS3gRV8pLX4WEClkn41Bv4DFnmQfcEXeBnw_DivE_yMFgrAmxFeyJVZfP0NslXBBRcwiZ_nObntF_65k6Hr4uPXFR5L99XCCqg5Fu-R0lj7tCbheHBQyXbDujBYqrltbVsrN5ov8Mc7gqbgV9KTCEfAzLsgygO2epkuQkMYdXxRz_oWDLED0WwCZ7-EMz3EqLngZjr6e_hHcapt6SSNQdiff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex 74fa5207aa..913f4b19e3 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -86,6 +86,7 @@{{ $t("database.change-data") }}</h3></div>+<divv-if="isDev && quickAction === 'quickaction.bb.database.schema.sync'"class="flex flex-col items-center w-28 py-1"diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vueindex 5f50388a11..4219f8eb02 100644--- a/frontend/src/views/DashboardHeader.vue+++ b/frontend/src/views/DashboardHeader.vue@@ -61,57 +61,6 @@</div><div><div class="flex items-center space-x-3">- <div- v-if="isDevFeatures"- class="hidden md:flex sm:flex-row items-center space-x-2 text-sm font-medium"- >- <span class="hidden lg:block font-normal text-accent">- {{ $t("subscription.plan.title") }}- </span>- <div- class="bar-link"- :class="currentPlan == 0 ? 'underline' : ''"- @click.prevent="switchToFree"- >- {{ $t("subscription.plan.free.title") }}- </div>- <div- class="bar-link"- :class="currentPlan == 1 ? 'underline' : ''"- @click.prevent="switchToTeam"- >- {{ $t("subscription.plan.team.title") }}- </div>- </div>- <div- v-if="!isRelease"- class="hidden md:flex sm:flex-row items-center space-x-2 text-sm font-medium"- >- <span class="hidden lg:block font-normal text-accent">- {{ $t("settings.profile.role") }}- </span>- <div- class="bar-link"- :class="currentUser.role == 'OWNER' ? 'underline' : ''"- @click.prevent="switchToOwner"- >- {{ $t("common.role.owner") }}- </div>- <div- class="bar-link"- :class="currentUser.role == 'DBA' ? 'underline' : ''"- @click.prevent="switchToDBA"- >- {{ $t("common.role.dba") }}- </div>- <div- class="bar-link"- :class="currentUser.role == 'DEVELOPER' ? 'underline' : ''"- @click.prevent="switchToDeveloper"- >- {{ $t("common.role.developer") }}- </div>- </div><router-link to="/inbox" exact-active-class><spanv-if="inboxSummary.hasUnread"@@ -119,22 +68,6 @@></span><heroicons-outline:bell class="w-6 h-6" /></router-link>- <div v-if="isDevFeatures" class="cursor-pointer" @click="toggleLocales">- <heroicons-outline:translate class="w-6 h-6" />- </div>- <div v-if="isDevFeatures" class="cursor-pointer" @click="toggleDebug">- <svg- class="w-6 h-6"- :class="isDebug ? `text-accent` : `text-gray-400`"- fill="currentColor"- viewBox="0 0 32 32"- >- <path- d="M29,15h-5.1c-0.1-1.2-0.5-2.4-1-3.5c1.9-1.5,3.1-3.7,3.1-6.1V5c0-0.6-0.4-1-1-1s-1,0.4-1,1v0.4c0,1.8-0.8,3.4-2.2,4.5 c-0.5-0.7-1.2-1.2-1.9-1.7c0-0.1,0-0.1,0-0.2c0-2.2-1.8-4-4-4s-4,1.8-4,4c0,0.1,0,0.1,0,0.2c-0.7,0.5-1.3,1-1.9,1.7 C8.8,8.8,8,7.2,8,5.4V5c0-0.6-0.4-1-1-1S6,4.4,6,5v0.4c0,2.4,1.1,4.7,3.1,6.1c-0.5,1-0.9,2.2-1,3.5H3c-0.6,0-1,0.4-1,1s0.4,1,1,1 h5.1c0.1,1.2,0.5,2.4,1,3.5C7.1,21.9,6,24.2,6,26.6V27c0,0.6,0.4,1,1,1s1-0.4,1-1v-0.4c0-1.8,0.8-3.4,2.2-4.5 c1.5,1.8,3.5,2.9,5.8,2.9s4.4-1.1,5.8-2.9c1.4,1.1,2.2,2.7,2.2,4.5V27c0,0.6,0.4,1,1,1s1-0.4,1-1v-0.4c0-2.4-1.1-4.7-3.1-6.1 c0.5-1,0.9-2.2,1-3.5H29c0.6,0,1-0.4,1-1S29.6,15,29,15z"- stroke-width="1"- />- </svg>- </div><div class="ml-2"><divclass="flex justify-center items-center bg-gray-100 rounded-3xl"@@ -220,8 +153,6 @@ import { isDBAOrOwner, isDev } from "../utils";import { useLanguage } from "../composables/useLanguage";import {useCurrentUser,- useAuthStore,- useDebugStore,useSettingStore,useSubscriptionStore,useInboxStore,@@ -237,14 +168,12 @@ export default defineComponent({components: { ProfileDropdown },setup() {const { t, availableLocales } = useI18n();- const authStore = useAuthStore();- const debugStore = useDebugStore();const inboxStore = useInboxStore();const settingStore = useSettingStore();const subscriptionStore = useSubscriptionStore();const router = useRouter();const route = useRoute();- const { setLocale, toggleLocales } = useLanguage();+ const { setLocale } = useLanguage();const state = reactive<LocalState>({showMobileMenu: false,@@ -298,54 +227,6 @@ export default defineComponent({return inboxStore.getInboxSummaryByUser(currentUser.value.id);});- const switchToOwner = () => {- authStore.login({- authProvider: "BYTEBASE",- payload: {- email: "[email protected]",- password: "1024",- },- });- };-- const switchToDBA = () => {- authStore.login({- authProvider: "BYTEBASE",- payload: {- email: "[email protected]",- password: "2048",- },- });- };-- const switchToDeveloper = () => {- authStore.login({- authProvider: "BYTEBASE",- payload: {- email: "[email protected]",- password: "4096",- },- });- };-- const switchToFree = () => {- subscriptionStore.patchSubscription("");- };-- const switchToTeam = () => {- subscriptionStore.patchSubscription(- import.meta.env.BB_DEV_LICENSE as string- );- };-- const { isDebug } = storeToRefs(debugStore);-- const toggleDebug = () => {- debugStore.patchDebug({- isDebug: !isDebug.value,- });- };-const kbarActions = computed(() => [defineAction({id: "bb.navigation.projects",@@ -431,15 +312,7 @@ export default defineComponent({currentPlan,showDBAItem,isDevFeatures,- isDebug,inboxSummary,- switchToOwner,- switchToDBA,- switchToDeveloper,- switchToFree,- switchToTeam,- toggleLocales,- toggleDebug,};},});