feat(ui): add Basic Chat interface for testing models
Add a simple chat UI to the dashboard for quickly testing AI models from connected providers. Features include: - Model picker from all connected providers - Streaming chat responses - Image attachment support - Session history with localStorage persistence - Responsive design with dark theme Note: Removed build.sh from original PR as it contained syntax errors and was unrelated to the chat UI feature. Co-authored-by: Nguyễn Trung Hiếu <140531897+bonelag@users.noreply.github.com> Made-with: Cursor
This commit is contained in:
committed by
decolua
parent
01e4a28f0a
commit
6b0cced884
@@ -93,8 +93,8 @@ export default function DashboardLayout({ children }) {
|
||||
{/* Main content */}
|
||||
<main className="flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300">
|
||||
<Header key={pathname} onMenuClick={() => setSidebarOpen(true)} />
|
||||
<div className="flex-1 overflow-y-auto custom-scrollbar p-6 lg:p-10">
|
||||
<div className="max-w-7xl mx-auto">{children}</div>
|
||||
<div className={`flex-1 overflow-y-auto custom-scrollbar ${pathname === "/dashboard/basic-chat" ? "" : "p-6 lg:p-10"} ${pathname === "/dashboard/basic-chat" ? "flex flex-col overflow-hidden" : ""}`}>
|
||||
<div className={`${pathname === "/dashboard/basic-chat" ? "flex-1 w-full h-full flex flex-col" : "max-w-7xl mx-auto"}`}>{children}</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user