Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Locales: Italian inbox filters and default thread titles
Vincenzo Fabiano0274014864a1
diff --git a/src/components/inbox/FinishedThreads.tsx b/src/components/inbox/FinishedThreads.tsxindex 085a80a676..34b2157c6d 100644--- a/src/components/inbox/FinishedThreads.tsx+++ b/src/components/inbox/FinishedThreads.tsx@@ -7,6 +7,7 @@ import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";import { roomThreadSpeakerId, roomThreadWorking } from "@/lib/room-threads";import { AttentionFace, attentionOwnerName, isOpenThread, openThreadRow, type AttentionThread, type BotFace, type OpenThread } from "../SidebarBotActivity";+import { localizedTaskTitle } from "@/lib/task-title";import { formatUpdatedAt, threadRecency, threadUpdatedLabel } from "../SidebarThreadRow";export const FINISHED_LIMIT = 10;@@ -74,7 +75,8 @@ export function FinishedThreads({ rows, faces, now, current, onOpen }: {{rows.map((row) => {const name = attentionOwnerName(row);const at = threadRecency(row.task);- const label = t("attention.item", { title: row.task.title, name, status: t("inbox.settled.read") });+ const title = localizedTaskTitle(row.task.title);+ const label = t("attention.item", { title, name, status: t("inbox.settled.read") });const open = isOpenThread(row, current);return (<button key={`${row.kind}-${row.kind === "bot" ? row.botId : row.groupId}-${row.task.threadId}`} type="button" aria-label={label} title={label}@@ -82,7 +84,7 @@ export function FinishedThreads({ rows, faces, now, current, onOpen }: {className={cn("flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-[13px] text-ink hover:bg-menu-hover", open && openThreadRow)}><AttentionFace entry={row} faces={faces} Icon={CheckCircle2} iconClass="text-ink-tertiary" /><span className="min-w-0 flex-1">- <span className="block truncate">{row.task.title}</span>+ <span className="block truncate">{title}</span><span className="block truncate text-[11px] text-ink-secondary">{name} · {t("inbox.settled.read")} · <time data-finished-when dateTime={new Date(at).toISOString()} title={formatUpdatedAt(at)}>{threadUpdatedLabel(at, now)}</time></span>diff --git a/src/components/inbox/PinnedThreads.tsx b/src/components/inbox/PinnedThreads.tsxindex 0f01ae2184..e3f0ff694a 100644--- a/src/components/inbox/PinnedThreads.tsx+++ b/src/components/inbox/PinnedThreads.tsx@@ -9,6 +9,7 @@ import {AttentionFace, attentionOwnerName, attentionRowStatus, crossBotPinnedThreads, isOpenThread, openThreadRow,type AttentionThread, type BotFace, type OpenThread,} from "../SidebarBotActivity";+import { localizedTaskTitle } from "@/lib/task-title";import { formatUpdatedAt, threadRecency, threadUpdatedLabel } from "../SidebarThreadRow";/** Pinned conversations from every bot and room, most recently active first, so the label beside a row and the@@ -42,7 +43,8 @@ export function PinnedThreads({ rows, faces, now, current, onOpen, onUnpin }: {const at = threadRecency(row.task);const when = threadUpdatedLabel(at, now);const meta = active ? `${name} · ${status}` : name;- const label = t("sidebar.pinnedThreads.item", { title: row.task.title, name: when ? `${meta} · ${when}` : meta });+ const title = localizedTaskTitle(row.task.title);+ const label = t("sidebar.pinnedThreads.item", { title, name: when ? `${meta} · ${when}` : meta });const open = isOpenThread(row, current);return (<div key={`${row.kind}-${row.kind === "bot" ? row.botId : row.groupId}-${row.task.threadId}`} className="group/pinned flex w-full items-center">@@ -52,7 +54,7 @@ export function PinnedThreads({ rows, faces, now, current, onOpen, onUnpin }: {className={cn("flex min-w-0 flex-1 items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-[13px] text-ink hover:bg-menu-hover", open && openThreadRow)}><AttentionFace entry={row} faces={faces} Icon={active ? Icon : Pin} iconClass={active ? colorClass : "text-ink-tertiary"} /><span className="min-w-0 flex-1">- <span className="block truncate" data-pinned-title>{row.task.title}</span>+ <span className="block truncate" data-pinned-title>{title}</span><span className="block truncate text-[11px] text-ink-secondary">{meta}{when && <> · <time data-pinned-when dateTime={new Date(at).toISOString()} title={formatUpdatedAt(at)}>{when}</time></>}</span>diff --git a/src/locales/it.json b/src/locales/it.jsonindex 76afe9252b..329562435d 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -3472,7 +3472,7 @@"task.newShort": "Nuova conversazione","task.sharedChat": "Chat condivisa","task.untitledConversation": "Nuova conversazione",- "task.untitledChat": "chat senza titolo",+ "task.untitledChat": "Chat senza titolo","task.matching": "{count} conversazioni corrispondenti","task.list": "Conversazioni","task.namedList": "Conversazioni di {name}",