Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(chats): mark voice and typed chats apart in the history

rubenluetke10-beep516c40ce9288
diff --git a/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx b/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx
index 1350bd23c6..bbc509f454 100644
--- a/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
import * as Dialog from "@radix-ui/react-dialog";
import { Search, Trash2, X } from "lucide-react";
+import { ChatKindMark } from "@/components/home/ChatKindMark";
import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
import {
@@ -221,7 +222,6 @@ function ArchiveRow({
onDelete?: () => void;
}) {
const t = useT();
- const isVoice = row.kind === "voice";
const label = chatRowLabel(row, t);
const title = label.text;
const preview = row.preview && row.preview !== title ? row.preview : "";
@@ -239,6 +239,7 @@ function ArchiveRow({
active ? "bg-background/80" : "hover:bg-background/50",
)}
>
+ <ChatKindMark kind={row.kind} active={active} className="mt-px" />
<span className="min-w-0 flex-1">
<span
className={cn(
@@ -252,10 +253,7 @@ function ArchiveRow({
<span className="mt-0.5 block truncate text-xs text-muted-foreground">{preview}</span>
)}
</span>
- {/* The kind is said in words, once, beside the time — not as a glyph
- on every row. A topicless voice chat already names it. */}
<span className="mt-0.5 shrink-0 pr-6 text-micro tabular-nums text-muted-foreground">
- {isVoice && !label.untitled && `${t("all_chats.filter_voice")} · `}
{formatChatWhen(row.updatedMs)}
</span>
</button>
diff --git a/jarvis/ui/web/frontend/src/components/home/ChatKindMark.tsx b/jarvis/ui/web/frontend/src/components/home/ChatKindMark.tsx
new file mode 100644
index 0000000000..09424c655a
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/home/ChatKindMark.tsx
@@ -0,0 +1,39 @@
+import { AudioLines } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import type { ChatRow } from "@/components/home/chatRows";
+
+/**
+ * The small mark in front of a history row that says what kind of chat it is:
+ * an open ring for a typed chat, sound bars for a voice chat — the same bars
+ * the composer's voice button wears. Both sit in one 14 px box in the same
+ * muted tone, the way the Claude app marks its chat and code sessions, so the
+ * column reads as one list with two clearly different kinds in it.
+ */
+export function ChatKindMark({
+ kind,
+ active = false,
+ className,
+}: {
+ kind: ChatRow["kind"];
+ active?: boolean;
+ className?: string;
+}) {
+ return (
+ <span
+ aria-hidden
+ data-kind-mark={kind}
+ className={cn(
+ "flex h-3.5 w-3.5 shrink-0 items-center justify-center",
+ active ? "text-foreground" : "text-muted-foreground",
+ className,
+ )}
+ >
+ {kind === "voice" ? (
+ <AudioLines className="h-3.5 w-3.5" strokeWidth={1.75} />
+ ) : (
+ <span className="h-[7px] w-[7px] rounded-full border-[1.5px] border-current" />
+ )}
+ </span>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/components/home/RecentChats.test.tsx b/jarvis/ui/web/frontend/src/components/home/RecentChats.test.tsx
index 8322470a19..9726781e05 100644
--- a/jarvis/ui/web/frontend/src/components/home/RecentChats.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/RecentChats.test.tsx
@@ -106,14 +106,17 @@ describe("RecentChats", () => {
]);
});
- it("lists chats as plain titles and names a topicless voice chat by its kind", async () => {
+ it("marks voice and typed chats apart and names a topicless voice chat by its kind", async () => {
useEventStore.setState({
conversations: [...CONVERSATIONS, { ...row("voice", "v2", ""), preview: "Hallo" }],
});
render(<RecentChats />);
- // No per-row glyphs: the title is the row.
+ // Every row carries exactly one kind mark: sound bars for voice, a ring for typed.
for (const item of screen.getAllByTestId("recent-chat-row")) {
- expect(item.querySelector("svg")).toBeNull();
+ const marks = item.querySelectorAll("[data-kind-mark]");
+ expect(marks).toHaveLength(1);
+ expect(marks[0].getAttribute("data-kind-mark")).toBe(item.getAttribute("data-kind"));
+ expect(item.querySelectorAll("svg")).toHaveLength(item.getAttribute("data-kind") === "voice" ? 1 : 0);
}
const voice = screen.getByRole("button", { name: "Voice: Spoken thread" });
expect(voice.getAttribute("data-kind")).toBe("voice");
diff --git a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
index f57208ba3b..abb2411111 100644
--- a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
@@ -5,6 +5,7 @@ import { useAgentChatStore } from "@/store/agentChat";
import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
import { AllChatsDialog } from "@/components/home/AllChatsDialog";
+import { ChatKindMark } from "@/components/home/ChatKindMark";
import { chatRowLabel, useChatRows, type ChatRow } from "@/components/home/chatRows";
import { CONVERSATIONS_REFRESH_MS } from "@/hooks/useConversations";
@@ -133,16 +134,18 @@ function ChatRowItem({
data-testid="recent-chat-row"
data-kind={row.kind}
className={cn(
- "flex h-8 w-full items-center rounded-lg px-3 text-left transition-colors group-hover:pr-16 group-focus-within:pr-16",
+ "flex h-8 w-full items-center gap-2.5 rounded-lg px-3 text-left transition-colors group-hover:pr-16 group-focus-within:pr-16",
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
// The open one wears the same accent edge as the active nav row, so
// "where am I" is said in one voice all the way down the column.
active ? "jarvis-nav-active bg-secondary text-foreground-strong" : "text-foreground hover:bg-secondary",
)}
>
- {/* Text only, the way the Claude and ChatGPT columns list chats: one
- glyph repeated on every row is noise, not information. A chat with
- no topic says what it was ("Voice chat · 09:42"), in a quieter tone. */}
+ {/* One small mark says which kind of chat this is — a ring for typed,
+ sound bars for voice — in one box and one muted tone, the way the
+ Claude app tells its chat and code sessions apart. A chat with no
+ topic says what it was ("Voice chat · 09:42"), in a quieter tone. */}
+ <ChatKindMark kind={row.kind} active={active} />
<span
className={cn(
"min-w-0 flex-1 truncate text-base leading-5",