Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor(frontend): remove overrideMainContainerClass mechanism (#19361)
boojack6f2dbb7c2229
diff --git a/frontend/src/components/AuditLog/AuditLogDataTable.vue b/frontend/src/components/AuditLog/AuditLogDataTable.vueindex 5287fc106d..73c7b8074b 100644--- a/frontend/src/components/AuditLog/AuditLogDataTable.vue+++ b/frontend/src/components/AuditLog/AuditLogDataTable.vue@@ -3,6 +3,7 @@size="small":columns="columnList":data="auditLogList"+ :bordered="false":striped="true":loading="loading":row-key="(data: AuditLog) => data.name"diff --git a/frontend/src/components/AuditLog/PagedAuditLogDataTable.vue b/frontend/src/components/AuditLog/PagedAuditLogDataTable.vueindex 5a3eaa0986..4147eacd5c 100644--- a/frontend/src/components/AuditLog/PagedAuditLogDataTable.vue+++ b/frontend/src/components/AuditLog/PagedAuditLogDataTable.vue@@ -2,6 +2,7 @@<PagedTableref="auditPagedTable":session-key="`bb.page-audit-log-table.settings-audit-log-v1-table.${parent}`"+ :footer-class="'mx-4'":fetch-list="fetchAuditLog":order-keys="['create_time']">diff --git a/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue b/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vueindex d9c86429d0..4bd2fc3259 100644--- a/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue+++ b/frontend/src/components/DatabaseGroup/DatabaseGroupDataTable.vue@@ -47,7 +47,7 @@ const props = withDefaults(selectedDatabaseGroupNames?: string[];}>(),{- bordered: true,+ bordered: false,pageSize: 20,selectedDatabaseGroupNames: () => [],}diff --git a/frontend/src/components/Plan/components/PlanDataTable/PlanDataTable.vue b/frontend/src/components/Plan/components/PlanDataTable/PlanDataTable.vueindex 9642e9f2e0..75c2839bbe 100644--- a/frontend/src/components/Plan/components/PlanDataTable/PlanDataTable.vue+++ b/frontend/src/components/Plan/components/PlanDataTable/PlanDataTable.vue@@ -6,7 +6,7 @@:columns="columnList":data="planList":striped="true"- :bordered="true"+ :bordered="false":loading="loading":scroll-x="scrollX":row-key="(plan: Plan) => plan.name"diff --git a/frontend/src/components/Project/ProjectIssuesPanel.vue b/frontend/src/components/Project/ProjectIssuesPanel.vueindex 38b1f3fa08..0c0e1f15d8 100644--- a/frontend/src/components/Project/ProjectIssuesPanel.vue+++ b/frontend/src/components/Project/ProjectIssuesPanel.vue@@ -1,34 +1,34 @@<template>- <div class="flex flex-col gap-y-2">- <NAlert- v-if="!hideHint"- type="info"- closable- @close="dismissHint"- >- {{ $t("issue.subtitle") }}- </NAlert>- <IssueSearch- v-model:params="state.params"- :components="['searchbox', 'time-range', 'presets', 'status']"- />-- <div class="relative min-h-80">- <PagedTable- ref="issuePagedTable"- session-key="bb.issue-table.project-issues"- :fetch-list="fetchIssueList"+ <div class="flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <NAlert+ v-if="!hideHint"+ type="info"+ closable+ @close="dismissHint">- <template #table="{ list, loading }">- <IssueTableV1- :bordered="true"- :loading="loading"- :issue-list="list"- :highlight-text="state.params.query"- />- </template>- </PagedTable>+ {{ $t("issue.subtitle") }}+ </NAlert>+ <IssueSearch+ v-model:params="state.params"+ :components="['searchbox', 'time-range', 'presets', 'status']"+ /></div>+ <PagedTable+ ref="issuePagedTable"+ session-key="bb.issue-table.project-issues"+ :footer-class="'mx-4'"+ :fetch-list="fetchIssueList"+ >+ <template #table="{ list, loading }">+ <IssueTableV1+ class="border-x-0"+ :loading="loading"+ :issue-list="list"+ :highlight-text="state.params.query"+ />+ </template>+ </PagedTable></div></template>diff --git a/frontend/src/components/Project/ProjectReleasesPanel.vue b/frontend/src/components/Project/ProjectReleasesPanel.vueindex 0e1f4e8fa8..8efb2fe4f1 100644--- a/frontend/src/components/Project/ProjectReleasesPanel.vue+++ b/frontend/src/components/Project/ProjectReleasesPanel.vue@@ -1,40 +1,41 @@<template>- <div class="w-full flex flex-col gap-y-4">- <NAlert type="info">- <span>{{ $t("release.usage-description") }}</span>- <LearnMoreLink- url="https://docs.bytebase.com/gitops/migration-based-workflow/release/?source=console"- class="ml-1"- />- </NAlert>-- <!-- Category Filter -->- <div class="flex items-center gap-x-4">- <NSelect- v-model:value="selectedCategory"- :options="categoryOptions"- :placeholder="$t('release.filter-by-category')"- :loading="categoriesLoading"- clearable- class="w-64"- />- <NButton- v-if="selectedCategory"- @click="clearFilters"- quaternary- >- {{ $t('common.clear-filters') }}- </NButton>+ <div class="w-full flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <NAlert type="info">+ <span>{{ $t("release.usage-description") }}</span>+ <LearnMoreLink+ url="https://docs.bytebase.com/gitops/migration-based-workflow/release/?source=console"+ class="ml-1"+ />+ </NAlert>+ <!-- Category Filter -->+ <div class="flex items-center gap-x-4">+ <NSelect+ v-model:value="selectedCategory"+ :options="categoryOptions"+ :placeholder="$t('release.filter-by-category')"+ :loading="categoriesLoading"+ clearable+ class="w-64"+ />+ <NButton+ v-if="selectedCategory"+ @click="clearFilters"+ quaternary+ >+ {{ $t('common.clear-filters') }}+ </NButton>+ </div></div>-<PagedTable:key="`${project.name}-${selectedCategory || 'all'}`":session-key="`project-${project.name}-releases`"+ :footer-class="'mx-4'":fetch-list="fetchReleaseList"><template #table="{ list, loading }"><ReleaseDataTable- :bordered="true"+ :bordered="false":loading="loading":release-list="list"/>diff --git a/frontend/src/components/ProjectDatabasesPanel.vue b/frontend/src/components/ProjectDatabasesPanel.vueindex ee619d73ae..456b35d65e 100644--- a/frontend/src/components/ProjectDatabasesPanel.vue+++ b/frontend/src/components/ProjectDatabasesPanel.vue@@ -1,34 +1,36 @@<template>- <div class="flex flex-col gap-y-2">- <div- class="w-full flex flex-col sm:flex-row items-start sm:items-end justify-between gap-2"- >- <AdvancedSearch- v-model:params="state.params"- class="flex-1"- :autofocus="false"- :placeholder="$t('database.filter-database')"- :scope-options="scopeOptions"- />- <PermissionGuardWrapper- v-slot="slotProps"- :project="project"- :permissions="[- 'bb.instances.list',- ...PERMISSIONS_FOR_DATABASE_CREATE_ISSUE,- ]"+ <div class="py-4 flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <div+ class="w-full flex flex-col sm:flex-row items-start sm:items-end justify-between gap-2">- <NButton- type="primary"- :disabled="slotProps.disabled"- @click="state.showCreateDrawer = true"+ <AdvancedSearch+ v-model:params="state.params"+ class="flex-1"+ :autofocus="false"+ :placeholder="$t('database.filter-database')"+ :scope-options="scopeOptions"+ />+ <PermissionGuardWrapper+ v-slot="slotProps"+ :project="project"+ :permissions="[+ 'bb.instances.list',+ ...PERMISSIONS_FOR_DATABASE_CREATE_ISSUE,+ ]">- <template #icon>- <PlusIcon class="h-4 w-4" />- </template>- {{ $t("quick-action.new-db") }}- </NButton>- </PermissionGuardWrapper>+ <NButton+ type="primary"+ :disabled="slotProps.disabled"+ @click="state.showCreateDrawer = true"+ >+ <template #icon>+ <PlusIcon class="h-4 w-4" />+ </template>+ {{ $t("quick-action.new-db") }}+ </NButton>+ </PermissionGuardWrapper>+ </div></div><DatabaseOperations:project-name="project.name"@@ -39,8 +41,10 @@<PagedDatabaseTableref="pagedDatabaseTableRef"mode="PROJECT"+ :bordered="false":show-selection="true":filter="filter"+ :footer-class="'mx-4'":parent="project.name"v-model:selected-database-names="state.selectedDatabaseNames"/>diff --git a/frontend/src/components/ProjectMember/ProjectMemberPanel.vue b/frontend/src/components/ProjectMember/ProjectMemberPanel.vueindex 718ba8c499..d7b60a0e74 100644--- a/frontend/src/components/ProjectMember/ProjectMemberPanel.vue+++ b/frontend/src/components/ProjectMember/ProjectMemberPanel.vue@@ -1,15 +1,15 @@<template><div class="w-full mx-auto flex flex-col gap-y-4">- <div class="textinfolabel">+ <div class="textinfolabel px-4 pt-4">{{ $t("project.members.description") }}<LearnMoreLinkurl="https://docs.bytebase.com/administration/roles/?source=console#project-roles"/></div>- <NTabs v-model:value="state.selectedTab" type="bar" animated>+ <NTabs v-model:value="state.selectedTab" type="bar" :tabs-padding="16" animated><template #suffix>- <div class="flex justify-end gap-x-2">+ <div class="flex justify-end gap-x-2 pr-4"><SearchBoxv-model:value="state.searchText":placeholder="$t('settings.members.search-member')"diff --git a/frontend/src/components/ProjectSettingPanel.vue b/frontend/src/components/ProjectSettingPanel.vueindex ae0a7f7697..efa4ad6866 100644--- a/frontend/src/components/ProjectSettingPanel.vue+++ b/frontend/src/components/ProjectSettingPanel.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-0 pt-4">+ <div class="w-full flex flex-col gap-y-0 pt-4 px-4"><div class="divide-y divide-block-border"><!-- General Settings Section --><div class="pb-6 lg:flex">diff --git a/frontend/src/components/ProjectWebhookForm.vue b/frontend/src/components/ProjectWebhookForm.vueindex b0a42c1151..be66ff45e4 100644--- a/frontend/src/components/ProjectWebhookForm.vue+++ b/frontend/src/components/ProjectWebhookForm.vue@@ -262,7 +262,6 @@ import { BBAttention } from "@/bbkit";import RequiredStar from "@/components/RequiredStar.vue";import { MissingExternalURLAttention } from "@/components/v2/Form";import FormLayout from "@/components/v2/Form/FormLayout.vue";-import { useBodyLayoutContext } from "@/layouts/common";import {PROJECT_V1_ROUTE_WEBHOOK_DETAIL,PROJECT_V1_ROUTE_WEBHOOKS,@@ -311,10 +310,6 @@ const dialog = useDialog();const settingStore = useSettingV1Store();const projectStore = useProjectV1Store();const projectWebhookV1Store = useProjectWebhookV1Store();-const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("!pb-0");-onMounted(async () => {await settingStore.getOrFetchSettingByName(Setting_SettingName.APP_IM);});diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vueindex 5cdf62525e..193d2cddf3 100644--- a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue@@ -4,7 +4,7 @@:columns="accessTableColumns":data="filteredList":row-key="(row: AccessUser) => row.key"- :bordered="true"+ :bordered="false":striped="true":loading="!ready || state.loading":max-height="'calc(100vh - 15rem)'"diff --git a/frontend/src/components/SyncDatabaseSchemaV1/index.vue b/frontend/src/components/SyncDatabaseSchemaV1/index.vueindex 3795748ec7..f55ea577d7 100644--- a/frontend/src/components/SyncDatabaseSchemaV1/index.vue+++ b/frontend/src/components/SyncDatabaseSchemaV1/index.vue@@ -1,5 +1,5 @@<template>- <div class="w-full h-full overflow-hidden flex flex-col">+ <div class="w-full h-full overflow-hidden flex flex-col px-4"><p class="text-sm text-gray-500">{{ $t("database.sync-schema.description") }}<LearnMoreLinkdiff --git a/frontend/src/components/User/Settings/ServiceAccountPanel.vue b/frontend/src/components/User/Settings/ServiceAccountPanel.vueindex 2486d6215a..f0e2e49271 100644--- a/frontend/src/components/User/Settings/ServiceAccountPanel.vue+++ b/frontend/src/components/User/Settings/ServiceAccountPanel.vue@@ -1,6 +1,6 @@<template>- <div class="w-full overflow-x-hidden flex flex-col gap-y-4 pb-4">- <div class="flex justify-between items-center">+ <div class="w-full overflow-x-hidden flex flex-col py-4">+ <div class="flex justify-between items-center px-4 pb-2"><div class="flex items-center gap-x-2"><p class="text-lg font-medium leading-7 text-main"><span>{{ $t("settings.members.service-accounts") }}</span>@@ -33,6 +33,7 @@ref="serviceAccountPagedTable":session-key="sessionKey":fetch-list="fetchServiceAccountList"+ :footer-class="'mx-4'"><template #table="{ list, loading }"><UserDataTable@@ -46,37 +47,38 @@</template></PagedTable>- <div>+ <div class="px-4"><NCheckbox v-model:checked="state.showInactiveList"><span class="textinfolabel">{{ $t("settings.members.show-inactive") }}</span></NCheckbox>-- <template v-if="state.showInactiveList">- <div class="flex justify-between items-center mt-2 mb-4">- <p class="text-lg font-medium leading-7">- <span>{{ $t("settings.members.inactive-service-accounts") }}</span>- </p>- </div>-- <PagedTable- ref="deletedServiceAccountPagedTable"- :session-key="deletedSessionKey"- :fetch-list="fetchInactiveServiceAccountList"- >- <template #table="{ list, loading }">- <UserDataTable- :loading="loading"- :show-roles="false"- :show-groups="false"- :user-list="list"- @user-updated="handleServiceAccountRestore"- />- </template>- </PagedTable>- </template></div>++ <template v-if="state.showInactiveList">+ <div class="flex justify-between items-center mt-2 px-4 pb-2">+ <p class="text-lg font-medium leading-7">+ <span>{{ $t("settings.members.inactive-service-accounts") }}</span>+ </p>+ </div>++ <PagedTable+ ref="deletedServiceAccountPagedTable"+ :session-key="deletedSessionKey"+ :fetch-list="fetchInactiveServiceAccountList"+ :footer-class="'mx-4'"+ >+ <template #table="{ list, loading }">+ <UserDataTable+ :loading="loading"+ :show-roles="false"+ :show-groups="false"+ :user-list="list"+ @user-updated="handleServiceAccountRestore"+ />+ </template>+ </PagedTable>+ </template></div><CreateServiceAccountDrawerdiff --git a/frontend/src/components/User/Settings/WorkloadIdentityPanel.vue b/frontend/src/components/User/Settings/WorkloadIdentityPanel.vueindex 98e6a00272..c55d925606 100644--- a/frontend/src/components/User/Settings/WorkloadIdentityPanel.vue+++ b/frontend/src/components/User/Settings/WorkloadIdentityPanel.vue@@ -1,6 +1,6 @@<template>- <div class="w-full overflow-x-hidden flex flex-col gap-y-4 pb-4">- <div class="flex justify-between items-center">+ <div class="w-full overflow-x-hidden flex flex-col py-4">+ <div class="flex justify-between items-center px-4 pb-2"><div class="flex items-center gap-x-2"><p class="text-lg font-medium leading-7 text-main"><span>{{ $t("settings.members.workload-identities") }}</span>@@ -33,6 +33,7 @@ref="workloadIdentityPagedTable":session-key="sessionKey":fetch-list="fetchWorkloadIdentityList"+ :footer-class="'mx-4'"><template #table="{ list, loading }"><UserDataTable@@ -46,39 +47,40 @@</template></PagedTable>- <div>+ <div class="px-4"><NCheckbox v-model:checked="state.showInactiveList"><span class="textinfolabel">{{ $t("settings.members.show-inactive") }}</span></NCheckbox>-- <template v-if="state.showInactiveList">- <div class="flex justify-between items-center mt-2 mb-4">- <p class="text-lg font-medium leading-7">- <span>{{- $t("settings.members.inactive-workload-identities")- }}</span>- </p>- </div>-- <PagedTable- ref="deletedWorkloadIdentityPagedTable"- :session-key="deletedSessionKey"- :fetch-list="fetchInactiveWorkloadIdentityList"- >- <template #table="{ list, loading }">- <UserDataTable- :loading="loading"- :show-roles="false"- :show-groups="false"- :user-list="list"- @user-updated="handleWorkloadIdentityRestore"- />- </template>- </PagedTable>- </template></div>++ <template v-if="state.showInactiveList">+ <div class="flex justify-between items-center mt-2 px-4 pb-2">+ <p class="text-lg font-medium leading-7">+ <span>{{+ $t("settings.members.inactive-workload-identities")+ }}</span>+ </p>+ </div>++ <PagedTable+ ref="deletedWorkloadIdentityPagedTable"+ :session-key="deletedSessionKey"+ :fetch-list="fetchInactiveWorkloadIdentityList"+ :footer-class="'mx-4'"+ >+ <template #table="{ list, loading }">+ <UserDataTable+ :loading="loading"+ :show-roles="false"+ :show-groups="false"+ :user-list="list"+ @user-updated="handleWorkloadIdentityRestore"+ />+ </template>+ </PagedTable>+ </template></div><CreateWorkloadIdentityDrawerdiff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vueindex 2d161f50eb..c535a47b8c 100644--- a/frontend/src/layouts/BodyLayout.vue+++ b/frontend/src/layouts/BodyLayout.vue@@ -52,11 +52,9 @@<divid="bb-layout-main"ref="mainContainerRef"- class="md:min-w-0 flex-1 overflow-y-auto py-4"- :class="mainContainerClasses"+ class="md:min-w-0 flex-1 overflow-y-auto"><RoutePermissionGuard- class="mx-4":routes="[...workspaceRoutes,...workspaceSettingRoutes,@@ -189,7 +187,7 @@ onUnmounted(() => {}});-const { mainContainerClasses } = provideBodyLayoutContext({+provideBodyLayoutContext({mainContainerRef,});</script>diff --git a/frontend/src/layouts/IssuesLayout.vue b/frontend/src/layouts/IssuesLayout.vueindex 78a18d1c8d..8e0a5eb01f 100644--- a/frontend/src/layouts/IssuesLayout.vue+++ b/frontend/src/layouts/IssuesLayout.vue@@ -18,8 +18,7 @@<divid="bb-layout-main"ref="mainContainerRef"- class="md:min-w-0 flex-1 overflow-y-auto py-4"- :class="mainContainerClasses"+ class="md:min-w-0 flex-1 overflow-y-auto"><!-- Start main area--><router-view name="content" />@@ -40,7 +39,7 @@ import { provideBodyLayoutContext } from "./common";const mainContainerRef = ref<HTMLDivElement>();-const { mainContainerClasses } = provideBodyLayoutContext({+provideBodyLayoutContext({mainContainerRef,});</script>diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex 7439b1fa68..827f0323b4 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -56,7 +56,6 @@ import { projectNamePrefix } from "@/store/modules/v1/common";import { DEFAULT_PROJECT_NAME, UNKNOWN_PROJECT_NAME } from "@/types";import { State } from "@/types/proto-es/v1/common_pb";import { hasProjectPermissionV2 } from "@/utils";-import { useBodyLayoutContext } from "./common";const props = defineProps<{projectId: string;@@ -117,8 +116,4 @@ const allowEdit = computed(() => {return hasProjectPermissionV2(project.value, "bb.projects.update");});--const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("px-4");</script>diff --git a/frontend/src/layouts/SettingLayout.vue b/frontend/src/layouts/SettingLayout.vueindex 42b92a9ad6..fb8d55550d 100644--- a/frontend/src/layouts/SettingLayout.vue+++ b/frontend/src/layouts/SettingLayout.vue@@ -1,5 +1,5 @@<template>- <div class="px-4 min-h-full">+ <div class="min-h-full"><router-view :allow-edit="allowEdit" v-bind="$attrs" /></div></template>diff --git a/frontend/src/layouts/common.ts b/frontend/src/layouts/common.tsindex df2273ce08..933b5ad89e 100644--- a/frontend/src/layouts/common.ts+++ b/frontend/src/layouts/common.ts@@ -1,5 +1,4 @@import { type InjectionKey, inject, provide, type Ref } from "vue";-import { useClassStack } from "@/utils";export type BodyLayoutContext = ReturnType<typeof provideBodyLayoutContext>;@@ -10,15 +9,8 @@ const BODY_LAYOUT_CONTEXT_KEY = Symbol(export const provideBodyLayoutContext = (params: {mainContainerRef: Ref<HTMLDivElement | undefined>;}) => {- const {- classes: mainContainerClasses,- override: overrideMainContainerClass,- } = useClassStack();-const context = {...params,- overrideMainContainerClass,- mainContainerClasses,};provide(BODY_LAYOUT_CONTEXT_KEY, context);diff --git a/frontend/src/utils/css.ts b/frontend/src/utils/css.tsindex 634ccba44c..4a1b358c68 100644--- a/frontend/src/utils/css.ts+++ b/frontend/src/utils/css.ts@@ -1,8 +1,3 @@-import { pullAt } from "lodash-es";-import { computed, type Raw, ref, unref, watchEffect } from "vue";-import type { MaybeRef } from "@/types";-import type { VueClass } from "./types";-// Tailwind CSS default breakpoints// https://tailwindcss.com/docs/responsive-designexport const TailwindBreakpoints = {@@ -61,36 +56,3 @@ export const callCssVariable = (return value;};--export const useClassStack = () => {- type StackItem = {- id: number;- classes: VueClass;- };- const context = {- serial: 0,- };- const stack = ref<Raw<StackItem>[]>([]);- const override = (classes: MaybeRef<VueClass>) => {- watchEffect((cleanup) => {- const id = context.serial++;- stack.value.push({- id,- classes: unref(classes),- });-- cleanup(() => {- const index = stack.value.findIndex((item) => item.id === id);- if (index >= 0) {- pullAt(stack.value, index);- }- });- });- };-- const classes = computed(() => {- return stack.value.map((item) => item.classes);- });-- return { override, classes };-};diff --git a/frontend/src/views/DashboardLanding.vue b/frontend/src/views/DashboardLanding.vueindex ebe46a0a6b..37ee880186 100644--- a/frontend/src/views/DashboardLanding.vue+++ b/frontend/src/views/DashboardLanding.vue@@ -1,5 +1,5 @@<template>- <div class="px-4 flex flex-col h-full items-center relative">+ <div class="py-4 px-4 flex flex-col h-full items-center relative"><div class="flex-1" /><div class="flex-[60%] flex flex-col gap-y-6"><div class="flex items-baseline gap-x-4">diff --git a/frontend/src/views/DatabaseDashboard.vue b/frontend/src/views/DatabaseDashboard.vueindex 8589cfa56c..f3a2369eb6 100644--- a/frontend/src/views/DatabaseDashboard.vue+++ b/frontend/src/views/DatabaseDashboard.vue@@ -1,7 +1,7 @@<template>- <div class="flex flex-col relative gap-y-4">+ <div class="py-4 flex flex-col relative"><div- class="w-full px-4 flex flex-col sm:flex-row items-start sm:items-end justify-between gap-2"+ class="w-full px-4 pb-2 flex flex-col sm:flex-row items-start sm:items-end justify-between gap-2"><AdvancedSearchv-model:params="state.params"diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex 8000d24cc0..16453d71e7 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -1,5 +1,5 @@<template>- <div class="w-full h-full flex flex-col gap-4">+ <div class="py-4 w-full h-full flex flex-col gap-4"><NTabstype="line":bar-width="200"diff --git a/frontend/src/views/ExportCenter/index.vue b/frontend/src/views/ExportCenter/index.vueindex 4b597934c6..4164dff9ac 100644--- a/frontend/src/views/ExportCenter/index.vue+++ b/frontend/src/views/ExportCenter/index.vue@@ -1,53 +1,54 @@<template>- <div class="w-full">- <div- class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2"- >- <div class="flex flex-1 max-w-full items-center gap-x-2">- <IssueSearch- v-model:params="state.params"- class="flex-1"- :override-scope-id-list="overrideSearchScopeIdList"- >- <template #searchbox-suffix>- <PermissionGuardWrapper- v-slot="slotProps"- :project="specificProject"- :permissions="[- ...PERMISSIONS_FOR_DATABASE_EXPORT_ISSUE- ]"- >- <NButton- type="primary"- :disabled="slotProps.disabled"- @click="state.showRequestExportPanel = true"+ <div class="py-4 w-full flex flex-col">+ <div class="px-4 pb-2">+ <div+ class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2"+ >+ <div class="flex flex-1 max-w-full items-center gap-x-2">+ <IssueSearch+ v-model:params="state.params"+ class="flex-1"+ :override-scope-id-list="overrideSearchScopeIdList"+ >+ <template #searchbox-suffix>+ <PermissionGuardWrapper+ v-slot="slotProps"+ :project="specificProject"+ :permissions="[+ ...PERMISSIONS_FOR_DATABASE_EXPORT_ISSUE+ ]">- <template #icon>- <DownloadIcon class="h-4 w-4" />- </template>- {{ $t("quick-action.request-export-data") }}- </NButton>- </PermissionGuardWrapper>- </template>- </IssueSearch>+ <NButton+ type="primary"+ :disabled="slotProps.disabled"+ @click="state.showRequestExportPanel = true"+ >+ <template #icon>+ <DownloadIcon class="h-4 w-4" />+ </template>+ {{ $t("quick-action.request-export-data") }}+ </NButton>+ </PermissionGuardWrapper>+ </template>+ </IssueSearch>+ </div></div></div>-- <div class="relative w-full mt-4 min-h-80">- <PagedTable- ref="issuePagedTable"- :session-key="'export-center'"- :fetch-list="fetchIssueList"- >- <template #table="{ list, loading }">- <IssueTableV1- :loading="loading"- :issue-list="list"- :highlight-text="state.params.query"- />- </template>- </PagedTable>- </div>+ <PagedTable+ ref="issuePagedTable"+ :session-key="'export-center'"+ :footer-class="'mx-4'"+ :fetch-list="fetchIssueList"+ >+ <template #table="{ list, loading }">+ <IssueTableV1+ class="border-x-0"+ :loading="loading"+ :issue-list="list"+ :highlight-text="state.params.query"+ />+ </template>+ </PagedTable></div><Drawerdiff --git a/frontend/src/views/InstanceDashboard.vue b/frontend/src/views/InstanceDashboard.vueindex 9ffefccca4..44b1527e1a 100644--- a/frontend/src/views/InstanceDashboard.vue+++ b/frontend/src/views/InstanceDashboard.vue@@ -1,33 +1,35 @@<template>- <div class="flex flex-col gap-y-4">- <BBAttention- v-if="remainingInstanceCount <= 3"- :type="'warning'"- :title="$t('subscription.usage.instance-count.title')"- :description="instanceCountAttention"- />- <div class="px-4 flex items-center gap-x-2">- <AdvancedSearch- v-model:params="state.params"- :autofocus="false"- :placeholder="$t('instance.filter-instance-name')"- :scope-options="scopeOptions"+ <div class="py-4 flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <BBAttention+ v-if="remainingInstanceCount <= 3"+ :type="'warning'"+ :title="$t('subscription.usage.instance-count.title')"+ :description="instanceCountAttention"/>- <PermissionGuardWrapper- v-slot="slotProps"- :permissions="['bb.instances.create']"- >- <NButton- type="primary"- :disabled="slotProps.disabled"- @click="showCreateInstanceDrawer"+ <div class="flex items-center gap-x-2">+ <AdvancedSearch+ v-model:params="state.params"+ :autofocus="false"+ :placeholder="$t('instance.filter-instance-name')"+ :scope-options="scopeOptions"+ />+ <PermissionGuardWrapper+ v-slot="slotProps"+ :permissions="['bb.instances.create']">- <template #icon>- <PlusIcon class="h-4 w-4" />- </template>- {{ $t("quick-action.add-instance") }}- </NButton>- </PermissionGuardWrapper>+ <NButton+ type="primary"+ :disabled="slotProps.disabled"+ @click="showCreateInstanceDrawer"+ >+ <template #icon>+ <PlusIcon class="h-4 w-4" />+ </template>+ {{ $t("quick-action.add-instance") }}+ </NButton>+ </PermissionGuardWrapper>+ </div></div><div><InstanceOperationsdiff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vueindex e5741f7cdc..a044ddaa77 100644--- a/frontend/src/views/InstanceDetail.vue+++ b/frontend/src/views/InstanceDetail.vue@@ -1,5 +1,5 @@<template>- <div class="flex flex-col gap-y-2 px-6" v-bind="$attrs">+ <div class="pt-4 flex flex-col gap-y-2 px-6" v-bind="$attrs"><ArchiveBanner v-if="instance.state === State.DELETED" /><BBAttentionv-if="!instance.environment"@@ -104,7 +104,6 @@ import {PagedDatabaseTable,} from "@/components/v2/Model/DatabaseV1Table";import { useRouteChangeGuard } from "@/composables/useRouteChangeGuard";-import { useBodyLayoutContext } from "@/layouts/common";import {useDatabaseV1Store,useEnvironmentV1Store,@@ -148,9 +147,6 @@ defineOptions({inheritAttrs: false,});-const { overrideMainContainerClass } = useBodyLayoutContext();-overrideMainContainerClass("pb-0!");-const { t } = useI18n();const router = useRouter();const instanceV1Store = useInstanceV1Store();diff --git a/frontend/src/views/MyIssues.vue b/frontend/src/views/MyIssues.vueindex fdc068bd52..31e42ea35f 100644--- a/frontend/src/views/MyIssues.vue+++ b/frontend/src/views/MyIssues.vue@@ -1,5 +1,5 @@<template>- <div :key="viewId" class="flex flex-col">+ <div :key="viewId" class="py-4 flex flex-col"><IssueSearchv-model:params="state.params":components="['searchbox', 'time-range', 'presets', 'status']"@@ -7,23 +7,22 @@class="px-4 pb-2"/>- <div class="relative min-h-80">- <PagedTable- ref="issuePagedTable"- session-key="bb.issue-table.my-issues"- :fetch-list="fetchIssueList"- >- <template #table="{ list, loading }">- <IssueTableV1- class="border-x-0"- :loading="loading"- :issue-list="list"- :highlight-text="state.params.query"- :show-project="true"- />- </template>- </PagedTable>- </div>+ <PagedTable+ ref="issuePagedTable"+ session-key="bb.issue-table.my-issues"+ :footer-class="'mx-4'"+ :fetch-list="fetchIssueList"+ >+ <template #table="{ list, loading }">+ <IssueTableV1+ class="border-x-0"+ :loading="loading"+ :issue-list="list"+ :highlight-text="state.params.query"+ :show-project="true"+ />+ </template>+ </PagedTable></div></template>diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vueindex 55b2784a8d..0938a3fb2f 100644--- a/frontend/src/views/ProfileDashboard.vue+++ b/frontend/src/views/ProfileDashboard.vue@@ -1,6 +1,6 @@<template><main- class="flex-1 h-full relative pb-8 focus:outline-hidden xl:order-last"+ class="px-4 pt-4 flex-1 h-full relative pb-8 focus:outline-hidden xl:order-last"tabindex="0"><NoPermissionPlaceholderdiff --git a/frontend/src/views/ProjectDashboard.vue b/frontend/src/views/ProjectDashboard.vueindex 250bdb7d57..a7fa6d1b34 100644--- a/frontend/src/views/ProjectDashboard.vue+++ b/frontend/src/views/ProjectDashboard.vue@@ -1,6 +1,6 @@<template>- <div class="flex flex-col gap-y-4">- <div class="flex items-center justify-between px-4 gap-x-2">+ <div class="py-4 flex flex-col">+ <div class="flex items-center justify-between px-4 pb-2 gap-x-2"><AdvancedSearchv-model:params="state.params":scope-options="scopeOptions"diff --git a/frontend/src/views/SettingWorkspaceAuditLog.vue b/frontend/src/views/SettingWorkspaceAuditLog.vueindex c424c34ee1..1484a3de83 100644--- a/frontend/src/views/SettingWorkspaceAuditLog.vue+++ b/frontend/src/views/SettingWorkspaceAuditLog.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4 pb-6">+ <div class="px-4 py-4"><FeatureAttention :feature="PlanFeature.FEATURE_AUDIT_LOG" /><AuditLogSearch v-model:params="state.params"><template #searchbox-suffix>@@ -18,15 +18,14 @@/></template></AuditLogSearch>-- <PagedAuditLogDataTable- v-if="hasAuditLogFeature"- ref="pagedAuditLogDataTableRef"- :parent="parent"- :filter="searchAuditLogs"- />- <NEmpty class="py-12 border rounded-sm" v-else /></div>+ <PagedAuditLogDataTable+ v-if="hasAuditLogFeature"+ ref="pagedAuditLogDataTableRef"+ :parent="parent"+ :filter="searchAuditLogs"+ />+ <NEmpty class="mx-4 py-12 border rounded-sm" v-else /></template><script lang="ts" setup>diff --git a/frontend/src/views/SettingWorkspaceCustomApproval.vue b/frontend/src/views/SettingWorkspaceCustomApproval.vueindex 0f70f33a47..f2e728e4d1 100644--- a/frontend/src/views/SettingWorkspaceCustomApproval.vue+++ b/frontend/src/views/SettingWorkspaceCustomApproval.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4 text-sm">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4 text-sm"><FeatureAttention :feature="PlanFeature.FEATURE_APPROVAL_WORKFLOW" /><BBAttention v-if="hasCustomApprovalFeature" type="info" :description="$t('custom-approval.rule.first-match-wins')" />diff --git a/frontend/src/views/SettingWorkspaceDataClassification.vue b/frontend/src/views/SettingWorkspaceDataClassification.vueindex 015bcd7f22..8a7e8f843d 100644--- a/frontend/src/views/SettingWorkspaceDataClassification.vue+++ b/frontend/src/views/SettingWorkspaceDataClassification.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4"><FeatureAttentionv-if="!hasSensitiveDataFeature":feature="PlanFeature.FEATURE_DATA_CLASSIFICATION"diff --git a/frontend/src/views/SettingWorkspaceDataMasking.vue b/frontend/src/views/SettingWorkspaceDataMasking.vueindex 09c3cca0fc..efd466b540 100644--- a/frontend/src/views/SettingWorkspaceDataMasking.vue+++ b/frontend/src/views/SettingWorkspaceDataMasking.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4"><FeatureAttention:feature="PlanFeature.FEATURE_DATA_MASKING"/>diff --git a/frontend/src/views/SettingWorkspaceGeneral.vue b/frontend/src/views/SettingWorkspaceGeneral.vueindex 0e7e8e3f50..6e364dba1f 100644--- a/frontend/src/views/SettingWorkspaceGeneral.vue+++ b/frontend/src/views/SettingWorkspaceGeneral.vue@@ -1,5 +1,5 @@<template>- <div class="divide-y divide-block-border pt-2">+ <div class="px-4 divide-y divide-block-border py-4"><GeneralSettingref="generalSettingRef":title="$t('common.general')"@@ -51,7 +51,7 @@/></PermissionGuardWrapper>- <div v-if="isDirty" class="sticky bottom-0 z-10">+ <div v-if="isDirty" class="sticky bottom-0 z-10 -mb-4"><divclass="flex justify-between w-full py-4 border-t border-block-border bg-white">@@ -84,7 +84,6 @@ import {} from "@/components/GeneralSetting";import PermissionGuardWrapper from "@/components/Permission/PermissionGuardWrapper.vue";import { useRouteChangeGuard } from "@/composables/useRouteChangeGuard";-import { useBodyLayoutContext } from "@/layouts/common";import { pushNotification } from "@/store";const route = useRoute();@@ -117,10 +116,6 @@ const settingRefList = computed(() => {];});-const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("!pb-0");-onMounted(async () => {// If the route has a hash, try to scroll to the element with the value.if (route.hash) {diff --git a/frontend/src/views/SettingWorkspaceIM.vue b/frontend/src/views/SettingWorkspaceIM.vueindex 2df5e08420..6b1f912e96 100644--- a/frontend/src/views/SettingWorkspaceIM.vue+++ b/frontend/src/views/SettingWorkspaceIM.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4 pb-4">+ <div class="w-full px-4 flex flex-col gap-y-4 py-4"><div class="textinfolabel">{{ $t("settings.im-integration.description") }}<LearnMoreLinkdiff --git a/frontend/src/views/SettingWorkspaceMCP.vue b/frontend/src/views/SettingWorkspaceMCP.vueindex a0e895b743..0948abc143 100644--- a/frontend/src/views/SettingWorkspaceMCP.vue+++ b/frontend/src/views/SettingWorkspaceMCP.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-6 pb-4">+ <div class="w-full px-4 flex flex-col gap-y-6 py-4"><!-- Header --><div><h2 class="text-lg font-medium">{{ $t("settings.mcp.title") }}</h2>diff --git a/frontend/src/views/SettingWorkspaceMembers.vue b/frontend/src/views/SettingWorkspaceMembers.vueindex 589050ef99..edd786b566 100644--- a/frontend/src/views/SettingWorkspaceMembers.vue+++ b/frontend/src/views/SettingWorkspaceMembers.vue@@ -1,5 +1,5 @@<template>- <div class="w-full mx-auto flex flex-col gap-y-4 pb-4">+ <div class="w-full px-4 mx-auto flex flex-col py-4"><NTabs v-model:value="state.selectedTab" type="line" animated><NTabPane name="MEMBERS"><template #tab>diff --git a/frontend/src/views/SettingWorkspaceRiskCenter.vue b/frontend/src/views/SettingWorkspaceRiskCenter.vueindex eada2bb8d3..f68c8e2b1a 100644--- a/frontend/src/views/SettingWorkspaceRiskCenter.vue+++ b/frontend/src/views/SettingWorkspaceRiskCenter.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-6 text-sm">+ <div class="w-full px-4 py-4 flex flex-col gap-y-6 text-sm"><FeatureAttention:feature="PlanFeature.FEATURE_RISK_ASSESSMENT"class="mb-2"diff --git a/frontend/src/views/SettingWorkspaceRole.vue b/frontend/src/views/SettingWorkspaceRole.vueindex c0ccb61bc0..c4c304334e 100644--- a/frontend/src/views/SettingWorkspaceRole.vue+++ b/frontend/src/views/SettingWorkspaceRole.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4 text-sm">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4 text-sm"><RoleSetting /></div></template>diff --git a/frontend/src/views/SettingWorkspaceSQLReview.vue b/frontend/src/views/SettingWorkspaceSQLReview.vueindex abc8f9e8c0..e1ea4d8b45 100644--- a/frontend/src/views/SettingWorkspaceSQLReview.vue+++ b/frontend/src/views/SettingWorkspaceSQLReview.vue@@ -1,5 +1,5 @@<template>- <div class="mx-auto flex flex-col gap-y-4">+ <div class="px-4 py-4 mx-auto flex flex-col gap-y-4"><div class="textinfolabel">{{ $t("sql-review.description") }}<LearnMoreLinkdiff --git a/frontend/src/views/SettingWorkspaceSQLReviewCreate.vue b/frontend/src/views/SettingWorkspaceSQLReviewCreate.vueindex 5c7d1f8000..576d4ffbde 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewCreate.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewCreate.vue@@ -1,5 +1,5 @@<template>- <div class="gap-y-4 h-full flex flex-col">+ <div class="px-4 py-4 gap-y-4 h-full flex flex-col"><SQLReviewCreationclass="flex-1":selected-rule-list="[]"diff --git a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vueindex 4f5bef0e20..00ac388ef2 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue@@ -1,4 +1,5 @@<template>+ <div class="px-4 py-4"><SQLReviewCreationv-if="state.editMode"key="sql-review-creation"@@ -168,6 +169,7 @@:review="reviewPolicy"@close="state.showResourcePanel = false"/>+ </div></template><script lang="tsx" setup>diff --git a/frontend/src/views/SettingWorkspaceSSO.vue b/frontend/src/views/SettingWorkspaceSSO.vueindex 0f4ab01eb1..e038804265 100644--- a/frontend/src/views/SettingWorkspaceSSO.vue+++ b/frontend/src/views/SettingWorkspaceSSO.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4"><div class="textinfolabel">{{ $t("settings.sso.description") }}<LearnMoreLinkdiff --git a/frontend/src/views/SettingWorkspaceSSODetail.vue b/frontend/src/views/SettingWorkspaceSSODetail.vueindex fc3152e1e3..afd0ad303c 100644--- a/frontend/src/views/SettingWorkspaceSSODetail.vue+++ b/frontend/src/views/SettingWorkspaceSSODetail.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-6">+ <div class="w-full px-4 py-4 flex flex-col gap-y-6"><div class="w-full flex flex-row justify-between items-center"><div class="textinfolabel mr-4">{{ $t("settings.sso.description") }}diff --git a/frontend/src/views/SettingWorkspaceSemanticTypes.vue b/frontend/src/views/SettingWorkspaceSemanticTypes.vueindex cc4d263f88..ce7e06105b 100644--- a/frontend/src/views/SettingWorkspaceSemanticTypes.vue+++ b/frontend/src/views/SettingWorkspaceSemanticTypes.vue@@ -1,5 +1,5 @@<template>- <div class="w-full flex flex-col gap-y-4">+ <div class="w-full px-4 py-4 flex flex-col gap-y-4"><FeatureAttention :feature="PlanFeature.FEATURE_DATA_MASKING" /><SemanticTypesView /></div>diff --git a/frontend/src/views/SettingWorkspaceSubscription.vue b/frontend/src/views/SettingWorkspaceSubscription.vueindex 4b149ac613..be13a8714a 100644--- a/frontend/src/views/SettingWorkspaceSubscription.vue+++ b/frontend/src/views/SettingWorkspaceSubscription.vue@@ -1,5 +1,5 @@<template>- <div class="w-full mx-auto">+ <div class="w-full px-4 py-4 mx-auto"><divclass="w-full grid grid-cols-2 gap-6 lg:grid-cols-3 3xl:grid-cols-4 my-4">diff --git a/frontend/src/views/SettingWorkspaceUsers.vue b/frontend/src/views/SettingWorkspaceUsers.vueindex f34b02da30..32b82d9ff7 100644--- a/frontend/src/views/SettingWorkspaceUsers.vue+++ b/frontend/src/views/SettingWorkspaceUsers.vue@@ -1,7 +1,8 @@<template>- <div class="w-full overflow-x-hidden flex flex-col gap-y-4 pb-4">+ <div class="w-full px-4 overflow-x-hidden flex flex-col py-4"><BBAttentionv-if="remainingUserCount <= 3"+ class="mb-2":type="'warning'":title="$t('subscription.usage.user-count.title')":description="userCountAttention"diff --git a/frontend/src/views/TwoFactorSetup.vue b/frontend/src/views/TwoFactorSetup.vueindex b0ee0a974d..e31c3656f0 100644--- a/frontend/src/views/TwoFactorSetup.vue+++ b/frontend/src/views/TwoFactorSetup.vue@@ -1,4 +1,5 @@<template>+ <div class="px-4 py-4"><p class="text-sm text-gray-500 mb-4">{{ $t("two-factor.description") }}<LearnMoreLink@@ -107,6 +108,7 @@:secret="currentUser.tempOtpSecret"@close="state.showSecretModal = false"/>+ </div></template><script lang="ts" setup>diff --git a/frontend/src/views/project/IssueLayout.vue b/frontend/src/views/project/IssueLayout.vueindex 46fc501d69..e1fd74c302 100644--- a/frontend/src/views/project/IssueLayout.vue+++ b/frontend/src/views/project/IssueLayout.vue@@ -36,7 +36,6 @@ import { HeaderSection } from "@/components/Plan/components";import { provideSidebarContext } from "@/components/Plan/logic/sidebar";import { useNavigationGuard } from "@/components/Plan/logic/useNavigationGuard";import PollerProvider from "@/components/Plan/PollerProvider.vue";-import { useBodyLayoutContext } from "@/layouts/common";const props = defineProps<{projectId: string;@@ -84,10 +83,6 @@ providePlanContext({provideSidebarContext(containerRef);-const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("py-0! px-0!");-const documentTitle = computed(() => {if (isCreating.value) {return t("plan.new-plan");diff --git a/frontend/src/views/project/ProjectAccessGrantDashboard.vue b/frontend/src/views/project/ProjectAccessGrantDashboard.vueindex f248f9bfa8..6c9596c400 100644--- a/frontend/src/views/project/ProjectAccessGrantDashboard.vue+++ b/frontend/src/views/project/ProjectAccessGrantDashboard.vue@@ -1,12 +1,12 @@<template>- <div class="w-full flex flex-col gap-y-4">- <FeatureAttention :feature="PlanFeature.FEATURE_JIT" />+ <div class="py-4 w-full flex flex-col">+ <FeatureAttention class="mx-4 mb-2" :feature="PlanFeature.FEATURE_JIT" /><ComponentPermissionGuard:project="project":permissions="['bb.accessGrants.list']">- <div class="flex items-center gap-x-2">+ <div class="px-4 pb-2 flex items-center gap-x-2"><AdvancedSearchclass="flex-1":params="searchParams"@@ -22,6 +22,7 @@ref="pagedTableRef":key="projectName":session-key="`project-${projectName}-access-grants`"+ :footer-class="'mx-4'":fetch-list="fetchList":order-keys="ORDER_KEYS">@@ -30,7 +31,7 @@v-if="hasJITFeature":columns="getSortedColumns(sorters)":data="list"- :bordered="true"+ :bordered="false":striped="true":loading="loading":row-key="(row: AccessGrant) => row.name"@@ -41,7 +42,7 @@</PagedTable></ComponentPermissionGuard>- <NAlert v-if="!canList" type="info">+ <NAlert v-if="!canList" type="info" class="mx-4 mt-2"><i18n-t keypath="sql-editor.access-grants-redirect-hint" tag="span"><template #link><router-linkdiff --git a/frontend/src/views/project/ProjectAuditLogDashboard.vue b/frontend/src/views/project/ProjectAuditLogDashboard.vueindex 83584951db..8ceb7a0bce 100644--- a/frontend/src/views/project/ProjectAuditLogDashboard.vue+++ b/frontend/src/views/project/ProjectAuditLogDashboard.vue@@ -1,31 +1,32 @@<template>- <div class="w-full flex flex-col gap-y-4">- <FeatureAttention :feature="PlanFeature.FEATURE_AUDIT_LOG" />- <AuditLogSearch v-model:params="state.params">- <template #searchbox-suffix>- <DataExportButton- v-if="hasProjectPermissionV2(project, 'bb.auditLogs.export')"- size="medium"- :support-formats="[- ExportFormat.CSV,- ExportFormat.JSON,- ExportFormat.XLSX,- ]"- :tooltip="disableExportTip"- :view-mode="'DROPDOWN'"- :disabled="!hasAuditLogFeature || !!disableExportTip"- @export="(params) => pagedAuditLogDataTableRef?.handleExport(params)"- />- </template>- </AuditLogSearch>-+ <div class="py-4 w-full flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <FeatureAttention :feature="PlanFeature.FEATURE_AUDIT_LOG" />+ <AuditLogSearch v-model:params="state.params">+ <template #searchbox-suffix>+ <DataExportButton+ v-if="hasProjectPermissionV2(project, 'bb.auditLogs.export')"+ size="medium"+ :support-formats="[+ ExportFormat.CSV,+ ExportFormat.JSON,+ ExportFormat.XLSX,+ ]"+ :tooltip="disableExportTip"+ :view-mode="'DROPDOWN'"+ :disabled="!hasAuditLogFeature || !!disableExportTip"+ @export="(params) => pagedAuditLogDataTableRef?.handleExport(params)"+ />+ </template>+ </AuditLogSearch>+ </div><PagedAuditLogDataTablev-if="hasAuditLogFeature"ref="pagedAuditLogDataTableRef":parent="projectName":filter="searchAuditLogs"/>- <NEmpty class="py-12 border rounded-sm" v-else />+ <NEmpty v-else class="mx-4 py-12 border rounded-sm" /></div></template>diff --git a/frontend/src/views/project/ProjectDatabaseDashboard.vue b/frontend/src/views/project/ProjectDatabaseDashboard.vueindex d606aadff2..a62a9e842e 100644--- a/frontend/src/views/project/ProjectDatabaseDashboard.vue+++ b/frontend/src/views/project/ProjectDatabaseDashboard.vue@@ -1,5 +1,5 @@<template>- <ProjectDatabasesPanel :project="project" />+ <ProjectDatabasesPanel class="py-4" :project="project" /></template><script lang="ts" setup>diff --git a/frontend/src/views/project/ProjectDatabaseGroupCreate.vue b/frontend/src/views/project/ProjectDatabaseGroupCreate.vueindex 85d501697d..342bc3b8e9 100644--- a/frontend/src/views/project/ProjectDatabaseGroupCreate.vue+++ b/frontend/src/views/project/ProjectDatabaseGroupCreate.vue@@ -1,6 +1,6 @@<template><DatabaseGroupForm- class="h-full"+ class="py-4 h-full":readonly="false":project="project"@dismiss="() => router.back()"diff --git a/frontend/src/views/project/ProjectDatabaseGroupDashboard.vue b/frontend/src/views/project/ProjectDatabaseGroupDashboard.vueindex 77312112ca..dc56ec8ffa 100644--- a/frontend/src/views/project/ProjectDatabaseGroupDashboard.vue+++ b/frontend/src/views/project/ProjectDatabaseGroupDashboard.vue@@ -1,43 +1,44 @@<template>- <div class="flex flex-col gap-y-4">- <FeatureAttention :feature="PlanFeature.FEATURE_DATABASE_GROUPS" />-- <div class="flex flex-row items-center justify-end gap-x-2">- <SearchBox- v-model:value="state.searchText"- style="max-width: 100%"- :placeholder="$t('common.filter-by-name')"- />- <PermissionGuardWrapper- v-slot="slotProps"- :project="project"- :permissions="['bb.databaseGroups.create']"- >- <NButton- type="primary"- :disabled="slotProps.disabled"- @click="- () => {- if (!hasDBGroupFeature) {- state.showFeatureModal = true;- return;- }- router.push({- name: PROJECT_V1_ROUTE_DATABASE_GROUPS_CREATE,- });- }- "+ <div class="py-4 flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <FeatureAttention :feature="PlanFeature.FEATURE_DATABASE_GROUPS" />+ <div class="flex flex-row items-center justify-end gap-x-2">+ <SearchBox+ v-model:value="state.searchText"+ style="max-width: 100%"+ :placeholder="$t('common.filter-by-name')"+ />+ <PermissionGuardWrapper+ v-slot="slotProps"+ :project="project"+ :permissions="['bb.databaseGroups.create']">- <template #icon>- <PlusIcon class="w-4" />- <FeatureBadge- :feature="PlanFeature.FEATURE_DATABASE_GROUPS"- class="text-white"- />- </template>- {{ $t("database-group.create") }}- </NButton>- </PermissionGuardWrapper>+ <NButton+ type="primary"+ :disabled="slotProps.disabled"+ @click="+ () => {+ if (!hasDBGroupFeature) {+ state.showFeatureModal = true;+ return;+ }+ router.push({+ name: PROJECT_V1_ROUTE_DATABASE_GROUPS_CREATE,+ });+ }+ "+ >+ <template #icon>+ <PlusIcon class="w-4" />+ <FeatureBadge+ :feature="PlanFeature.FEATURE_DATABASE_GROUPS"+ class="text-white"+ />+ </template>+ {{ $t("database-group.create") }}+ </NButton>+ </PermissionGuardWrapper>+ </div></div><ProjectDatabaseGroupPanel :project="project" :filter="state.searchText" /></div>diff --git a/frontend/src/views/project/ProjectDatabaseGroupDetail.vue b/frontend/src/views/project/ProjectDatabaseGroupDetail.vueindex 9e0792b3f8..f3d481abbc 100644--- a/frontend/src/views/project/ProjectDatabaseGroupDetail.vue+++ b/frontend/src/views/project/ProjectDatabaseGroupDetail.vue@@ -86,7 +86,6 @@ import DatabaseGroupForm from "@/components/DatabaseGroup/DatabaseGroupForm.vue"import FeatureAttention from "@/components/FeatureGuard/FeatureAttention.vue";import PermissionGuardWrapper from "@/components/Permission/PermissionGuardWrapper.vue";import { preCreateIssue } from "@/components/Plan/logic/issue";-import { useBodyLayoutContext } from "@/layouts/common";import { PROJECT_V1_ROUTE_DATABASE_GROUPS } from "@/router/dashboard/projectV1";import {featureToRef,@@ -187,8 +186,4 @@ watchEffect(async () => {view: DatabaseGroupView.FULL,});});--const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("py-0!");</script>diff --git a/frontend/src/views/project/ProjectIssueDashboard.vue b/frontend/src/views/project/ProjectIssueDashboard.vueindex 2032529fef..5ca0929796 100644--- a/frontend/src/views/project/ProjectIssueDashboard.vue+++ b/frontend/src/views/project/ProjectIssueDashboard.vue@@ -1,5 +1,5 @@<template>- <ProjectIssuesPanel v-if="ready" :project="project" />+ <ProjectIssuesPanel v-if="ready" class="py-4" :project="project" /></template><script lang="ts" setup>diff --git a/frontend/src/views/project/ProjectMaskingExemption.vue b/frontend/src/views/project/ProjectMaskingExemption.vueindex 7f56b3a747..31ce3317cc 100644--- a/frontend/src/views/project/ProjectMaskingExemption.vue+++ b/frontend/src/views/project/ProjectMaskingExemption.vue@@ -1,8 +1,9 @@<template>- <div class="flex flex-col gap-y-4">- <div- class="flex flex-row justify-between items-center gap-x-2"- >+ <div class="py-4 flex flex-col">+ <div class="px-4 pb-2">+ <div+ class="flex flex-row justify-between items-center gap-x-2"+ ><DatabaseSelectclass="hidden sm:block"style="max-width: max-content"@@ -56,6 +57,7 @@</PermissionGuardWrapper></div></div>+ </div><MaskingExceptionUserTablesize="medium":disabled="!hasPermission"diff --git a/frontend/src/views/project/ProjectMaskingExemptionCreate.vue b/frontend/src/views/project/ProjectMaskingExemptionCreate.vueindex f6dc0967ae..ed7d24c80f 100644--- a/frontend/src/views/project/ProjectMaskingExemptionCreate.vue+++ b/frontend/src/views/project/ProjectMaskingExemptionCreate.vue@@ -1,5 +1,6 @@<template><GrantAccessForm+ class="pt-4":title="$t('project.masking-exemption.grant-exemption')":column-list="[]":project-name="project.name"@@ -11,7 +12,6 @@import { computed } from "vue";import { useRouter } from "vue-router";import GrantAccessForm from "@/components/SensitiveData/GrantAccessForm.vue";-import { useBodyLayoutContext } from "@/layouts/common";import { useProjectByName } from "@/store";import { projectNamePrefix } from "@/store/modules/v1/common";@@ -23,8 +23,4 @@ const { project } = useProjectByName(computed(() => `${projectNamePrefix}${props.projectId}`));const router = useRouter();--const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("!pb-0");</script>diff --git a/frontend/src/views/project/ProjectMemberDashboard.vue b/frontend/src/views/project/ProjectMemberDashboard.vueindex 3657195de9..acf3bc8249 100644--- a/frontend/src/views/project/ProjectMemberDashboard.vue+++ b/frontend/src/views/project/ProjectMemberDashboard.vue@@ -1,5 +1,5 @@<template>- <ProjectMemberPanel :project="project" :allow-edit="allowEdit" />+ <ProjectMemberPanel class="py-4" :project="project" :allow-edit="allowEdit" /></template><script setup lang="ts">diff --git a/frontend/src/views/project/ProjectPlanDashboard.vue b/frontend/src/views/project/ProjectPlanDashboard.vueindex 5a6a68e009..74c1d24248 100644--- a/frontend/src/views/project/ProjectPlanDashboard.vue+++ b/frontend/src/views/project/ProjectPlanDashboard.vue@@ -1,53 +1,52 @@<template>- <div v-if="ready" class="w-full">- <NAlert- v-if="!hideHint"- type="info"- closable- class="mb-4"- @close="dismissHint"- >- {{ $t("plan.subtitle") }}- </NAlert>- <div- class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2"- >- <div class="w-full flex flex-1 items-center justify-between gap-x-2">- <AdvancedSearch- v-model:params="state.params"- class="flex-1"- :scope-options="scopeOptions"- />- <PermissionGuardWrapper- v-slot="slotProps"- :project="project"- :permissions="['bb.plans.create']"- >- <NButton- type="primary"- :disabled="slotProps.disabled"- @click="showAddSpecDrawer = true"+ <div v-if="ready" class="py-4 w-full flex flex-col">+ <div class="px-4 flex flex-col gap-y-2 pb-2">+ <NAlert+ v-if="!hideHint"+ type="info"+ closable+ @close="dismissHint"+ >+ {{ $t("plan.subtitle") }}+ </NAlert>+ <div+ class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2"+ >+ <div class="w-full flex flex-1 items-center justify-between gap-x-2">+ <AdvancedSearch+ v-model:params="state.params"+ class="flex-1"+ :scope-options="scopeOptions"+ />+ <PermissionGuardWrapper+ v-slot="slotProps"+ :project="project"+ :permissions="['bb.plans.create']">- <template #icon>- <PlusIcon class="w-4 h-4" />- </template>- {{ $t("plan.new-plan") }}- </NButton>- </PermissionGuardWrapper>+ <NButton+ type="primary"+ :disabled="slotProps.disabled"+ @click="showAddSpecDrawer = true"+ >+ <template #icon>+ <PlusIcon class="w-4 h-4" />+ </template>+ {{ $t("plan.new-plan") }}+ </NButton>+ </PermissionGuardWrapper>+ </div></div></div>-- <div class="relative w-full mt-4 min-h-80">- <PagedTable- ref="planPagedTable"- :session-key="`bb.${project.name}.plan-table`"- :fetch-list="fetchPlanList"- >- <template #table="{ list, loading }">- <PlanDataTable :loading="loading" :plan-list="list" />- </template>- </PagedTable>- </div>+ <PagedTable+ ref="planPagedTable"+ :session-key="`bb.${project.name}.plan-table`"+ :footer-class="'mx-4'"+ :fetch-list="fetchPlanList"+ >+ <template #table="{ list, loading }">+ <PlanDataTable :loading="loading" :plan-list="list" />+ </template>+ </PagedTable></div><AddSpecDrawerdiff --git a/frontend/src/views/project/ProjectReleaseDashboard.vue b/frontend/src/views/project/ProjectReleaseDashboard.vueindex e6d5a4d763..5aa147ff06 100644--- a/frontend/src/views/project/ProjectReleaseDashboard.vue+++ b/frontend/src/views/project/ProjectReleaseDashboard.vue@@ -1,5 +1,5 @@<template>- <ProjectReleasesPanel :project="project" />+ <ProjectReleasesPanel class="py-4" :project="project" /></template><script lang="ts" setup>diff --git a/frontend/src/views/project/ProjectRolloutDashboard.vue b/frontend/src/views/project/ProjectRolloutDashboard.vueindex d715a16cae..6a4616d57a 100644--- a/frontend/src/views/project/ProjectRolloutDashboard.vue+++ b/frontend/src/views/project/ProjectRolloutDashboard.vue@@ -1,37 +1,37 @@<template>- <div class="w-full">- <div- class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2"- >- <div class="w-full flex flex-1 items-center justify-between gap-x-2">- <AdvancedSearch- v-model:params="state.params"- class="flex-1"- :scope-options="scopeOptions"- />- <UpdatedTimeRange- :params="state.params"- @update:params="state.params = $event"- />- </div>- </div>-- <div class="relative w-full mt-4 min-h-80">- <PagedTable- ref="rolloutPagedTable"- :key="project.name"- :session-key="`project-${project.name}-rollouts`"- :fetch-list="fetchRolloutList"+ <div class="py-4 w-full flex flex-col">+ <div class="px-4 pb-2">+ <div+ class="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2">- <template #table="{ list, loading }">- <RolloutDataTable- :bordered="true"- :loading="loading"- :rollout-list="list"+ <div class="w-full flex flex-1 items-center justify-between gap-x-2">+ <AdvancedSearch+ v-model:params="state.params"+ class="flex-1"+ :scope-options="scopeOptions"+ />+ <UpdatedTimeRange+ :params="state.params"+ @update:params="state.params = $event"/>- </template>- </PagedTable>+ </div>+ </div></div>+ <PagedTable+ ref="rolloutPagedTable"+ :key="project.name"+ :session-key="`project-${project.name}-rollouts`"+ :footer-class="'mx-4'"+ :fetch-list="fetchRolloutList"+ >+ <template #table="{ list, loading }">+ <RolloutDataTable+ :bordered="false"+ :loading="loading"+ :rollout-list="list"+ />+ </template>+ </PagedTable></div></template>diff --git a/frontend/src/views/project/ProjectSettingPanel.vue b/frontend/src/views/project/ProjectSettingPanel.vueindex dc049d5954..a216a736a1 100644--- a/frontend/src/views/project/ProjectSettingPanel.vue+++ b/frontend/src/views/project/ProjectSettingPanel.vue@@ -5,7 +5,6 @@<script setup lang="ts">import { computed } from "vue";import ProjectSettingPanel from "@/components/ProjectSettingPanel.vue";-import { useBodyLayoutContext } from "@/layouts/common";import { useProjectByName } from "@/store";import { projectNamePrefix } from "@/store/modules/v1/common";@@ -17,8 +16,4 @@ const props = defineProps<{const { project } = useProjectByName(computed(() => `${projectNamePrefix}${props.projectId}`));--const { overrideMainContainerClass } = useBodyLayoutContext();--overrideMainContainerClass("py-0!");</script>diff --git a/frontend/src/views/project/ProjectSyncDatabasePanelV1.vue b/frontend/src/views/project/ProjectSyncDatabasePanelV1.vueindex 3513e33e9b..f8b6ab90d0 100644--- a/frontend/src/views/project/ProjectSyncDatabasePanelV1.vue+++ b/frontend/src/views/project/ProjectSyncDatabasePanelV1.vue@@ -1,5 +1,5 @@<template>- <SyncDatabaseSchema :key="project.name" :project="project" />+ <SyncDatabaseSchema class="py-4" :key="project.name" :project="project" /></template><script setup lang="ts">diff --git a/frontend/src/views/project/ProjectWebhookCreate.vue b/frontend/src/views/project/ProjectWebhookCreate.vueindex 228f3dc809..d483a60341 100644--- a/frontend/src/views/project/ProjectWebhookCreate.vue+++ b/frontend/src/views/project/ProjectWebhookCreate.vue@@ -1,5 +1,6 @@<template><ProjectWebhookForm+ class="pt-4":create="true":project="project":webhook="defaultNewWebhook"diff --git a/frontend/src/views/project/ProjectWebhookDashboard.vue b/frontend/src/views/project/ProjectWebhookDashboard.vueindex ea5f694d27..41d295ef53 100644--- a/frontend/src/views/project/ProjectWebhookDashboard.vue+++ b/frontend/src/views/project/ProjectWebhookDashboard.vue@@ -1,6 +1,6 @@<template>- <div class="flex flex-col gap-y-4">- <div class="flex items-center justify-end">+ <div class="py-4 flex flex-col">+ <div class="px-4 pb-2 flex items-center justify-end"><PermissionGuardWrapperv-slot="slotProps":project="project"@@ -23,7 +23,7 @@:columns="columnList":striped="true":row-key="(webhook: Webhook) => webhook.name"- :bordered="true"+ :bordered="false":row-props="rowProps"/></div>diff --git a/frontend/src/views/project/ProjectWebhookDetail.vue b/frontend/src/views/project/ProjectWebhookDetail.vueindex 6549f7b42d..44188d77a6 100644--- a/frontend/src/views/project/ProjectWebhookDetail.vue+++ b/frontend/src/views/project/ProjectWebhookDetail.vue@@ -1,5 +1,6 @@<template><ProjectWebhookForm+ class="pt-4":allow-edit="allowEdit":create="false":project="project"diff --git a/frontend/src/views/project/RolloutLayout.vue b/frontend/src/views/project/RolloutLayout.vueindex e89bde10cc..0543786b22 100644--- a/frontend/src/views/project/RolloutLayout.vue+++ b/frontend/src/views/project/RolloutLayout.vue@@ -40,7 +40,6 @@ import RefreshIndicator from "@/components/Plan/components/RefreshIndicator.vue"import { provideSidebarContext } from "@/components/Plan/logic/sidebar";import PollerProvider from "@/components/Plan/PollerProvider.vue";import RolloutBreadcrumb from "@/components/RolloutV1/components/Rollout/RolloutBreadcrumb.vue";-import { useBodyLayoutContext } from "@/layouts/common";import { usePolicyV1Store } from "@/store";import { PolicyType } from "@/types/proto-es/v1/org_policy_service_pb";@@ -97,8 +96,6 @@ providePlanContext({provideSidebarContext(containerRef);-useBodyLayoutContext().overrideMainContainerClass("py-0! px-0!");-useTitle(computed(() => {if (ready.value && plan.value?.title) {