Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge branch 'dev' into release/v0.7.0
Louisfe2c2a86878a
diff --cc web-app/src/containers/ThreadList.tsxindex a8dadbb62,69bcc4d82..09d2a9d16--- a/web-app/src/containers/ThreadList.tsx+++ b/web-app/src/containers/ThreadList.tsx@@@ -262,32 -262,29 +262,32 @@@ const SortableItem = memo</DropdownMenuItem>)))}- {thread.metadata?.project && (- <>- <DropdownMenuSeparator />- <DropdownMenuItem- onClick={(e) => {- e.stopPropagation()- // Remove project from metadata- const projectName = thread.metadata?.project?.name- updateThread(thread.id, {- metadata: {- ...thread.metadata,- project: undefined,- },- })- toast.success(- `Thread removed from "${projectName}" successfully`- )- }}- >- <IconX size={16} />- <span>Remove from project</span>- </DropdownMenuItem>- </>- )}</DropdownMenuSubContent></DropdownMenuSub>+ {thread.metadata?.project && (- <DropdownMenuItem- onClick={(e) => {- e.stopPropagation()- // Remove project from metadata- const projectName = thread.metadata?.project?.name- updateThread(thread.id, {- metadata: {- ...thread.metadata,- project: undefined,- },- })- toast.success(- `Thread removed from "${projectName}" successfully`- )- }}- >- <IconX size={16} />- <span>{t('common:projects.removeFromProject')}</span>- </DropdownMenuItem>++ <>++ <DropdownMenuSeparator />++ <DropdownMenuItem++ onClick={(e) => {++ e.stopPropagation()++ // Remove project from metadata++ const projectName = thread.metadata?.project?.name++ updateThread(thread.id, {++ metadata: {++ ...thread.metadata,++ project: undefined,++ },++ })++ toast.success(++ `Thread removed from "${projectName}" successfully`++ )++ }}++ >++ <IconX size={16} />++ <span>Remove from project</span>++ </DropdownMenuItem>++ </>+ )}<DropdownMenuSeparator /><DeleteThreadDialogthread={thread}@@@ -311,7 -308,7 +311,11 @@@ type ThreadListProps =currentProjectId?: string}--function ThreadList({ threads, variant = 'default', currentProjectId }: ThreadListProps) {++function ThreadList({++ threads,++ variant = 'default',++ currentProjectId,++}: ThreadListProps) {const sortedThreads = useMemo(() => {return threads.sort((a, b) => {return (b.updated || 0) - (a.updated || 0)@@@ -335,7 -332,7 +339,12 @@@strategy={verticalListSortingStrategy}>{sortedThreads.map((thread, index) => (-- <SortableItem key={index} thread={thread} variant={variant} currentProjectId={currentProjectId} />++ <SortableItem++ key={index}++ thread={thread}++ variant={variant}++ currentProjectId={currentProjectId}++ />))}</SortableContext></DndContext>