Skip to content

feat(frontend): frontend update interactive chat UI #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Mar 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
55f731d
fix: update GraphQL mutation input type and clean up comments and add…
NarwhalChen Feb 27, 2025
f9b51a5
fix: fixing some bugs
NarwhalChen Mar 9, 2025
96eef24
fix: fix typewritter bug
NarwhalChen Mar 9, 2025
8df0262
fix: update nullable fields in chat models and improve stream handlin…
NarwhalChen Mar 9, 2025
8912aa8
Merge branch 'main' into feat-frontend-interactive-chat
NarwhalChen Mar 14, 2025
f9daff6
Merge branch 'main' into feat-frontend-interactive-chat
NarwhalChen Mar 17, 2025
e135500
feat: adding interactive chat and update chatstream
NarwhalChen Mar 17, 2025
0090d22
refactor(backend): remove redundant message saving in chat controller
NarwhalChen Mar 17, 2025
fddbe0b
feat(frontend): add refreshProjects function to managerAgent and useC…
NarwhalChen Mar 17, 2025
51728e2
feat(frontend): implement saveThinkingProcess helper and update messa…
NarwhalChen Mar 17, 2025
75af9cb
feat(frontend): enhance managerAgent to accumulate and save thoughts …
NarwhalChen Mar 18, 2025
cc4366a
feat(frontend): enhance saveThinkingProcess to support typewriter eff…
NarwhalChen Mar 18, 2025
38bb87f
feat(frontend): update saveThinkingProcess to append newlines for con…
NarwhalChen Mar 18, 2025
2306999
feat(frontend): add editorRef and setFilePath to context and update r…
NarwhalChen Mar 18, 2025
f56ce7d
feat(frontend): enhance editFileTool to parse JSON strings and store …
NarwhalChen Mar 18, 2025
90df595
feat(frontend): update CodeEngine to send unescaped content in newCon…
NarwhalChen Mar 18, 2025
e4f66ec
feat(frontend): add UNRELATED task type to categorize non-technical r…
NarwhalChen Mar 18, 2025
464d0ea
feat(frontend): refactor task type handling in managerAgent and agent…
NarwhalChen Mar 18, 2025
57e4b23
feat(frontend): enhance task analysis and validation in managerAgent …
NarwhalChen Mar 18, 2025
c40e23a
feat(frontend): add action buttons for assistant messages in chat lis…
NarwhalChen Mar 20, 2025
143828f
feat(frontend): implement summary tool for generating final response …
NarwhalChen Mar 20, 2025
493d404
feat(frontend): add thinking process state management to chat components
NarwhalChen Mar 20, 2025
f3e16d9
feat(frontend): update chat components to use string type for thinkin…
NarwhalChen Mar 20, 2025
5775217
feat(frontend): enhance thinking process management with temporary ID…
NarwhalChen Mar 21, 2025
cc64e3c
feat(frontend): enhance chat components with improved Markdown render…
NarwhalChen Mar 21, 2025
e7b2935
refactor(frontend): remove console logs for cleaner code and improved…
NarwhalChen Mar 21, 2025
65beace
Merge branch 'feat-frontend-interactive-chat' into feat-frontend-upda…
NarwhalChen Mar 21, 2025
f26d1d6
feat(frontend): add error handling with toast notifications in manage…
NarwhalChen Mar 21, 2025
91e9b87
Merge branch 'feat-frontend-interactive-chat' into feat-frontend-upda…
NarwhalChen Mar 21, 2025
2913547
Merge branch 'main' into feat-frontend-update-interactive-chat-ui
NarwhalChen Mar 22, 2025
1f796bd
Merge branch 'main' into feat-frontend-update-interactive-chat-ui
Sma1lboy Mar 22, 2025
b9317dd
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 22, 2025
a93023b
fix: update GraphQL mutation input type and clean up comments and add…
NarwhalChen Feb 27, 2025
a4267d4
fix: fixing some bugs
NarwhalChen Mar 9, 2025
7e55673
fix: update nullable fields in chat models and improve stream handlin…
NarwhalChen Mar 9, 2025
40b6f63
feat: adding interactive chat and update chatstream
NarwhalChen Mar 17, 2025
342c1c6
feat(frontend): add thinking process state management to chat components
NarwhalChen Mar 20, 2025
7fa319e
refactor(frontend): remove console logs for cleaner code and improved…
NarwhalChen Mar 21, 2025
6805697
fix(backend): backend linting issue (#204)
Sma1lboy Mar 22, 2025
a6fefcc
fix (environment): linux eslint build format issue (#203)
PengyuChen01 Mar 22, 2025
7f9d4d3
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 22, 2025
24e8ce5
Merge branch 'feat-frontend-update-interactive-chat-ui' of https://gi…
NarwhalChen Mar 22, 2025
e94d501
Update schema.gql
NarwhalChen Mar 22, 2025
2ff7132
Merge branch 'main' into feat-frontend-update-interactive-chat-ui
NarwhalChen Mar 22, 2025
f6a4595
refactor: remove console logs and update GraphQL schema formatting
NarwhalChen Mar 22, 2025
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
18 changes: 16 additions & 2 deletions frontend/src/components/chat/chat-bottombar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { motion, AnimatePresence } from 'framer-motion';
import TextareaAutosize from 'react-textarea-autosize';
import { PaperclipIcon, Send, X } from 'lucide-react';
import { cn } from '@/lib/utils';
import { ChatProps } from './chat-panel';
import { Message } from '../../const/MessageType';
import Image from 'next/image';
import {
Tooltip,
Expand All @@ -13,14 +13,28 @@ import {
TooltipTrigger,
} from '@/components/ui/tooltip';

interface ChatBottombarProps {
messages: Message[];
input: string;
handleInputChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
stop: () => void;
formRef: React.RefObject<HTMLFormElement>;
setInput?: React.Dispatch<React.SetStateAction<string>>;
setMessages: (messages: Message[]) => void;
setSelectedModel: React.Dispatch<React.SetStateAction<string>>;
}

export default function ChatBottombar({
messages,
input,
handleInputChange,
handleSubmit,
formRef,
setInput,
}: ChatProps) {
setMessages,
setSelectedModel,
}: ChatBottombarProps) {
const [isMobile, setIsMobile] = useState(false);
const [isFocused, setIsFocused] = useState(false);
const [attachments, setAttachments] = useState<File[]>([]);
Expand Down
Loading
Loading