diff --git a/packages/nc-gui/components/dashboard/MiniSidebarV2/Dock.vue b/packages/nc-gui/components/dashboard/MiniSidebarV2/Dock.vue index 305ebe4738..782ced5d25 100644 --- a/packages/nc-gui/components/dashboard/MiniSidebarV2/Dock.vue +++ b/packages/nc-gui/components/dashboard/MiniSidebarV2/Dock.vue @@ -80,6 +80,8 @@ const onTabClick = async (tabKey: string) => { if (tabKey === 'workflows') { await navigateTo(`${basePath}/workflows`) + } else if (tabKey === 'docs') { + await navigateTo(`${basePath}/docs`) } else { await navigateTo(basePath) } @@ -112,6 +114,13 @@ const mainItems = computed(() => [ }, ...(isEeUI && !isMobileMode.value ? [ + { + key: 'docs', + icon: 'ncFileText', + label: 'Docs', + disabled: !hasAvailableBases.value, + onClick: () => onTabClick('docs'), + }, { key: 'workflows', icon: 'ncAutomation', diff --git a/packages/nc-gui/components/dashboard/MiniSidebarV2/Rail.vue b/packages/nc-gui/components/dashboard/MiniSidebarV2/Rail.vue index ca6b63faa5..55b429edba 100644 --- a/packages/nc-gui/components/dashboard/MiniSidebarV2/Rail.vue +++ b/packages/nc-gui/components/dashboard/MiniSidebarV2/Rail.vue @@ -94,6 +94,8 @@ const onTabClick = async (tabKey: string) => { if (tabKey === 'workflows') { await navigateTo(`${basePath}/workflows`) + } else if (tabKey === 'docs') { + await navigateTo(`${basePath}/docs`) } else { await navigateTo(basePath) } @@ -158,6 +160,15 @@ const mainItems = computed(() => [ }, ...(isEeUI && !isMobileMode.value ? [ + { + key: 'docs', + icon: 'ncFileText', + label: 'Docs', + disabled: !hasAvailableBases.value, + onClick: () => { + onTabClick('docs') + }, + }, { key: 'workflows', icon: 'ncAutomation', diff --git a/packages/nc-gui/store/sidebar.ts b/packages/nc-gui/store/sidebar.ts index b1d850c35e..2b960fe68f 100644 --- a/packages/nc-gui/store/sidebar.ts +++ b/packages/nc-gui/store/sidebar.ts @@ -113,7 +113,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => { const showTopbar = ref(false) - type SidebarTab = 'data' | 'workflows' | 'agents' | 'settings' + type SidebarTab = 'data' | 'docs' | 'workflows' | 'agents' | 'settings' const activeSidebarTab = ref('data') @@ -128,6 +128,10 @@ export const useSidebarStore = defineStore('sidebarStore', () => { if (name.startsWith('index-typeOrId-baseId-')) { if (name.startsWith('index-typeOrId-baseId-index-settings')) return 'settings' + if (name.startsWith('index-typeOrId-baseId-index-docs')) { + return 'docs' + } + if ( name.startsWith('index-typeOrId-baseId-index-workflows') || name.startsWith('index-typeOrId-baseId-index-automation-') ||