From 004390f40ccbb340943577d71d848fc0cca70963 Mon Sep 17 00:00:00 2001 From: regischen <58546692+regischen@users.noreply.github.com> Date: Fri, 31 May 2024 07:39:37 +0000 Subject: [PATCH] feat: add chat onboarding entry (#7109) Upstream: https://github.com/toeverything/blocksuite/pull/7161 --- .../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 2c4d3c9e47..7f951fb0d7 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 @@ -8,6 +8,7 @@ import { assertExists } from '@blocksuite/global/utils'; import { AIProvider } from '@blocksuite/presets'; import { getCurrentStore } from '@toeverything/infra'; +import { toggleGeneralAIOnboarding } from '../../../affine/ai-onboarding/apis'; import type { PromptKey } from './prompt'; import { createChatSession, @@ -390,6 +391,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',