Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
"iconLibrary": "tabler"
}
7 changes: 6 additions & 1 deletion components/account-settings-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { useRouter } from 'next/navigation'
import { useTheme } from 'next-themes'

import type { User } from '@supabase/supabase-js'
import { Laptop, Moon, Sun, Trash2 } from 'lucide-react'
import {
IconDeviceLaptop as Laptop,
IconMoon as Moon,
IconSun as Sun,
IconTrash as Trash2
} from '@tabler/icons-react'
import { toast } from 'sonner'

import { deleteAccount } from '@/lib/actions/account'
Expand Down
16 changes: 8 additions & 8 deletions components/action-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import { useEffect, useRef, useState } from 'react'

import {
FileText,
HelpCircle,
LucideIcon,
Newspaper,
Scale,
Search
} from 'lucide-react'
IconFileText as FileText,
IconHelpCircle as HelpCircle,
IconNews as Newspaper,
IconScale as Scale,
IconSearch as Search,
type TablerIcon
} from '@tabler/icons-react'

import { cn } from '@/lib/utils'

Expand All @@ -19,7 +19,7 @@ import { Button } from './ui/button'
const FOCUS_OUT_DELAY_MS = 100 // Delay to ensure focus has actually moved

interface ActionCategory {
icon: LucideIcon
icon: TablerIcon
label: string
key: string
}
Expand Down
2 changes: 1 addition & 1 deletion components/app-sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Suspense } from 'react'
import Link from 'next/link'

import { Plus } from 'lucide-react'
import { IconPlus as Plus } from '@tabler/icons-react'

import { cn } from '@/lib/utils'

Expand Down
2 changes: 1 addition & 1 deletion components/chat-error.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AlertCircle } from 'lucide-react'
import { IconAlertCircle as AlertCircle } from '@tabler/icons-react'

import { toPublicErrorPayload } from '@/lib/errors/public-error'

Expand Down
7 changes: 6 additions & 1 deletion components/chat-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import Textarea from 'react-textarea-autosize'
import { useRouter } from 'next/navigation'

import { UseChatHelpers } from '@ai-sdk/react'
import { ArrowUp, ChevronDown, MessageCirclePlus, Square } from 'lucide-react'
import {
IconArrowUp as ArrowUp,
IconChevronDown as ChevronDown,
IconMessageCirclePlus as MessageCirclePlus,
IconSquare as Square
} from '@tabler/icons-react'
import { toast } from 'sonner'

import { SHORTCUT_EVENTS } from '@/lib/keyboard-shortcuts'
Expand Down
2 changes: 1 addition & 1 deletion components/chat-share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useState, useTransition } from 'react'

import { Share } from 'lucide-react'
import { IconShare as Share } from '@tabler/icons-react'
import { toast } from 'sonner'

import { shareChat } from '@/lib/actions/chat'
Expand Down
2 changes: 1 addition & 1 deletion components/collapsible-message.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChevronDown } from 'lucide-react'
import { IconChevronDown as ChevronDown } from '@tabler/icons-react'

import { cn } from '@/lib/utils'

Expand Down
2 changes: 1 addition & 1 deletion components/current-user-avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { User2 } from 'lucide-react'
import { IconUser as User2 } from '@tabler/icons-react'

import { useCurrentUserImage } from '@/hooks/use-current-user-image'
import { useCurrentUserName } from '@/hooks/use-current-user-name'
Expand Down
2 changes: 1 addition & 1 deletion components/drag-overlay.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { UploadCloud } from 'lucide-react'
import { IconCloudUpload as UploadCloud } from '@tabler/icons-react'

import { cn } from '@/lib/utils'

Expand Down
6 changes: 5 additions & 1 deletion components/error-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import Link from 'next/link'

import { AlertCircle, Clock, RefreshCw } from 'lucide-react'
import {
IconAlertCircle as AlertCircle,
IconClock as Clock,
IconRefresh as RefreshCw
} from '@tabler/icons-react'

import { Button } from '@/components/ui/button'
import {
Expand Down
13 changes: 9 additions & 4 deletions components/external-link-items.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
'use client'

import { SiDiscord, SiGithub, SiX } from 'react-icons/si'
import Link from 'next/link'

import {
IconBrandDiscord as SiDiscord,
IconBrandGithub as SiGithub,
IconBrandX as SiX
} from '@tabler/icons-react'

import { DropdownMenuItem } from '@/components/ui/dropdown-menu'

const externalLinks = [
{
name: 'X',
href: 'https://x.com/morphic_ai',
icon: <SiX className="mr-2 h-4 w-4" />
icon: <SiX className="size-4" />
},
{
name: 'Discord',
href: 'https://discord.gg/zRxaseCuGq',
icon: <SiDiscord className="mr-2 h-4 w-4" />
icon: <SiDiscord className="size-4" />
},
{
name: 'GitHub',
href: 'https://git.new/morphic',
icon: <SiGithub className="mr-2 h-4 w-4" />
icon: <SiGithub className="size-4" />
}
]

Expand Down
6 changes: 5 additions & 1 deletion components/feedback-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import { useState, useTransition } from 'react'

import { Frown, Meh, Smile } from 'lucide-react'
import {
IconMoodNeutral as Meh,
IconMoodSad as Frown,
IconMoodSmile as Smile
} from '@tabler/icons-react'
import { toast } from 'sonner'

import { submitFeedback } from '@/lib/actions/site-feedback'
Expand Down
7 changes: 6 additions & 1 deletion components/fetch-section.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
'use client'

import { UseChatHelpers } from '@ai-sdk/react'
import { AlertCircle, Check, ExternalLink, Globe } from 'lucide-react'
import {
IconAlertCircle as AlertCircle,
IconCheck as Check,
IconExternalLink as ExternalLink,
IconWorld as Globe
} from '@tabler/icons-react'

import { toPublicErrorPayload } from '@/lib/errors/public-error'
import { SearchResults as SearchResultsType } from '@/lib/types'
Expand Down
2 changes: 1 addition & 1 deletion components/file-upload-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useRef, useState } from 'react'

