Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| import Link from 'next/link'; | ||
| import Spline from '@splinetool/react-spline/next'; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <main className="relative h-screen w-screen"> | ||
| <Spline scene="https://prod.spline.design/DS0UgrDOifhNt9T6/scene.splinecode" /> | ||
| <div className="absolute inset-0 flex items-end justify-center pb-10"> | ||
| <Link | ||
| href="/chat" | ||
| className="px-6 py-3 rounded-lg bg-[var(--deep-sea-green)] text-white" | ||
| > | ||
| Try Demo | ||
| </Link> | ||
| </div> | ||
| </main> | ||
| ); |
There was a problem hiding this comment.
[P1] Update internal links after moving chat to /chat
Adding app/page.tsx turns / into a landing page while the chat UI now lives under /chat. However, buttons such as the sidebar logo and the “New Chat” actions still call router.push('/') (e.g., components/app-sidebar.tsx, components/chat-header.tsx, and components/sidebar-history.tsx). After this change those controls route users back to the landing screen instead of opening a fresh chat session, effectively breaking the “new chat” flow and redirecting away from the actual chat interface. Consider updating these internal links to point to /chat so the chat controls continue to work.
Useful? React with 👍 / 👎.
Summary
Testing
pnpm lintpnpm test(fails: This module cannot be imported from a Client Component module)https://chatgpt.com/codex/tasks/task_e_68b2b50f787c8324b985ee528fec5e95