Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): present avibe workbench correctly on dashboard (#450)

Call Whitea9742c04edf6
diff --git a/ui/src/assets/cloud-tuanzi-logo-mono.png b/ui/src/assets/cloud-tuanzi-logo-mono.png
new file mode 100644
index 000000000..f95386dc6
Binary files /dev/null and b/ui/src/assets/cloud-tuanzi-logo-mono.png differ
diff --git a/ui/src/components/Dashboard.tsx b/ui/src/components/Dashboard.tsx
index 15604e812..820ba0f07 100644
--- a/ui/src/components/Dashboard.tsx
+++ b/ui/src/components/Dashboard.tsx
@@ -21,7 +21,12 @@ import { useApi, type LogEntry } from '@/context/ApiContext';
import { useStatus } from '@/context/StatusContext';
import { PlatformIcon } from '@/components/visual';
import { Button } from '@/components/ui/button';
-import { getEnabledPlatforms, getPlatformCatalog, platformSupportsChannels } from '@/lib/platforms';
+import {
+ getEnabledPlatforms,
+ getPlatformCatalog,
+ isWorkbenchPlatform,
+ platformSupportsChannels,
+} from '@/lib/platforms';
function relativeFromIso(value?: string | null) {
if (!value) return null;
@@ -206,13 +211,21 @@ export const Dashboard: React.FC = () => {
const enabled = enabledPlatforms.includes(platform.id);
const supportsGroups = platformSupportsChannels(config, platform.id);
+ // The workbench has no externally-discovered groups, so the group-count
+ // summary is meaningless there — leave the subtitle empty.
+ const hint = isWorkbenchPlatform(platform.id)
+ ? null
+ : supportsGroups
+ ? t('dashboard.platformGroupsHint')
+ .replace('{{active}}', String(activeGroups))
+ .replace('{{discovered}}', String(discoveredGroups))
+ : t('dashboard.platformNoGroupsHint');
+
return {
id: platform.id,
title: t(platform.title_key || `platform.${platform.id}.title`),
enabled,
- supportsGroups,
- activeGroups,
- discoveredGroups,
+ hint,
actionHref: supportsGroups ? '/admin/groups' : '/settings/platforms',
actionLabel: supportsGroups ? t('dashboard.manageRoute') : t('dashboard.configure'),
};
@@ -433,13 +446,9 @@ export const Dashboard: React.FC = () => {
</div>
<div className="flex min-w-0 flex-col gap-0.5">
<div className="text-[13px] font-semibold text-foreground">{platform.title}</div>
- <div className="text-[11px] text-muted">
- {platform.supportsGroups
- ? t('dashboard.platformGroupsHint')
- .replace('{{active}}', String(platform.activeGroups))
- .replace('{{discovered}}', String(platform.discoveredGroups))
- : t('dashboard.platformNoGroupsHint')}
- </div>
+ {platform.hint && (
+ <div className="text-[11px] text-muted">{platform.hint}</div>
+ )}
</div>
</div>
<div className="flex items-center gap-3">
diff --git a/ui/src/components/visual/PlatformIcon.tsx b/ui/src/components/visual/PlatformIcon.tsx
index 2b50e3006..b87db559c 100644
--- a/ui/src/components/visual/PlatformIcon.tsx
+++ b/ui/src/components/visual/PlatformIcon.tsx
@@ -1,5 +1,6 @@
import * as React from 'react';
import { cn } from '@/lib/utils';
+import avibeLogo from '@/assets/cloud-tuanzi-logo-mono.png';
export type PlatformId = 'slack' | 'discord' | 'telegram' | 'lark' | 'wechat' | string;
@@ -100,6 +101,16 @@ const renderInner = (platform: string, size: number) => {
return <LarkSvg size={size} />;
case 'wechat':
return <WeChatSvg size={size} />;
+ case 'avibe':
+ return (
+ <img
+ src={avibeLogo}
+ alt=""
+ width={size}
+ height={size}
+ className="object-contain"
+ />
+ );
default:
return (
<span className="font-mono text-[10px] font-bold uppercase tracking-wider">
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index aa1c9b4dd..06d9d84aa 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -712,6 +712,10 @@
"wechat": {
"title": "WeChat",
"desc": "Connect to WeChat personal messaging via iLink bot"
+ },
+ "avibe": {
+ "title": "Avibe Workbench",
+ "desc": "Chat with your agents directly in this local web workbench."
}
},
"discordConfig": {
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index 98d878609..70ec065e7 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -712,6 +712,10 @@
"wechat": {
"title": "微信",
"desc": "通过微信扫码连接微信Bot"
+ },
+ "avibe": {
+ "title": "Avibe Workbench",
+ "desc": "在本机网页工作台里直接和你的 Agent 对话。"
}
},
"discordConfig": {
diff --git a/ui/src/lib/platforms.ts b/ui/src/lib/platforms.ts
index dd3f32083..d7ea3aad9 100644
--- a/ui/src/lib/platforms.ts
+++ b/ui/src/lib/platforms.ts
@@ -27,6 +27,15 @@ export type PlatformDescriptor = {
capabilities?: PlatformCapabilities;
};
+// The local Vibe Remote web workbench, surfaced as a peer platform so it shares
+// scopes / agent_sessions / routing machinery with Slack/Discord/etc. It has no
+// remote credentials and no externally-discovered groups, so UI surfaces treat
+// it differently (e.g. it shows no group-count summary).
+export const WORKBENCH_PLATFORM_ID = 'avibe';
+
+export const isWorkbenchPlatform = (platform: string): boolean =>
+ platform === WORKBENCH_PLATFORM_ID;
+
const LEGACY_FALLBACK_CATALOG: PlatformDescriptor[] = [
{
id: 'slack',