File tree Expand file tree Collapse file tree
layer/renderer/src/modules/entry-content/components/entry-content Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { EntryHeader } from "../entry-header"
3131import { EntryTimelineSidebar } from "../EntryTimelineSidebar"
3232import { getEntryContentLayout } from "../layouts"
3333import { SourceContentPanel } from "../SourceContentView"
34- import { AISmartSidebar } from "./ai"
3534import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
3635import { EntryContentLoading } from "./EntryContentLoading"
3736import { EntryNoContent } from "./EntryNoContent"
@@ -199,7 +198,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
199198 < SourceContentPanel src = { safeUrl ?? "#" } />
200199 </ Focusable >
201200
202- < React . Suspense > { ! isInPeekModal && < AISmartSidebar entryId = { entryId } /> } </ React . Suspense >
201+ { /* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */ }
203202 </ div >
204203 )
205204}
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ import { EntryTitle } from "../EntryTitle"
4242import { SourceContentPanel } from "../SourceContentView"
4343import { SupportCreator } from "../SupportCreator"
4444import { EntryContentAccessories } from "./accessories"
45- import { AISmartSidebar } from "./ai"
4645import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
4746import { EntryContentLoading } from "./EntryContentLoading"
4847import { EntryNoContent } from "./EntryNoContent"
@@ -237,7 +236,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
237236 < SourceContentPanel src = { safeUrl ?? "#" } />
238237 </ Focusable >
239238
240- < React . Suspense > { ! isInPeekModal && < AISmartSidebar entryId = { entryId } /> } </ React . Suspense >
239+ { /* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */ }
241240 </ >
242241 )
243242}
Original file line number Diff line number Diff line change @@ -252,12 +252,14 @@ const useCreateEntryAIContext = (entryId: string) => {
252252
253253 return ctxStore
254254}
255+ // eslint-disable-next-line unicorn/no-thenable
256+ const infiniteThenable = { then ( ) { } }
255257export const AISmartSidebar = ( { entryId } : { entryId : string } ) => {
256258 const [ isExpanded , setIsExpanded ] = useState ( false )
257259
258260 const hasAi = React . use ( AIChatContext )
259261 if ( ! hasAi ) {
260- throw Promise . reject ( "ai not enabled" )
262+ throw infiniteThenable
261263 }
262264
263265 const ctxStore = useCreateEntryAIContext ( entryId )
Original file line number Diff line number Diff line change 11{
22 "name" : " Folo" ,
33 "type" : " module" ,
4- "version" : " 0.6.3 " ,
4+ "version" : " 0.6.4 " ,
55 "private" : true ,
66 "description" : " Follow everything in one place" ,
77 "author" : " Folo Team" ,
2121 "build:electron-vite" : " electron-vite build" ,
2222 "build:render" : " vite build -c vite.config.electron-render.ts" ,
2323 "build:web" : " rm -rf out/web && cross-env WEB_BUILD=1 vite build" ,
24- "bump" : " vv" ,
24+ "bump" : " vv --minor " ,
2525 "dedupe:locales" : " eslint --fix locales/**/*.json" ,
2626 "depcheck" : " npx depcheck --quiet" ,
2727 "dev" : " turbo run @follow/web#dev @follow/ssr#dev" ,
2828 "dev:debug" : " export DEBUG=true && vite --debug" ,
2929 "dev:electron" : " electron-vite dev" ,
3030 "dev:server" : " pnpm run --filter=ssr dev" ,
3131 "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 " ,
3333 "publish" : " electron-vite build && electron-forge publish" ,
3434 "start" : " electron-vite preview" ,
3535 "update:main-hash" : " tsx plugins/vite/generate-main-hash.ts"
You can’t perform that action at this time.
0 commit comments