mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
feat: add chat onboarding entry (#7109)
Upstream: https://github.com/toeverything/blocksuite/pull/7161
This commit is contained in:
+3
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user