Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat(chat): add empty state for new chats — subtle SVG illustration + prompt text

Gabriel Stein95093e66adde
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsx
index bf905e8fc..91f0f15fb 100644
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@ -14,6 +14,52 @@ const CommandSearch = lazy(() => import("../CommandSearch"));
const platform = getCachedPlatform();
+function NewChatEmptyState() {
+ const { t } = useTranslation();
+ return (
+ <div className="flex flex-col items-center justify-center h-full -mt-6 select-none">
+ <svg
+ className="text-foreground dark:text-white mb-4"
+ width="56"
+ height="48"
+ viewBox="0 0 56 48"
+ fill="none"
+ >
+ <rect
+ x="4"
+ y="6"
+ width="36"
+ height="24"
+ rx="4"
+ fill="currentColor"
+ fillOpacity={0.04}
+ stroke="currentColor"
+ strokeOpacity={0.08}
+ />
+ <rect x="10" y="13" width="18" height="2" rx="1" fill="currentColor" fillOpacity={0.06} />
+ <rect x="10" y="18" width="24" height="2" rx="1" fill="currentColor" fillOpacity={0.04} />
+ <rect x="10" y="23" width="14" height="2" rx="1" fill="currentColor" fillOpacity={0.03} />
+ <rect
+ x="16"
+ y="18"
+ width="36"
+ height="24"
+ rx="4"
+ fill="currentColor"
+ fillOpacity={0.03}
+ stroke="currentColor"
+ strokeOpacity={0.06}
+ />
+ <rect x="22" y="25" width="18" height="2" rx="1" fill="currentColor" fillOpacity={0.05} />
+ <rect x="22" y="30" width="24" height="2" rx="1" fill="currentColor" fillOpacity={0.03} />
+ </svg>
+ <p className="text-xs text-foreground/50 dark:text-foreground/25 text-center max-w-48">
+ {t("chat.newChatEmpty")}
+ </p>
+ </div>
+ );
+}
+
export default function ChatView() {
const { t } = useTranslation();
const [activeConversationId, setActiveConversationId] = useState<number | null>(null);
@@ -153,7 +199,7 @@ export default function ChatView() {
<div className="flex-1 min-w-80 flex flex-col">
{hasActiveChat ? (
<>
- <ChatMessages messages={persistence.messages} />
+ <ChatMessages messages={persistence.messages} emptyState={<NewChatEmptyState />} />
<ChatInput
agentState={streaming.agentState}
partialTranscript=""
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index abe741e60..0cb71d8a9 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "Ohne Titel",
"searchChats": "Chats suchen",
"searchTitle": "Unterhaltungen suchen",
- "searchDescription": "In allen Unterhaltungen suchen"
+ "searchDescription": "In allen Unterhaltungen suchen",
+ "newChatEmpty": "Starten Sie ein Gespräch"
},
"usage": {
"approachingLimit": "Wochenlimit fast erreicht",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index d2bd37535..ce217c6ae 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1545,7 +1545,8 @@
"untitled": "Untitled",
"searchChats": "Search chats",
"searchTitle": "Search conversations",
- "searchDescription": "Search across all your conversations"
+ "searchDescription": "Search across all your conversations",
+ "newChatEmpty": "Start a conversation"
},
"referral": {
"title": "Refer and earn rewards",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 989d6b146..afa7dddc4 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "Sin título",
"searchChats": "Buscar chats",
"searchTitle": "Buscar conversaciones",
- "searchDescription": "Buscar en todas tus conversaciones"
+ "searchDescription": "Buscar en todas tus conversaciones",
+ "newChatEmpty": "Inicia una conversación"
},
"usage": {
"approachingLimit": "Cerca del límite semanal",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index a4ee5dccc..804f837fc 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1497,7 +1497,8 @@
"untitled": "Sans titre",
"searchChats": "Rechercher",
"searchTitle": "Rechercher des conversations",
- "searchDescription": "Rechercher dans toutes vos conversations"
+ "searchDescription": "Rechercher dans toutes vos conversations",
+ "newChatEmpty": "Démarrez une conversation"
},
"referral": {
"title": "Parrainez et gagnez des récompenses",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index f0cb491c1..bc3c280ea 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "Senza titolo",
"searchChats": "Cerca chat",
"searchTitle": "Cerca conversazioni",
- "searchDescription": "Cerca in tutte le conversazioni"
+ "searchDescription": "Cerca in tutte le conversazioni",
+ "newChatEmpty": "Avvia una conversazione"
},
"usage": {
"approachingLimit": "Limite settimanale quasi raggiunto",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index ca31eeaf8..cc81e1e87 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "無題",
"searchChats": "チャットを検索",
"searchTitle": "会話を検索",
- "searchDescription": "すべての会話を検索"
+ "searchDescription": "すべての会話を検索",
+ "newChatEmpty": "会話を始めましょう"
},
"usage": {
"approachingLimit": "週間制限に近づいています",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 4c50ae161..75f2a1c93 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "Sem título",
"searchChats": "Pesquisar chats",
"searchTitle": "Pesquisar conversas",
- "searchDescription": "Pesquisar em todas as conversas"
+ "searchDescription": "Pesquisar em todas as conversas",
+ "newChatEmpty": "Inicie uma conversa"
},
"usage": {
"approachingLimit": "Próximo do limite semanal",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 2e7d53b4f..f099b593a 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "Без названия",
"searchChats": "Поиск чатов",
"searchTitle": "Поиск бесед",
- "searchDescription": "Поиск по всем беседам"
+ "searchDescription": "Поиск по всем беседам",
+ "newChatEmpty": "Начните разговор"
},
"usage": {
"approachingLimit": "Приближается недельный лимит",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index a5888ac01..01e7da396 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "无标题",
"searchChats": "搜索聊天",
"searchTitle": "搜索对话",
- "searchDescription": "搜索所有对话"
+ "searchDescription": "搜索所有对话",
+ "newChatEmpty": "开始对话"
},
"usage": {
"approachingLimit": "即将达到周限额",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 7ed0010f7..7ae22a132 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1757,7 +1757,8 @@
"untitled": "無標題",
"searchChats": "搜尋聊天",
"searchTitle": "搜尋對話",
- "searchDescription": "搜尋所有對話"
+ "searchDescription": "搜尋所有對話",
+ "newChatEmpty": "開始對話"
},
"usage": {
"approachingLimit": "即將達到每週上限",