Skip to content

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

fix: creating branch handler (#8435)

boojack9f99746ace00
diff --git a/frontend/src/components/Branch/BranchCreateView.vue b/frontend/src/components/Branch/BranchCreateView.vue
index 543dbc66bd..99e268d9d7 100644
--- a/frontend/src/components/Branch/BranchCreateView.vue
+++ b/frontend/src/components/Branch/BranchCreateView.vue
@@ -1,5 +1,5 @@
<template>
- <div class="space-y-3 w-full overflow-x-auto px-4">
+ <div class="space-y-3 w-full overflow-x-auto px-4 pb-8">
<div class="w-full flex flex-row justify-start items-center pt-1">
<span class="flex w-40 items-center shrink-0 text-sm">
{{ $t("common.project") }}
@@ -268,7 +268,7 @@ const handleConfirm = async () => {
const [, sheetId] = getProjectAndSchemaDesignSheetId(
createdSchemaDesign.name
);
- router.push({
+ router.replace({
name: "workspace.branch.detail",
params: {
branchSlug: `${createdSchemaDesign.title}-${sheetId}`,
diff --git a/frontend/src/components/Branch/BranchDataTable.vue b/frontend/src/components/Branch/BranchDataTable.vue
index 784ae62475..325c8676c9 100644
--- a/frontend/src/components/Branch/BranchDataTable.vue
+++ b/frontend/src/components/Branch/BranchDataTable.vue
@@ -163,6 +163,7 @@ const rowKey = (row: BranchRowData) => {
const rowProps = (row: BranchRowData) => {
return {
+ class: "cursor-pointer",
onClick: (event: MouseEvent) => {
const targetElement = event.target as HTMLElement;
const triggerElement = targetElement.closest(
diff --git a/frontend/src/components/SchemaEditorV1/TabsContainer.vue b/frontend/src/components/SchemaEditorV1/TabsContainer.vue
index eca64cb84c..c3bbe36b6e 100644
--- a/frontend/src/components/SchemaEditorV1/TabsContainer.vue
+++ b/frontend/src/components/SchemaEditorV1/TabsContainer.vue
@@ -1,7 +1,7 @@
<template>
<div
ref="tabsContainerRef"
- class="w-full max-w-full overflow-x-auto bg-gray-100 select-none shrink-0 rounded"
+ class="w-full max-w-full overflow-x-auto bg-gray-100 select-none shrink-0 p-1 rounded"
>
<div class="w-fit flex flex-nowrap">
<div
@@ -10,7 +10,7 @@
class="relative px-1 pl-2 py-1 rounded w-40 flex flex-row justify-between items-center shrink-0 border border-transparent cursor-pointer"
:class="[
`tab-${tab.id}`,
- tab.id === currentTab?.id && 'bg-white border-gray-200',
+ tab.id === currentTab?.id && 'bg-white border-gray-200 shadow',
]"
@click="handleSelectTab(tab)"
>
@@ -33,10 +33,6 @@
@click.stop.prevent="handleCloseTab(tab)"
/>
</span>
- <div
- v-if="tab.id === currentTab?.id"
- class="absolute -bottom-px left-0 w-full h-[3px] bg-accent rounded"
- ></div>
</div>
</div>
</div>
diff --git a/frontend/src/views/branch/BranchDetail.vue b/frontend/src/views/branch/BranchDetail.vue
index e3295a88be..fe8df0e4f0 100644
--- a/frontend/src/views/branch/BranchDetail.vue
+++ b/frontend/src/views/branch/BranchDetail.vue
@@ -11,7 +11,7 @@
<script lang="ts" setup>
import { useTitle } from "@vueuse/core";
-import { computed, onMounted, ref } from "vue";
+import { computed, ref, watchEffect } from "vue";
import { useI18n } from "vue-i18n";
import BranchCreateView from "@/components/Branch/BranchCreateView.vue";
import BranchDetailView from "@/components/Branch/BranchDetailView.vue";
@@ -44,7 +44,7 @@ const branchName = computed(() => {
return `projects/${project}/schemaDesigns/${sheetId}`;
});
-onMounted(async () => {
+watchEffect(async () => {
if (!isCreating.value) {
const sheetId = idFromSlug(props.branchSlug);
const sheet = await sheetStore.getOrFetchSheetByUID(`${sheetId}`);