🐛 parse PDF

This commit is contained in:
2026-02-27 12:54:23 +10:00
parent 70f3b6337f
commit 00a44191df
6 changed files with 98 additions and 22 deletions

View File

@@ -28,6 +28,7 @@ export function ChatPanel(): JSX.Element {
} = useEditorStore()
const [tab, setTab] = useState<TabId>('chat')
const [pendingAttachmentCount, setPendingAttachmentCount] = useState(0)
const scrollRef = useRef<HTMLDivElement>(null)
const prevAnnotationCountRef = useRef(annotations.length)
@@ -122,6 +123,14 @@ export function ChatPanel(): JSX.Element {
)}
</div>
{/* ── Pending-attachment indicator ── */}
{pendingAttachmentCount > 0 && (
<div className="chat-attachment-indicator">
<span className="chat-attachment-indicator-icon"></span>
{pendingAttachmentCount} file{pendingAttachmentCount !== 1 ? 's' : ''} attached to next message
</div>
)}
{/* ── Panel content ── */}
{tab === 'feedback' ? (
<FeedbackPanel />
@@ -151,7 +160,11 @@ export function ChatPanel(): JSX.Element {
)}
</div>
<ChatInput onSend={sendMessage} disabled={!hasFile || isAILoading} />
<ChatInput
onSend={sendMessage}
onAttachmentsChange={setPendingAttachmentCount}
disabled={!hasFile || isAILoading}
/>
</>
)}
</div>