Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove debug banner (#9027)

Danny Xu4d308a5c5ea4
diff --git a/frontend/src/components/BannersWrapper.vue b/frontend/src/components/BannersWrapper.vue
index 83522b3977..9f37d1e43e 100644
--- a/frontend/src/components/BannersWrapper.vue
+++ b/frontend/src/components/BannersWrapper.vue
@@ -4,9 +4,6 @@
<template v-if="shouldShowDemoBanner">
<BannerDemo />
</template>
- <template v-if="shouldShowDebugBanner">
- <BannerDebug />
- </template>
<template v-if="shouldShowSubscriptionBanner">
<BannerSubscription />
</template>
@@ -28,15 +25,10 @@
<script lang="ts" setup>
import { storeToRefs } from "pinia";
import { computed } from "vue";
-import {
- useActuatorV1Store,
- useCurrentUserV1,
- useSubscriptionV1Store,
-} from "@/store/modules";
+import { useActuatorV1Store, useSubscriptionV1Store } from "@/store/modules";
import { PlanType } from "@/types/proto/v1/subscription_service";
-import { hasWorkspacePermissionV1, isDev } from "@/utils";
+import { isDev } from "@/utils";
import BannerAnnouncement from "@/views/BannerAnnouncement.vue";
-import BannerDebug from "@/views/BannerDebug.vue";
import BannerDemo from "@/views/BannerDemo.vue";
import BannerExternalUrl from "@/views/BannerExternalUrl.vue";
import BannerSubscription from "@/views/BannerSubscription.vue";
@@ -44,10 +36,9 @@ import BannerUpgradeSubscription from "@/views/BannerUpgradeSubscription.vue";
import HideInStandaloneMode from "./misc/HideInStandaloneMode.vue";
const actuatorStore = useActuatorV1Store();
-const currentUserV1 = useCurrentUserV1();
const subscriptionStore = useSubscriptionV1Store();
-const { isDemo, isReadonly, isDebug, needConfigureExternalUrl } =
+const { isDemo, isReadonly, needConfigureExternalUrl } =
storeToRefs(actuatorStore);
const { isExpired, isTrialing, currentPlan, existTrialLicense } =
storeToRefs(subscriptionStore);
@@ -56,19 +47,6 @@ const shouldShowDemoBanner = computed(() => {
return actuatorStore.serverInfo?.demoName != "";
});
-// For now, debug mode is a global setting and will affect all users.
-// So we only allow DBA and Owner to toggle it and thus show a banner
-// reminding them to turn off
-const shouldShowDebugBanner = computed(() => {
- return (
- isDebug.value &&
- hasWorkspacePermissionV1(
- "bb.permission.workspace.debug",
- currentUserV1.value.userRole
- )
- );
-});
-
const shouldShowSubscriptionBanner = computed(() => {
return (
isExpired.value ||
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index d429ba813c..bf18294f56 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -400,7 +400,6 @@
"deploy": "Self Host",
"cloud": "Cloud",
"request-demo": "Book a 30 min product walkthrough with our product expert",
- "debug": "Debug mode is active, you can disable Debug mode via the top-right profile dropdown.",
"readonly": "Bytebase is in readonly mode. You can still view the console, but any change attempt will fail.",
"external-url": "Bytebase has not configured --external-url",
"configure-now": "Configure now"
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 2208f51dbc..a6a5b938f0 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -400,7 +400,6 @@
"deploy": "Auto Hospedaje",
"cloud": "Cloud",
"request-demo": "Reserve una presentación de producto de 30 minutos con nuestro experto en productos",
- "debug": "El modo de depuración está activo, puede desactivar el modo de depuración a través del menú desplegable del perfil en la parte superior derecha.",
"readonly": "Bytebase está en modo de solo lectura. Todavía puede ver la consola, pero cualquier intento de cambio fallará.",
"external-url": "Bytebase no ha configurado --external-url",
"configure-now": "Configurar ahora"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 7cd28d0248..738b09e93c 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -398,7 +398,6 @@
"deploy": "本地部署",
"cloud": "云服务",
"request-demo": "和我们的产品专家预约 30 分钟产品演示",
- "debug": "Debug 模式已开启,您可以通过右上角头像下拉框关闭 Debug。",
"readonly": "Bytebase 处于只读模式。您仍然可以查看控制台,但任何尝试更改的请求都会失败。",
"external-url": "Bytebase 还没有配置 --external-url",
"configure-now": "现在配置"
diff --git a/frontend/src/views/BannerDebug.vue b/frontend/src/views/BannerDebug.vue
deleted file mode 100644
index dcb70698df..0000000000
--- a/frontend/src/views/BannerDebug.vue
+++ /dev/null
@@ -1,15 +0,0 @@
-<template>
- <div class="bg-warning">
- <div class="text-center py-1 px-3 font-medium text-white truncate">
- {{ $t("banner.debug") }}
- </div>
- </div>
-</template>
-
-<script lang="ts">
-import { defineComponent } from "vue";
-
-export default defineComponent({
- name: "BannerDebug",
-});
-</script>