From e877f20955926ed70bc7d7ad912f31d246eb5dd4 Mon Sep 17 00:00:00 2001 From: regischen <58546692+regischen@users.noreply.github.com> Date: Fri, 28 Jun 2024 07:03:33 +0000 Subject: [PATCH] fix: add onboarding entry (#7375) Don't know why it's missed.. https://github.com/toeverything/AFFiNE/pull/7109 --- .../blocksuite/block-suite-editor/ai/setup-provider.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx index 7f6732e0b..1f8ad78e0 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/setup-provider.tsx @@ -1,6 +1,7 @@ import { notify } from '@affine/component'; import { authAtom, openSettingModalAtom } from '@affine/core/atoms'; import { AIProvider } from '@affine/core/blocksuite/presets/ai'; +import { toggleGeneralAIOnboarding } from '@affine/core/components/affine/ai-onboarding/apis'; import { mixpanel } from '@affine/core/utils'; import { getBaseUrl } from '@affine/graphql'; import { Trans } from '@affine/i18n'; @@ -398,6 +399,8 @@ Could you make a new website based on these notes and send back just the html fi }, }); + AIProvider.provide('onboarding', toggleGeneralAIOnboarding); + AIProvider.slots.requestUpgradePlan.on(() => { getCurrentStore().set(openSettingModalAtom, { activeTab: 'billing',