import { Paperclip } from 'lucide-react'
import { IconPaperclip as Paperclip } from '@tabler/icons-react'
import { toast } from 'sonner'

import { cn } from '@/lib/utils'
Expand Down
18 changes: 9 additions & 9 deletions components/guest-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import Link from 'next/link'

import {
Link2,
LogIn,
Palette,
Settings2 // Or EllipsisVertical, etc.
} from 'lucide-react'
IconLink as Link2,
IconLogin as LogIn,
IconPalette as Palette,
IconSettings as Settings2
} from '@tabler/icons-react'

import { Button } from '@/components/ui/button'
import {
Expand All @@ -29,21 +29,21 @@ export default function GuestMenu() {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon" className="size-6">
<Settings2 className="size-4" /> {/* Choose an icon */}
<Settings2 className="size-4" />
<span className="sr-only">Open menu</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuItem asChild>
<Link href="/auth/login">
<LogIn className="mr-2 h-4 w-4" />
<LogIn className="size-4" />
<span>Sign In</span>
</Link>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<Palette className="mr-2 h-4 w-4" />
<Palette className="size-4" />
<span>Theme</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
Expand All @@ -52,7 +52,7 @@ export default function GuestMenu() {
</DropdownMenuSub>
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<Link2 className="mr-2 h-4 w-4" />
<Link2 className="size-4" />
<span>Links</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
Expand Down
8 changes: 7 additions & 1 deletion components/inspector/inspector-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
'use client'

import { LightbulbIcon, ListTodo, MessageSquare, Search, X } from 'lucide-react'
import {
IconBulb as LightbulbIcon,
IconListCheck as ListTodo,
IconMessage as MessageSquare,
IconSearch as Search,
IconX as X
} from '@tabler/icons-react'

import { Separator } from '@/components/ui/separator'
import { TooltipProvider } from '@/components/ui/tooltip'
Expand Down
6 changes: 5 additions & 1 deletion components/message-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import { useMemo, useState } from 'react'

import { UseChatHelpers } from '@ai-sdk/react'
import { Copy, ThumbsDown, ThumbsUp } from 'lucide-react'
import {
IconCopy as Copy,
IconThumbDown as ThumbsDown,
IconThumbUp as ThumbsUp
} from '@tabler/icons-react'
import { toast } from 'sonner'

import { stripSpecBlocks } from '@/lib/render/strip-spec-blocks'
Expand Down
5 changes: 4 additions & 1 deletion components/model-selector-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import { useMemo, useState } from 'react'
import Image from 'next/image'

import { Check, ChevronDown } from 'lucide-react'
import {
IconCheck as Check,
IconChevronDown as ChevronDown
} from '@tabler/icons-react'

import {
MODEL_SELECTION_COOKIE,
Expand Down
6 changes: 5 additions & 1 deletion components/question-confirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import { useState } from 'react'

import { ArrowRight, Check, SkipForward } from 'lucide-react'
import {
IconArrowRight as ArrowRight,
IconCheck as Check,
IconPlayerTrackNext as SkipForward
} from '@tabler/icons-react'

import type { ToolPart } from '@/lib/types/ai'

Expand Down
5 changes: 4 additions & 1 deletion components/research-process-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { useCallback, useState } from 'react'

import type { ReasoningPart } from '@ai-sdk/provider-utils'
import { UseChatHelpers } from '@ai-sdk/react'
import { ChevronDown, Waypoints } from 'lucide-react'
import {
IconChevronDown as ChevronDown,
IconRoute as Waypoints
} from '@tabler/icons-react'

import type { ToolPart, UIDataTypes, UIMessage, UITools } from '@/lib/types/ai'
import type { DynamicToolPart } from '@/lib/types/dynamic-tools'
Expand Down
2 changes: 1 addition & 1 deletion components/retry-button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { RotateCcw } from 'lucide-react'
import { IconRefresh as RotateCcw } from '@tabler/icons-react'

import { Button } from './ui/button'

Expand Down
5 changes: 4 additions & 1 deletion components/search-mode-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import { useEffect, useState, useSyncExternalStore } from 'react'

import { Check, ChevronDown } from 'lucide-react'
import {
IconCheck as Check,
IconChevronDown as ChevronDown
} from '@tabler/icons-react'

import { SEARCH_MODE_CONFIGS } from '@/lib/config/search-modes'
import { SearchMode } from '@/lib/types/search'
Expand Down
2 changes: 1 addition & 1 deletion components/search-results-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
useState
} from 'react'

import { Images } from 'lucide-react'
import { IconPhoto as Images } from '@tabler/icons-react'

import { SearchResultImage } from '@/lib/types'

Expand Down
Loading
Loading