feat: add expert search, legal search and UI improvements

This commit is contained in:
Aktraiser 2024-12-30 13:34:26 +01:00
parent 2c5ca94b3c
commit 271199c527
53 changed files with 4595 additions and 708 deletions

View file

@ -4,7 +4,7 @@ import {
Globe,
Pencil,
ScanEye,
SwatchBook,
Eye,
} from 'lucide-react';
import { cn } from '@/lib/utils';
import {
@ -19,52 +19,28 @@ import { Fragment } from 'react';
const focusModes = [
{
key: 'webSearch',
title: 'All',
description: 'Searches across all of the internet',
title: 'Recherche internet',
description: 'Recherche sur internet directement',
icon: <Globe size={20} />,
},
{
key: 'academicSearch',
title: 'Academic',
description: 'Search in published academic papers',
icon: <SwatchBook size={20} />,
title: 'Experts',
description: 'Recherche un expert pour vous acccompagner',
icon: <Eye size={20} />,
},
{
key: 'writingAssistant',
title: 'Writing',
title: 'Document',
description: 'Chat without searching the web',
icon: <Pencil size={16} />,
},
{
key: 'wolframAlphaSearch',
title: 'Wolfram Alpha',
description: 'Computational knowledge engine',
title: 'Business Plan',
description: 'Réaliser votre Business Plan',
icon: <BadgePercent size={20} />,
},
{
key: 'youtubeSearch',
title: 'Youtube',
description: 'Search and watch videos',
icon: (
<SiYoutube
className="h-5 w-auto mr-0.5"
onPointerEnterCapture={undefined}
onPointerLeaveCapture={undefined}
/>
),
},
{
key: 'redditSearch',
title: 'Reddit',
description: 'Search for discussions and opinions',
icon: (
<SiReddit
className="h-5 w-auto mr-0.5"
onPointerEnterCapture={undefined}
onPointerLeaveCapture={undefined}
/>
),
},
];
const Focus = ({