Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(core): move help island to workbench (#6535)

EYHNd11d69ddf6ef
diff --git a/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx b/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx
index bebf038274..66ae57fa46 100644
--- a/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx
+++ b/packages/frontend/core/src/modules/workbench/view/workbench-root.tsx
@@ -1,3 +1,4 @@
+import { HubIsland } from '@affine/core/components/affine/hub-island';
import { useLiveData, useService } from '@toeverything/infra';
import { useCallback, useEffect, useRef } from 'react';
import { useLocation } from 'react-router-dom';
@@ -43,12 +44,16 @@ export const WorkbenchRoot = () => {
}, [basename, workbench.basename$]);
return (
- <SplitView
- className={styles.workbenchRootContainer}
- views={views}
- renderer={panelRenderer}
- onMove={onMove}
- />
+ <>
+ <HubIsland />
+
+ <SplitView
+ className={styles.workbenchRootContainer}
+ views={views}
+ renderer={panelRenderer}
+ onMove={onMove}
+ />
+ </>
);
};
diff --git a/packages/frontend/core/src/pages/workspace/index.tsx b/packages/frontend/core/src/pages/workspace/index.tsx
index 2588e637cd..9afdbaad6c 100644
--- a/packages/frontend/core/src/pages/workspace/index.tsx
+++ b/packages/frontend/core/src/pages/workspace/index.tsx
@@ -13,7 +13,6 @@ import { Suspense, useEffect, useMemo } from 'react';
import { useParams } from 'react-router-dom';
import { AffineErrorBoundary } from '../../components/affine/affine-error-boundary';
-import { HubIsland } from '../../components/affine/hub-island';
import { WorkspaceFallback } from '../../components/workspace';
import { WorkspaceLayout } from '../../layouts/workspace-layout';
import { RightSidebarContainer } from '../../modules/right-sidebar';
@@ -115,7 +114,6 @@ export const Component = (): ReactElement => {
<WorkspaceLayout>
<WorkbenchRoot />
<RightSidebarContainer />
- <HubIsland />
</WorkspaceLayout>
</AffineErrorBoundary>
</Suspense>