File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
layer/renderer/src/modules/entry-content/components/entry-content Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { EntryHeader } from "../entry-header"
31
31
import { EntryTimelineSidebar } from "../EntryTimelineSidebar"
32
32
import { getEntryContentLayout } from "../layouts"
33
33
import { SourceContentPanel } from "../SourceContentView"
34
- import { AISmartSidebar } from "./ai"
35
34
import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
36
35
import { EntryContentLoading } from "./EntryContentLoading"
37
36
import { EntryNoContent } from "./EntryNoContent"
@@ -199,7 +198,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
199
198
< SourceContentPanel src = { safeUrl ?? "#" } />
200
199
</ Focusable >
201
200
202
- < React . Suspense > { ! isInPeekModal && < AISmartSidebar entryId = { entryId } /> } </ React . Suspense >
201
+ { /* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */ }
203
202
</ div >
204
203
)
205
204
}
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ import { EntryTitle } from "../EntryTitle"
42
42
import { SourceContentPanel } from "../SourceContentView"
43
43
import { SupportCreator } from "../SupportCreator"
44
44
import { EntryContentAccessories } from "./accessories"
45
- import { AISmartSidebar } from "./ai"
46
45
import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
47
46
import { EntryContentLoading } from "./EntryContentLoading"
48
47
import { EntryNoContent } from "./EntryNoContent"
@@ -237,7 +236,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
237
236
< SourceContentPanel src = { safeUrl ?? "#" } />
238
237
</ Focusable >
239
238
240
- < React . Suspense > { ! isInPeekModal && < AISmartSidebar entryId = { entryId } /> } </ React . Suspense >
239
+ { /* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */ }
241
240
</ >
242
241
)
243
242
}
Original file line number Diff line number Diff line change @@ -252,12 +252,14 @@ const useCreateEntryAIContext = (entryId: string) => {
252
252
253
253
return ctxStore
254
254
}
255
+ // eslint-disable-next-line unicorn/no-thenable
256
+ const infiniteThenable = { then ( ) { } }
255
257
export const AISmartSidebar = ( { entryId } : { entryId : string } ) => {
256
258
const [ isExpanded , setIsExpanded ] = useState ( false )
257
259
258
260
const hasAi = React . use ( AIChatContext )
259
261
if ( ! hasAi ) {
260
- throw Promise . reject ( "ai not enabled" )
262
+ throw infiniteThenable
261
263
}
262
264
263
265
const ctxStore = useCreateEntryAIContext ( entryId )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Folo" ,
3
3
"type" : " module" ,
4
- "version" : " 0.6.3 " ,
4
+ "version" : " 0.6.4 " ,
5
5
"private" : true ,
6
6
"description" : " Follow everything in one place" ,
7
7
"author" : " Folo Team" ,
21
21
"build:electron-vite" : " electron-vite build" ,
22
22
"build:render" : " vite build -c vite.config.electron-render.ts" ,
23
23
"build:web" : " rm -rf out/web && cross-env WEB_BUILD=1 vite build" ,
24
- "bump" : " vv" ,
24
+ "bump" : " vv --minor " ,
25
25
"dedupe:locales" : " eslint --fix locales/**/*.json" ,
26
26
"depcheck" : " npx depcheck --quiet" ,
27
27
"dev" : " turbo run @follow/web#dev @follow/ssr#dev" ,
28
28
"dev:debug" : " export DEBUG=true && vite --debug" ,
29
29
"dev:electron" : " electron-vite dev" ,
30
30
"dev:server" : " pnpm run --filter=ssr dev" ,
31
31
"dev:web" : " cross-env WEB_BUILD=1 vite" ,
32
- "hotfix" : " vv -c bump.hotfix.config.js" ,
32
+ "hotfix" : " vv -c bump.hotfix.config.js --patch " ,
33
33
"publish" : " electron-vite build && electron-forge publish" ,
34
34
"start" : " electron-vite preview" ,
35
35
"update:main-hash" : " tsx plugins/vite/generate-main-hash.ts"
You can’t perform that action at this time.
0 commit comments