Skip to content

Commit 45033c7

Browse files
committed
PDF fix
1 parent dee1d7f commit 45033c7

9 files changed

Lines changed: 564 additions & 57 deletions

File tree

app/page.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
"use client";
2+
// This file will now redirect to the latest or default conversation, or show a landing page.
3+
// The main chat UI will be moved to app/chat/[id]/page.tsx
4+
25
import Sidebar from '@/components/chat/sidebar'
36
import ChatArea from '@/components/chat/chat-area'
47
import Header from '@/components/layout/header'
58
import Footer from '@/components/layout/footer'
69
import { useState } from 'react'
7-
import type { Metadata } from 'next'
8-
9-
// PHASE 5: Together.AI model selection and chat integration in progress
10-
11-
// This file will now redirect to the latest or default conversation, or show a landing page.
12-
// The main chat UI will be moved to app/chat/[id]/page.tsx
13-
14-
export const metadata: Metadata = {
15-
title: 'ChatGPT Clone – Chat',
16-
description: 'Chat with AI in a beautiful, modern dark UI. Powered by Next.js and Supabase.'
17-
}
1810

1911
export default function ChatPage() {
2012
const [sidebarOpen, setSidebarOpen] = useState(true)

components/chat/chat-input.tsx

Lines changed: 202 additions & 44 deletions
Large diffs are not rendered by default.

components/chat/sidebar-footer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import { useEffect, useState } from 'react'
24
import useSWR from 'swr'
35
import { usePremiumQueryCountStore } from '@/hooks/use-premium-query-count-store'

components/chat/sidebar-header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { LucidePlus, Menu } from 'lucide-react'
23
import { useCreateConversation } from '@/hooks/use-create-conversation'
34
import { useActiveConversation } from '@/hooks/use-active-conversation'

components/chat/sidebar-item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import React, { useState, useRef, useEffect } from 'react'
23
import { MessageSquare, MoreHorizontal, Pencil, Trash2 } from 'lucide-react'
34
import { useActiveConversation } from '@/hooks/use-active-conversation'

components/chat/sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client";
12
import { useState } from 'react'
23
import SidebarHeader from './sidebar-header'
34
import SidebarList from './sidebar-list'

0 commit comments

Comments
 (0)