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
refactor(ui): consolidate hand-rolled buttons onto shared Button primitive
cyhd0494e7ea971
diff --git a/ui/src/components/RemoteAccess.tsx b/ui/src/components/RemoteAccess.tsxindex acb7a16f4..cabff896b 100644--- a/ui/src/components/RemoteAccess.tsx+++ b/ui/src/components/RemoteAccess.tsx@@ -4,6 +4,7 @@ import { Trans, useTranslation } from 'react-i18next';import { useApi } from '../context/ApiContext';import { useToast } from '../context/ToastContext';import { CompactField } from './settings/SettingsPrimitives';+import { Button } from './ui/button';const VIBE_CLOUD_URL = 'https://avibe.bot';@@ -146,14 +147,16 @@ export const RemoteAccess: React.FC = () => {<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"+ <Button+ variant="secondary"+ size="xs"+ className="shrink-0"onClick={refresh}type="button"><RefreshCcw className="size-3.5" />{t('common.refresh')}- </button>+ </Button></div><div className="grid border-b border-border md:grid-cols-3">@@ -187,26 +190,29 @@ export const RemoteAccess: React.FC = () => {<span className="block text-[10px] text-muted">{t('remoteAccess.pairingKeyHelp')}</span></label><div className="flex gap-2">- <button+ <Buttontype="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"+ variant="default"+ size="xs"+ className="font-semibold"disabled={pairing || !pairingKey.trim()}onClick={pair}><Link2 className="size-3.5" />{pairing ? t('remoteAccess.pairing') : t('remoteAccess.pair')}- </button>+ </Button>{paired && (- <button+ <Buttontype="button"- className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground"+ variant="secondary"+ size="xs"onClick={() => {setReconfiguring(false);setPairingKey('');}}>{t('common.cancel')}- </button>+ </Button>)}</div></div>@@ -231,19 +237,32 @@ export const RemoteAccess: React.FC = () => {)}</div><div className="flex gap-2">- <button+ <Buttontype="button"- className="h-8 rounded-md border border-border px-3 text-[12px] text-foreground"+ variant="secondary"+ size="xs"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">+ </Button>+ <Button+ type="button"+ variant="secondary"+ size="xs"+ disabled={!paired || running}+ onClick={start}+ >{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">+ </Button>+ <Button+ type="button"+ variant="secondary"+ size="xs"+ disabled={!paired || !running}+ onClick={stop}+ >{t('common.stop')}- </button>+ </Button></div></div>)}diff --git a/ui/src/components/settings/SettingsPlatformsPage.tsx b/ui/src/components/settings/SettingsPlatformsPage.tsxindex fee6f9f10..aeb4fd7c4 100644--- a/ui/src/components/settings/SettingsPlatformsPage.tsx+++ b/ui/src/components/settings/SettingsPlatformsPage.tsx@@ -234,14 +234,15 @@ export const SettingsPlatformsPage: React.FC = () => {</div><div className="flex items-center justify-end gap-2 border-t border-border pt-3">- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={closeAll}disabled={savingEnabled}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 py-1.5 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:opacity-50">{t('common.cancel')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/settings/SettingsServicePage.tsx b/ui/src/components/settings/SettingsServicePage.tsxindex 6b4c01c87..ee1892af6 100644--- a/ui/src/components/settings/SettingsServicePage.tsx+++ b/ui/src/components/settings/SettingsServicePage.tsx@@ -164,25 +164,27 @@ export const SettingsServicePage: React.FC = () => {</Button>)}{isRunning && (- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => void handleAction('stop')}disabled={loading}- className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:cursor-not-allowed disabled:opacity-50"><Square className="size-3.5" strokeWidth={2.5} />{t('common.stop')}- </button>+ </Button>)}- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => void handleAction('restart')}disabled={loading}- className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:cursor-not-allowed disabled:opacity-50"><RotateCw className="size-3.5" strokeWidth={2.5} />{t('common.restart')}- </button>+ </Button></div>}/>@@ -223,15 +225,17 @@ export const SettingsServicePage: React.FC = () => {}));}}/>- <button+ <Buttontype="button"+ variant="secondary"+ size="sm"onClick={() => void handleUiSaveRestart()}disabled={uiSaving}- className="inline-flex h-9 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:cursor-not-allowed disabled:opacity-50"+ className="text-[12px]"><RotateCw className={clsx('size-3.5', uiSaving && 'animate-spin')} strokeWidth={2.5} />{uiSaving ? t('common.saving') : t('common.saveAndRestart')}- </button>+ </Button></div>}/>diff --git a/ui/src/components/steps/AgentDetection.tsx b/ui/src/components/steps/AgentDetection.tsxindex a30986deb..c051a3b36 100644--- a/ui/src/components/steps/AgentDetection.tsx+++ b/ui/src/components/steps/AgentDetection.tsx@@ -204,12 +204,14 @@ export const AgentDetection: React.FC<AgentDetectionProps> = ({ data, onNext, on<option value="codex">Codex</option></CompactSelect></label>- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={detectAll}- className="inline-flex h-9 items-center gap-2 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong"><Search className="size-3.5" /> {t('common.detectAll')}- </button>+ </Button></div><div className="flex flex-col gap-3">@@ -251,14 +253,16 @@ export const AgentDetection: React.FC<AgentDetectionProps> = ({ data, onNext, onplaceholder={t('agentDetection.cliPathPlaceholder', { name })}className="flex-1 font-mono"/>- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={() => detect(name, agent.cli_path)}disabled={checking}- className="inline-flex h-9 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:cursor-not-allowed disabled:opacity-50">{checking ? <RefreshCw className="size-3.5 animate-spin" /> : <Search className="size-3.5" />}{t('common.detect')}- </button>+ </Button></div>{isMissing(agent) && (@@ -378,14 +382,16 @@ export const AgentDetection: React.FC<AgentDetectionProps> = ({ data, onNext, on<div className="flex items-center justify-between border-t border-border pt-4">{onBack ? (- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button>) : (<span />)}diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsxindex f924dc703..8b2c9a459 100644--- a/ui/src/components/steps/ChannelList.tsx+++ b/ui/src/components/steps/ChannelList.tsx@@ -783,14 +783,16 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB<p className="text-[12px] text-muted">{t('wechat.noChannels')}</p></div><div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"@@ -820,13 +822,15 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB<MessageSquare size={32} /></div><p className="text-muted mb-6">{t('wechat.noChannels')}</p>- <button+ <Button+ type="button"+ variant="brand"+ size="default"onClick={() => navigate('/users')}- className="inline-flex items-center gap-2 px-6 py-3 bg-accent hover:bg-accent/90 text-white rounded-lg font-medium transition-colors shadow-sm"><Users size={18} />{t('wechat.manageUserSettings')}- </button>+ </Button></div></div>);@@ -906,15 +910,16 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onBplaceholder={t('channelList.filterPlaceholder')}className="w-[240px]"/>- <button+ <Buttontype="button"+ variant="secondary"+ size="sm"onClick={handleRescan}disabled={isRescanLoading}- className="inline-flex h-9 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[13px] font-medium text-foreground transition-colors hover:border-border-strong disabled:opacity-50"><RefreshCw size={14} className={isRescanLoading ? 'animate-spin' : ''} />{t('channelList.rescan')}- </button>+ </Button></div></div>@@ -1042,15 +1047,17 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB{pageTab !== 'all' && (<div className="flex flex-wrap items-center gap-x-4 gap-y-2 px-0.5">{!['lark', 'telegram'].includes(pageTab) && (- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => loadChannels(true)}disabled={loadingAll}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 py-1.5 text-[12px] font-medium text-foreground transition-colors hover:border-cyan/40 disabled:opacity-50"+ className="hover:border-cyan/40"><Globe size={13} className={loadingAll ? 'animate-spin' : ''} />{loadingAll ? t('common.loading') : t('channelList.browseAll')}- </button>+ </Button>)}{browseAll && pageTab === platform && (<span className="text-[11px] text-muted">{t('channelList.showingAll')}</span>@@ -1367,21 +1374,27 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB<div className="mb-4 space-y-3 rounded-2xl border border-border bg-surface-2/40 p-4 shadow-[0_18px_40px_-30px_rgba(0,0,0,0.8)]"><div className="flex flex-wrap items-center justify-between gap-x-3 gap-y-2"><div className="flex flex-wrap items-center gap-x-3 gap-y-2">- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={() => loadChannels(browseAll)}- className="flex items-center gap-2 rounded-lg border border-border bg-surface-3/60 px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:border-cyan/40 hover:bg-surface-2/70"+ className="hover:border-cyan/40"><RefreshCw size={14} className={loading ? 'animate-spin' : ''} /> {t('channelList.refreshList')}- </button>+ </Button>{!browseAll && !['lark', 'telegram'].includes(platform) && (- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={() => loadChannels(true)}disabled={loadingAll}- className="flex items-center gap-2 rounded-lg border border-border bg-surface-3/60 px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:border-cyan/40 hover:bg-surface-2/70 disabled:opacity-50"+ className="hover:border-cyan/40"><Globe size={14} className={loadingAll ? 'animate-spin' : ''} />{loadingAll ? t('common.loading') : t('channelList.browseAll')}- </button>+ </Button>)}{browseAll && (<span className="text-xs text-muted">{t('channelList.showingAll')}</span>@@ -1602,14 +1615,16 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB{!isPage && (<div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/DiscordConfig.tsx b/ui/src/components/steps/DiscordConfig.tsxindex e9c17d3a1..a25649377 100644--- a/ui/src/components/steps/DiscordConfig.tsx+++ b/ui/src/components/steps/DiscordConfig.tsx@@ -468,14 +468,16 @@ export const DiscordConfig: React.FC<DiscordConfigProps> = ({ data, onNext, onBa<div className="flex flex-col gap-3">{stepShells}</div><div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/DoctorPanel.tsx b/ui/src/components/steps/DoctorPanel.tsxindex 3f3798c7a..f44603e6a 100644--- a/ui/src/components/steps/DoctorPanel.tsx+++ b/ui/src/components/steps/DoctorPanel.tsx@@ -120,14 +120,15 @@ export const DoctorPanel: React.FC<DoctorPanelProps> = ({{t('common.viewLogs')}</Link>{results && (- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => void copyReport()}- className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong"><Copy className="size-3.5" />{t('doctor.copyReport')}- </button>+ </Button>)}<Button type="button" variant="brand" size="xs" onClick={runDoctor} disabled={loading}><RefreshCw className={clsx('size-3.5', loading && 'animate-spin')} strokeWidth={2.5} />diff --git a/ui/src/components/steps/LarkConfig.tsx b/ui/src/components/steps/LarkConfig.tsxindex 05d1ee300..45fd893b8 100644--- a/ui/src/components/steps/LarkConfig.tsx+++ b/ui/src/components/steps/LarkConfig.tsx@@ -557,14 +557,16 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack, em{bodyContent}<div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/ModeSelection.tsx b/ui/src/components/steps/ModeSelection.tsxindex e20e19018..03835c125 100644--- a/ui/src/components/steps/ModeSelection.tsx+++ b/ui/src/components/steps/ModeSelection.tsx@@ -2,6 +2,7 @@ import React from 'react';import clsx from 'clsx';import { Cloud, Server } from 'lucide-react';import { useTranslation } from 'react-i18next';+import { Button } from '../ui/button';interface ModeSelectionProps {data: any;@@ -68,15 +69,17 @@ export const ModeSelection: React.FC<ModeSelectionProps> = ({ data, onNext, onBa</div><div className="mt-auto flex justify-between">- <button onClick={onBack} className="px-6 py-2 text-muted hover:text-text font-medium">- {t('common.back')}- </button>- <button+ <Button type="button" variant="ghost" size="default" onClick={onBack} className="font-medium">+ {t('common.back')}+ </Button>+ <Button+ type="button"+ variant="brand-cyan"+ size="lg"onClick={() => onNext({ mode: selected })}- className="px-8 py-3 bg-accent hover:bg-accent/90 text-white rounded-lg font-medium transition-colors shadow-sm">{t('common.continue')}- </button>+ </Button></div></div>);diff --git a/ui/src/components/steps/PlatformSelection.tsx b/ui/src/components/steps/PlatformSelection.tsxindex d1a9d120a..fec0654fc 100644--- a/ui/src/components/steps/PlatformSelection.tsx+++ b/ui/src/components/steps/PlatformSelection.tsx@@ -541,14 +541,16 @@ export const PlatformSelection: React.FC<PlatformSelectionProps> = ({ data, onNe</div><div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/SlackConfig.tsx b/ui/src/components/steps/SlackConfig.tsxindex a3a0e35af..d20bb83df 100644--- a/ui/src/components/steps/SlackConfig.tsx+++ b/ui/src/components/steps/SlackConfig.tsx@@ -161,14 +161,16 @@ export const SlackConfig: React.FC<SlackConfigProps> = ({ data, onNext, onBack,{t('slackConfig.createSlackApp')}</Button>{manifest && (- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={copyManifest}disabled={manifestLoading}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 py-2 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:opacity-50">{copied ? <Check size={14} /> : <Copy size={14} />}{copied ? t('slackConfig.copied') : t('slackConfig.copyManifest')}- </button>+ </Button>)}</div>{manifest && (@@ -383,14 +385,16 @@ export const SlackConfig: React.FC<SlackConfigProps> = ({ data, onNext, onBack,<div className="flex flex-col gap-3">{stepShells}</div><div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/Summary.tsx b/ui/src/components/steps/Summary.tsxindex 092a9137f..1830d6471 100644--- a/ui/src/components/steps/Summary.tsx+++ b/ui/src/components/steps/Summary.tsx@@ -344,15 +344,17 @@ export const Summary: React.FC<SummaryProps> = ({ data, onBack }) => {)}<div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}disabled={saving}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong disabled:opacity-50"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Button type="button" variant="brand" size="lg" onClick={saveAll} disabled={saving}>{saving ? t('common.saving') : t('summary.finishAndStart')}{!saving && <ArrowRight size={16} strokeWidth={2.25} />}diff --git a/ui/src/components/steps/TelegramConfig.tsx b/ui/src/components/steps/TelegramConfig.tsxindex 67e85f8d6..3b0092c7d 100644--- a/ui/src/components/steps/TelegramConfig.tsx+++ b/ui/src/components/steps/TelegramConfig.tsx@@ -174,13 +174,15 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on<ExternalLink size={14} strokeWidth={2.25} />{t('telegramConfig.openBotFather')}</Button>- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={() => copyCommand('/newbot')}- className="inline-flex items-center gap-2 rounded-lg border border-border bg-foreground/[0.04] px-3 py-2 text-[12px] font-medium text-foreground transition hover:border-border-strong">{copiedCommand === '/newbot' ? <Check size={14} className="text-mint" /> : <Copy size={14} />}{copiedCommand === '/newbot' ? t('telegramConfig.copiedCommand') : t('telegramConfig.copyNewBotCommand')}- </button>+ </Button></div><div className="rounded-lg border border-cyan/30 bg-cyan/[0.06] px-3 py-2 text-[12px] leading-[1.55] text-cyan"><strong>{t('slackConfig.tip')}:</strong> {t('telegramConfig.step1Tip')}@@ -431,14 +433,16 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on<div className="flex flex-col gap-3">{stepShells}</div><div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"diff --git a/ui/src/components/steps/UserList.tsx b/ui/src/components/steps/UserList.tsxindex 01cedce37..8a82782d1 100644--- a/ui/src/components/steps/UserList.tsx+++ b/ui/src/components/steps/UserList.tsx@@ -210,24 +210,28 @@ const BindCodeCard: React.FC<BindCodeCardProps> = ({ refreshTrigger, onCodesChan)}<div className="flex flex-wrap items-center gap-2">{moreCount > 0 || otherCodes.length > 0 ? (- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => setShowAllModal(true)}- className="rounded-md border border-border bg-foreground/[0.04] px-3.5 py-2 text-[12px] font-medium text-muted transition-colors hover:border-border-strong hover:text-foreground"+ className="text-muted hover:text-foreground">{moreCount > 0? t('bindCode.viewMore', { count: moreCount }): t('bindCode.viewUnavailable', { count: otherCodes.length })}- </button>+ </Button>) : null}{primary && (- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => handleDelete(primary.code)}- className="rounded-md border border-border bg-foreground/[0.04] px-3.5 py-2 text-[12px] font-medium text-muted transition-colors hover:border-danger/40 hover:text-danger"+ className="text-muted hover:border-danger/40 hover:text-danger">{t('bindCode.revoke')}- </button>+ </Button>)}<Button type="button" variant="brand" size="xs" onClick={() => setShowFormModal(true)}><Plus size={14} strokeWidth={2.4} />@@ -664,14 +668,16 @@ export const UserList: React.FC = () => {placeholder={t('userList.filterPlaceholder')}className="w-[280px]"/>- <button+ <Buttontype="button"+ variant="secondary"+ size="sm"onClick={() => setRefreshTrigger((v) => v + 1)}- className="inline-flex h-9 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[13px] font-medium text-foreground transition-colors hover:border-border-strong"title={t('common.refresh', { defaultValue: 'Refresh' })}+ className="px-3"><RefreshCw size={14} />- </button>+ </Button></div></div>@@ -849,15 +855,17 @@ export const UserList: React.FC = () => {codexAgents={codexAgents}codexModels={codexModels}footerActions={- <button+ <Buttontype="button"+ variant="secondary"+ size="xs"onClick={() => handleRemoveUser(u.platform, u.userId)}title={t('userList.removeUser')}- className="inline-flex items-center gap-1.5 rounded-md border border-border bg-foreground/[0.04] px-3 py-1.5 text-[12px] font-medium text-muted transition-colors hover:border-danger/40 hover:text-danger"+ className="text-muted hover:border-danger/40 hover:text-danger"><Trash2 size={12} />{t('userList.removeUser')}- </button>+ </Button>}/>)}diff --git a/ui/src/components/steps/WeChatConfig.tsx b/ui/src/components/steps/WeChatConfig.tsxindex 6f2bacd15..0ec3a908f 100644--- a/ui/src/components/steps/WeChatConfig.tsx+++ b/ui/src/components/steps/WeChatConfig.tsx@@ -276,17 +276,19 @@ export const WeChatConfig: React.FC<WeChatConfigProps> = ({ data, onNext, onBack{'•'.repeat(16)}</div></div>- <button+ <Button+ type="button"+ variant="secondary"+ size="sm"onClick={() => {autoStartedRef.current = true;void startLogin();}}disabled={starting}- className="inline-flex items-center gap-2 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[12px] font-medium text-foreground transition hover:border-border-strong disabled:opacity-50"><RefreshCw size={14} className={starting ? 'animate-spin' : ''} />{t('wechatConfig.rebind')}- </button>+ </Button></div></div>)}@@ -435,14 +437,16 @@ export const WeChatConfig: React.FC<WeChatConfigProps> = ({ data, onNext, onBack{bodyContent}<div className="flex items-center justify-between border-t border-border pt-4">- <button+ <Buttontype="button"+ variant="secondary"+ size="default"onClick={onBack}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-4 py-2 text-[13px] font-semibold text-foreground transition hover:border-border-strong"+ className="font-semibold"><ArrowLeft size={14} strokeWidth={2.25} />{t('common.back')}- </button>+ </Button><Buttontype="button"variant="brand"