From 70c243c6fae03fe9fe097e7aaf65b2069810a125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Sun, 26 Jul 2026 12:35:48 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=A4=96=20wire=20=C3=87elebi=20pan?= =?UTF-8?q?el=20to=20chatbot=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the chatbot API layer (create thread, send message, poll message by id) and connects the panel to it: async send, pending/failed/ truncated message states, per-message polling with cleanup. Also carries the pre-existing inert-on-open SidePanel fix, empty/unavailable copy updates, and the favicon link. Pre-existing work already in the tree before this session started; committed as its own baseline so the subsequent layout fix is a clean, reviewable diff on top. --- index.html | 1 + public/favicon.svg | 5 + src/api/__tests__/chatbot/chatbot.test.ts | 33 ++++++ src/api/chatbot/getChatbotMessageById.ts | 8 ++ src/api/chatbot/index.ts | 4 + src/api/chatbot/postChatbotMessage.ts | 9 ++ src/api/chatbot/postChatbotThread.ts | 6 + src/api/chatbot/types.ts | 25 ++++ src/components/layout/celebi-panel.tsx | 134 +++++++++++++++++----- src/components/ui/side-panel.tsx | 22 +++- src/i18n/messages.ts | 8 +- 11 files changed, 221 insertions(+), 34 deletions(-) create mode 100644 public/favicon.svg create mode 100644 src/api/__tests__/chatbot/chatbot.test.ts create mode 100644 src/api/chatbot/getChatbotMessageById.ts create mode 100644 src/api/chatbot/index.ts create mode 100644 src/api/chatbot/postChatbotMessage.ts create mode 100644 src/api/chatbot/postChatbotThread.ts create mode 100644 src/api/chatbot/types.ts diff --git a/index.html b/index.html index 1ff238b..f5970f1 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ + Hezarfen