Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
merge: resolve conflict with main (lucide-react migration)
Jiang Bohanece00cac2bad
diff --cc packages/ui/src/components/chat-input.tsxindex 9219e17764,2f279d272a..b69365938f--- a/packages/ui/src/components/chat-input.tsx+++ b/packages/ui/src/components/chat-input.tsx@@@ -4,8 -4,7 +4,7 @@@ import { useEditor, EditorContent } froimport StarterKit from "@tiptap/starter-kit";import Placeholder from "@tiptap/extension-placeholder";import { Button } from "@multica/ui/components/ui/button";- import { ArrowUp02Icon, StopIcon } from "@hugeicons/core-free-icons";- import { HugeiconsIcon } from "@hugeicons/react";-import { ArrowUp } from "lucide-react";++import { ArrowUp, Square } from "lucide-react";import { cn } from "@multica/ui/lib/utils";import "./chat-input.css";@@@ -18,14 -17,14 +17,16 @@@ export interface ChatInputRefinterface ChatInputProps {onSubmit?: (value: string) => void;+ onAbort?: () => void;+ isLoading?: boolean;disabled?: boolean;placeholder?: string;+ /** Initial value to pre-fill the input */+ defaultValue?: string;}export const ChatInput = forwardRef<ChatInputRef, ChatInputProps>(- function ChatInput({ onSubmit, onAbort, isLoading, disabled, placeholder = "Type a message..." }, ref) {- function ChatInput({ onSubmit, disabled, placeholder = "Type a message...", defaultValue }, ref) {++ function ChatInput({ onSubmit, onAbort, isLoading, disabled, placeholder = "Type a message...", defaultValue }, ref) {// Use ref to avoid stale closure in Tiptap keydown handlerconst onSubmitRef = useRef(onSubmit);onSubmitRef.current = onSubmit;@@@ -128,8 -125,8 +137,8 @@@)}><EditorContent className="min-h-12" editor={editor} /><div className="flex items-center justify-end pt-2">- <Button size="icon" onClick={handleSubmit} disabled={disabled}>- <ArrowUp />+ <Button size="icon" onClick={handleButtonClick} disabled={disabled && !showStop}>- <HugeiconsIcon strokeWidth={2.5} icon={showStop ? StopIcon : ArrowUp02Icon} />++ {showStop ? <Square className="size-4 fill-current" /> : <ArrowUp />}</Button></div></div>diff --cc packages/ui/src/components/chat-view.tsxindex c18fbd1a01,83943f73af..37abaff67b--- a/packages/ui/src/components/chat-view.tsx+++ b/packages/ui/src/components/chat-view.tsx@@@ -259,10 -260,9 +262,11 @@@ export function ChatView(<footer className="container px-4 pb-3 pt-1"><ChatInputonSubmit={sendMessage}- disabled={isLoading || (!!error && error.code !== 'AGENT_ERROR')}+ onAbort={onAbort}+ isLoading={isLoading}+ disabled={!!error && error.code !== 'AGENT_ERROR'}placeholder={error && error.code !== 'AGENT_ERROR' ? "Connection error" : "Ask your Agent..."}+ defaultValue={initialPrompt}/></footer></div>