feat: add chat onboarding entry (#7109)

Upstream: https://github.com/toeverything/blocksuite/pull/7161
This commit is contained in:
regischen
2024-05-31 07:39:37 +00:00
parent fe38a3780f
commit 004390f40c
@@ -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',