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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(ui): replace hardcoded palette with theme tokens
cyh82d3c95883db
diff --git a/ui/src/components/RemoteAccess.tsx b/ui/src/components/RemoteAccess.tsxindex e412a779d..f85227a03 100644--- a/ui/src/components/RemoteAccess.tsx+++ b/ui/src/components/RemoteAccess.tsx@@ -1,12 +1,12 @@import React, { useEffect, useState } from 'react';-import { AlertTriangle, CheckCircle2, ExternalLink, KeyRound, Link2, Power, RefreshCcw, ShieldCheck } from 'lucide-react';+import { CheckCircle2, ExternalLink, Link2, RefreshCcw } from 'lucide-react';import { Trans, useTranslation } from 'react-i18next';import { useApi } from '../context/ApiContext';import { useToast } from '../context/ToastContext';const VIBE_CLOUD_URL = 'https://avibe.bot';-export const RemoteAccess: React.FC<{ embedded?: boolean }> = ({ embedded = false }) => {+export const RemoteAccess: React.FC = () => {const { t } = useTranslation();const api = useApi();const { showToast } = useToast();@@ -113,328 +113,147 @@ export const RemoteAccess: React.FC<{ embedded?: boolean }> = ({ embedded = falsconst paired = Boolean(status?.paired);const running = Boolean(status?.running);const showPairingForm = !paired || reconfiguring;- const legacyNestedHostname = typeof publicUrl === 'string' && publicUrl.includes('.remote.avibe.bot');const connectorState = status?.pid_state === 'unknown'? t('remoteAccess.stateNeedsAttention'): running? t('common.running'): t('common.stopped');- if (embedded) {- return (- <section className="overflow-hidden rounded-md border border-border bg-surface-2/45">- <div className="flex items-start justify-between gap-4 border-b border-border px-4 py-3">- <div className="min-w-0 space-y-2">- <h2 className="text-[13px] font-semibold text-foreground">{t('remoteAccess.title')}</h2>- <p className="max-w-2xl text-[11px] leading-relaxed text-muted">- <Trans- i18nKey="remoteAccess.subtitleWithLink"- components={{- cloud: (- <a- href={VIBE_CLOUD_URL}- target="_blank"- rel="noreferrer"- className="inline-flex items-center gap-0.5 font-medium text-cyan hover:underline"- />- ),- }}- />- </p>- <ol className="ml-4 list-decimal space-y-1 text-[11px] leading-relaxed text-muted">- <li>{t('remoteAccess.flowStep1')}</li>- <li>{t('remoteAccess.flowStep2')}</li>- <li>{t('remoteAccess.flowStep3')}</li>- </ol>- </div>- <button- className="inline-flex h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md border border-border bg-surface-3 px-3 text-[12px] text-foreground transition hover:border-border-strong"- onClick={refresh}- type="button"- >- <RefreshCcw className="size-3.5" />- {t('common.refresh')}- </button>+ return (+ <section className="overflow-hidden rounded-md border border-border bg-surface-2/45">+ <div className="flex items-start justify-between gap-4 border-b border-border px-4 py-3">+ <div className="min-w-0 space-y-2">+ <h2 className="text-[13px] font-semibold text-foreground">{t('remoteAccess.title')}</h2>+ <p className="max-w-2xl text-[11px] leading-relaxed text-muted">+ <Trans+ i18nKey="remoteAccess.subtitleWithLink"+ components={{+ cloud: (+ <a+ href={VIBE_CLOUD_URL}+ target="_blank"+ rel="noreferrer"+ className="inline-flex items-center gap-0.5 font-medium text-cyan hover:underline"+ />+ ),+ }}+ />+ </p>+ <ol className="ml-4 list-decimal space-y-1 text-[11px] leading-relaxed text-muted">+ <li>{t('remoteAccess.flowStep1')}</li>+ <li>{t('remoteAccess.flowStep2')}</li>+ <li>{t('remoteAccess.flowStep3')}</li>+ </ol></div>+ <button+ className="inline-flex h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md border border-border bg-surface-3 px-3 text-[12px] text-foreground transition hover:border-border-strong"+ onClick={refresh}+ type="button"+ >+ <RefreshCcw className="size-3.5" />+ {t('common.refresh')}+ </button>+ </div>- <div className="grid border-b border-border md:grid-cols-3">- <div className="border-b border-border px-4 py-3 md:border-b-0 md:border-r">- <div className="text-[11px] text-muted">{t('remoteAccess.paired')}</div>- <div className="mt-1 text-[13px] font-medium text-foreground">{paired ? t('common.enabled') : t('common.disabled')}</div>- </div>- <div className="border-b border-border px-4 py-3 md:border-b-0 md:border-r">- <div className="text-[11px] text-muted">{t('remoteAccess.connector')}</div>- <div className="mt-1 text-[13px] font-medium text-foreground">{loading ? t('common.loading') : connectorState}</div>- </div>- <div className="px-4 py-3">- <div className="text-[11px] text-muted">{t('remoteAccess.vibeCloudService')}</div>- <a className="mt-1 inline-flex text-[13px] font-medium text-cyan" href={VIBE_CLOUD_URL} target="_blank" rel="noreferrer">- avibe.bot- <ExternalLink className="ml-1 size-3.5" />- </a>- </div>+ <div className="grid border-b border-border md:grid-cols-3">+ <div className="border-b border-border px-4 py-3 md:border-b-0 md:border-r">+ <div className="text-[11px] text-muted">{t('remoteAccess.paired')}</div>+ <div className="mt-1 text-[13px] font-medium text-foreground">{paired ? t('common.enabled') : t('common.disabled')}</div>+ </div>+ <div className="border-b border-border px-4 py-3 md:border-b-0 md:border-r">+ <div className="text-[11px] text-muted">{t('remoteAccess.connector')}</div>+ <div className="mt-1 text-[13px] font-medium text-foreground">{loading ? t('common.loading') : connectorState}</div></div>+ <div className="px-4 py-3">+ <div className="text-[11px] text-muted">{t('remoteAccess.vibeCloudService')}</div>+ <a className="mt-1 inline-flex text-[13px] font-medium text-cyan" href={VIBE_CLOUD_URL} target="_blank" rel="noreferrer">+ avibe.bot+ <ExternalLink className="ml-1 size-3.5" />+ </a>+ </div>+ </div>- {showPairingForm ? (- <div className="grid gap-3 px-4 py-3 md:grid-cols-[1fr_auto] md:items-end">- <label className="space-y-1.5">- <span className="text-[12px] font-medium text-foreground">{t('remoteAccess.pairingKey')}</span>- <input- className="h-8 w-full rounded-md border border-input bg-surface-3 px-3 font-mono text-[12px] text-foreground outline-none focus:border-ring focus:ring-2 focus:ring-ring/30"- value={pairingKey}- onChange={(event) => setPairingKey(event.target.value)}- placeholder="vrp_xxxxxxxxxxxxxxxxx"- />- <span className="block text-[10px] text-muted">{t('remoteAccess.pairingKeyHelp')}</span>- </label>- <div className="flex gap-2">- <button- type="button"- className="inline-flex h-8 items-center gap-2 rounded-md bg-primary px-3 text-[12px] font-semibold text-primary-foreground disabled:opacity-50"- disabled={pairing || !pairingKey.trim()}- onClick={pair}- >- <Link2 className="size-3.5" />- {pairing ? t('remoteAccess.pairing') : t('remoteAccess.pair')}- </button>- {paired && (- <button- type="button"- className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground"- onClick={() => {- setReconfiguring(false);- setPairingKey('');- }}- >- {t('common.cancel')}- </button>- )}- </div>- </div>- ) : (- <div className="flex flex-col gap-3 px-4 py-3 md:flex-row md:items-center md:justify-between">- <div className="min-w-0">- <div className="flex items-center gap-2 text-[13px] font-medium text-mint">- <CheckCircle2 className="size-3.5" />- {t('remoteAccess.configuredBadge')}- </div>- {publicUrl && (- <a- href={publicUrl}- target="_blank"- rel="noreferrer"- className="mt-1 inline-flex max-w-full items-center gap-1 truncate font-mono text-[11px] text-cyan hover:underline"- title={publicUrl}- >- <span className="truncate">{publicUrl}</span>- <ExternalLink className="size-3 shrink-0" />- </a>- )}- </div>- <div className="flex gap-2">+ {showPairingForm ? (+ <div className="grid gap-3 px-4 py-3 md:grid-cols-[1fr_auto] md:items-end">+ <label className="space-y-1.5">+ <span className="text-[12px] font-medium text-foreground">{t('remoteAccess.pairingKey')}</span>+ <input+ className="h-8 w-full rounded-md border border-input bg-surface-3 px-3 font-mono text-[12px] text-foreground outline-none focus:border-ring focus:ring-2 focus:ring-ring/30"+ value={pairingKey}+ onChange={(event) => setPairingKey(event.target.value)}+ placeholder="vrp_xxxxxxxxxxxxxxxxx"+ />+ <span className="block text-[10px] text-muted">{t('remoteAccess.pairingKeyHelp')}</span>+ </label>+ <div className="flex gap-2">+ <button+ type="button"+ className="inline-flex h-8 items-center gap-2 rounded-md bg-primary px-3 text-[12px] font-semibold text-primary-foreground disabled:opacity-50"+ disabled={pairing || !pairingKey.trim()}+ onClick={pair}+ >+ <Link2 className="size-3.5" />+ {pairing ? t('remoteAccess.pairing') : t('remoteAccess.pair')}+ </button>+ {paired && (<buttontype="button"className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground"- onClick={() => setReconfiguring(true)}+ onClick={() => {+ setReconfiguring(false);+ setPairingKey('');+ }}>- {t('remoteAccess.repair')}+ {t('common.cancel')}</button>- <button className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground disabled:opacity-50" disabled={!paired || running} onClick={start} type="button">- {t('common.start')}- </button>- <button className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground disabled:opacity-50" disabled={!paired || !running} onClick={stop} type="button">- {t('common.stop')}- </button>- </div>- </div>- )}-- {actionMessage && (- <div className={`border-t border-border px-4 py-3 text-[12px] ${- actionMessage.type === 'error' ? 'text-gold' : 'text-mint'- }`}>- {actionMessage.text}- </div>- )}- </section>- );- }-- return (- <div className={embedded ? 'space-y-6' : 'max-w-5xl mx-auto space-y-6'}>- {!embedded && (- <div className="relative overflow-hidden rounded-3xl border border-slate-200 bg-gradient-to-br from-slate-950 via-slate-900 to-cyan-950 p-8 text-white shadow-xl">- <div className="absolute -right-20 -top-24 h-64 w-64 rounded-full bg-cyan-400/20 blur-3xl" />- <div className="relative space-y-3">- <div className="inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/10 px-3 py-1 text-sm text-cyan-100">- <ShieldCheck className="h-4 w-4" />- {t('remoteAccess.badge')}- </div>- <h1 className="font-display text-3xl font-bold tracking-tight md:text-4xl">{t('remoteAccess.title')}</h1>- <p className="max-w-2xl text-cyan-50/80">{t('remoteAccess.subtitle')}</p>+ )}</div></div>- )}-- <div className="grid lg:grid-cols-[1.1fr_0.9fr] gap-6">- <section className="rounded-2xl border border-border bg-panel p-6 space-y-5">- <div>- <h2 className="text-xl font-semibold flex items-center gap-2">- <KeyRound className="w-5 h-5 text-accent" />- {paired && !reconfiguring ? t('remoteAccess.configuredTitle') : t('remoteAccess.connectTitle')}- </h2>- <p className="text-sm text-muted mt-1">- {paired && !reconfiguring ? t('remoteAccess.configuredDesc') : t('remoteAccess.connectDesc')}- </p>- </div>-- <div className="rounded-xl border border-border bg-neutral-50 p-4 text-sm">- <div className="text-muted">{t('remoteAccess.vibeCloudService')}</div>- <a className="mt-1 inline-flex items-center gap-2 font-medium text-accent" href={VIBE_CLOUD_URL} target="_blank" rel="noreferrer">- {VIBE_CLOUD_URL}- <ExternalLink className="h-4 w-4" />- </a>- </div>-- {showPairingForm && (- <div className="rounded-xl border border-cyan-200 bg-cyan-50 p-4 text-sm text-cyan-950">- <div className="font-semibold">{t('remoteAccess.flowTitle')}</div>- <ol className="mt-2 list-decimal space-y-1 pl-5">- <li>{t('remoteAccess.flowStep1')}</li>- <li>{t('remoteAccess.flowStep2')}</li>- <li>{t('remoteAccess.flowStep3')}</li>- </ol>+ ) : (+ <div className="flex flex-col gap-3 px-4 py-3 md:flex-row md:items-center md:justify-between">+ <div className="min-w-0">+ <div className="flex items-center gap-2 text-[13px] font-medium text-mint">+ <CheckCircle2 className="size-3.5" />+ {t('remoteAccess.configuredBadge')}</div>- )}-- {showPairingForm ? (- <>- <label className="block space-y-2">- <span className="text-sm font-medium">{t('remoteAccess.pairingKey')}</span>- <input- className="w-full rounded-lg border border-border bg-bg px-3 py-2 font-mono"- value={pairingKey}- onChange={(event) => setPairingKey(event.target.value)}- placeholder="vrp_xxxxxxxxxxxxxxxxx"- />- <span className="block text-xs text-muted">{t('remoteAccess.pairingKeyHelp')}</span>- </label>-- <div className="flex flex-wrap gap-3">- <button- type="button"- className="inline-flex items-center gap-2 rounded-lg bg-accent px-4 py-2 text-white font-medium disabled:opacity-50"- disabled={pairing || !pairingKey.trim()}- onClick={pair}- >- <Link2 className="w-4 h-4" />- {pairing ? t('remoteAccess.pairing') : t('remoteAccess.pair')}- </button>- {paired && (- <button- type="button"- className="rounded-lg border border-border px-4 py-2"- onClick={() => {- setReconfiguring(false);- setPairingKey('');- }}- >- {t('common.cancel')}- </button>- )}- </div>- </>- ) : (- <div className="rounded-xl border border-emerald-200 bg-emerald-50 p-4 text-sm text-emerald-950">- <div className="flex items-start gap-3">- <CheckCircle2 className="mt-0.5 h-4 w-4 shrink-0" />- <div className="min-w-0 flex-1">- <div className="font-semibold">{t('remoteAccess.configuredBadge')}</div>- <div className="mt-1">{t('remoteAccess.configuredHelp')}</div>- {publicUrl && <div className="mt-2 truncate font-mono text-xs">{publicUrl}</div>}- </div>- </div>- <button- type="button"- className="mt-4 rounded-lg border border-emerald-300 px-3 py-2 font-medium"- onClick={() => setReconfiguring(true)}+ {publicUrl && (+ <a+ href={publicUrl}+ target="_blank"+ rel="noreferrer"+ className="mt-1 inline-flex max-w-full items-center gap-1 truncate font-mono text-[11px] text-cyan hover:underline"+ title={publicUrl}>- {t('remoteAccess.repair')}- </button>- </div>- )}-- {legacyNestedHostname && (- <div className="rounded-xl border border-amber-200 bg-amber-50 p-4 text-sm text-amber-950">- <div className="flex items-start gap-3">- <AlertTriangle className="mt-0.5 h-4 w-4 shrink-0" />- <div>- <div className="font-semibold">{t('remoteAccess.legacyHostnameTitle')}</div>- <div className="mt-1">{t('remoteAccess.legacyHostnameDesc')}</div>- </div>- </div>- </div>- )}- </section>-- <section className="rounded-2xl border border-border bg-panel p-6 space-y-5">- <div className="flex items-start justify-between gap-4">- <div>- <h2 className="text-xl font-semibold">{t('remoteAccess.statusTitle')}</h2>- <p className="text-sm text-muted mt-1">{loading ? t('common.loading') : t('remoteAccess.statusDesc')}</p>- </div>- <button className="rounded-lg border border-border p-2 hover:bg-neutral-50" onClick={refresh} type="button">- <RefreshCcw className="w-4 h-4" />- </button>+ <span className="truncate">{publicUrl}</span>+ <ExternalLink className="size-3 shrink-0" />+ </a>+ )}</div>-- <div className="grid grid-cols-2 gap-3 text-sm">- <div className="rounded-xl bg-neutral-50 p-4 border border-border">- <div className="text-muted">{t('remoteAccess.paired')}</div>- <div className="font-semibold mt-1">{paired ? t('common.enabled') : t('common.disabled')}</div>- </div>- <div className="rounded-xl bg-neutral-50 p-4 border border-border">- <div className="text-muted">{t('remoteAccess.connector')}</div>- <div className="font-semibold mt-1">{connectorState}</div>- </div>- </div>-- {actionMessage && (- <div className={`rounded-xl border p-4 text-sm ${- actionMessage.type === 'error'- ? 'border-amber-200 bg-amber-50 text-amber-950'- : 'border-emerald-200 bg-emerald-50 text-emerald-950'- }`}>- <div className="flex items-start gap-3">- {actionMessage.type === 'error' ? <AlertTriangle className="mt-0.5 h-4 w-4 shrink-0" /> : <CheckCircle2 className="mt-0.5 h-4 w-4 shrink-0" />}- <div>- <div className="font-semibold">- {actionMessage.type === 'error' ? t('remoteAccess.actionNeeded') : t('remoteAccess.ready')}- </div>- <div className="mt-1">{actionMessage.text}</div>- </div>- </div>- </div>- )}-- {publicUrl && (- <a className="flex items-center justify-between rounded-xl border border-border p-4 hover:bg-neutral-50" href={publicUrl} target="_blank" rel="noreferrer">- <span className="font-mono text-sm truncate">{publicUrl}</span>- <ExternalLink className="w-4 h-4 shrink-0" />- </a>- )}-- <div className="flex gap-3">- <button className="rounded-lg border border-border px-4 py-2 disabled:opacity-50" disabled={!paired || running} onClick={start} type="button">- <Power className="w-4 h-4 inline mr-2" />+ <div className="flex gap-2">+ <button+ type="button"+ className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground"+ onClick={() => setReconfiguring(true)}+ >+ {t('remoteAccess.repair')}+ </button>+ <button className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground disabled:opacity-50" disabled={!paired || running} onClick={start} type="button">{t('common.start')}</button>- <button className="rounded-lg border border-border px-4 py-2 disabled:opacity-50" disabled={!paired || !running} onClick={stop} type="button">+ <button className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground disabled:opacity-50" disabled={!paired || !running} onClick={stop} type="button">{t('common.stop')}</button></div>- </section>- </div>- </div>+ </div>+ )}++ {actionMessage && (+ <div className={`border-t border-border px-4 py-3 text-[12px] ${+ actionMessage.type === 'error' ? 'text-gold' : 'text-mint'+ }`}>+ {actionMessage.text}+ </div>+ )}+ </section>);};diff --git a/ui/src/components/settings/SettingsServicePage.tsx b/ui/src/components/settings/SettingsServicePage.tsxindex 8c5e8f02a..f862e2859 100644--- a/ui/src/components/settings/SettingsServicePage.tsx+++ b/ui/src/components/settings/SettingsServicePage.tsx@@ -246,7 +246,7 @@ export const SettingsServicePage: React.FC = () => {</div></SettingsPanel>- <RemoteAccess embedded />+ <RemoteAccess /></SettingsPageShell>);};diff --git a/ui/src/components/steps/ModeSelection.tsx b/ui/src/components/steps/ModeSelection.tsxindex e971ad4a4..e20e19018 100644--- a/ui/src/components/steps/ModeSelection.tsx+++ b/ui/src/components/steps/ModeSelection.tsx@@ -55,7 +55,7 @@ export const ModeSelection: React.FC<ModeSelectionProps> = ({ data, onNext, onBaisDisabled ? 'opacity-50 cursor-not-allowed' : 'hover:border-accent/50')}>- <div className={clsx("p-3 rounded-lg", isSelected ? "bg-accent/10 text-accent" : "bg-neutral-100 text-muted")}>+ <div className={clsx("p-3 rounded-lg", isSelected ? "bg-accent/10 text-accent" : "bg-muted-soft text-muted")}><Icon size={24} /></div><div>diff --git a/ui/src/components/ui/directory-browser.tsx b/ui/src/components/ui/directory-browser.tsxindex 5d49dcd88..59aad2d18 100644--- a/ui/src/components/ui/directory-browser.tsx+++ b/ui/src/components/ui/directory-browser.tsx@@ -137,7 +137,7 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({<buttononClick={() => browse(crumb.path)}className={clsx(- 'shrink-0 px-1 py-0.5 rounded hover:bg-neutral-100 transition-colors font-mono',+ 'shrink-0 px-1 py-0.5 rounded hover:bg-foreground/5 transition-colors font-mono',i === breadcrumbs.length - 1 ? 'text-accent font-medium' : 'text-muted',)}>@@ -158,7 +158,7 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({{parent && (<buttononClick={() => browse(parent)}- className="flex items-center gap-2 w-full px-3 py-1.5 rounded-lg hover:bg-neutral-100 transition-colors text-sm text-muted"+ className="flex items-center gap-2 w-full px-3 py-1.5 rounded-lg hover:bg-foreground/5 transition-colors text-sm text-muted"><ArrowUp size={14} /><span>..</span>@@ -170,10 +170,10 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({<buttonkey={dir.path}onClick={() => browse(dir.path)}- className="flex items-center gap-2 w-full px-3 py-1.5 rounded-lg hover:bg-neutral-100 transition-colors text-sm text-text group"+ className="flex items-center gap-2 w-full px-3 py-1.5 rounded-lg hover:bg-foreground/5 transition-colors text-sm text-text group">- <Folder size={14} className="text-amber-500 group-hover:hidden shrink-0" />- <FolderOpen size={14} className="text-amber-500 hidden group-hover:block shrink-0" />+ <Folder size={14} className="text-gold group-hover:hidden shrink-0" />+ <FolderOpen size={14} className="text-gold hidden group-hover:block shrink-0" /><span className="truncate text-left">{dir.name}</span></button>))}@@ -196,8 +196,8 @@ export const DirectoryBrowser: React.FC<DirectoryBrowserProps> = ({className={clsx('flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-sm font-medium transition-colors shrink-0',canConfirm- ? 'bg-accent hover:bg-accent/90 text-white'- : 'bg-neutral-200 text-muted cursor-not-allowed',+ ? 'bg-accent hover:bg-accent/90 text-accent-foreground'+ : 'bg-muted-soft text-muted cursor-not-allowed',)}><Check size={14} />