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): restore label semantics for ToggleSwitch rows

cyh1238a0d95496
diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsx
index b62f166b3..f924dc703 100644
--- a/ui/src/components/steps/ChannelList.tsx
+++ b/ui/src/components/steps/ChannelList.tsx
@@ -1084,13 +1084,13 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
discovered: summary.total,
})}
</div>
- <div className="inline-flex items-center gap-2">
+ <label className="inline-flex cursor-pointer items-center gap-2">
<span className="text-[12px] text-muted">{t('channelList.showInactive')}</span>
<ToggleSwitch
enabled={showInactive}
onClick={() => setShowInactive(!showInactive)}
/>
- </div>
+ </label>
</div>
{/* Channel rows — design.pen JrNBe / M8FRiG / KywfU */}
diff --git a/ui/src/components/steps/TelegramConfig.tsx b/ui/src/components/steps/TelegramConfig.tsx
index 53a4d9d0c..67e85f8d6 100644
--- a/ui/src/components/steps/TelegramConfig.tsx
+++ b/ui/src/components/steps/TelegramConfig.tsx
@@ -350,7 +350,7 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
<div className="space-y-3 border-t border-border px-5 py-4">
<p className="text-[13px] leading-[1.55] text-muted">{t('telegramConfig.step5Description')}</p>
- <div className="flex items-start justify-between gap-4 rounded-lg border border-border bg-background px-3 py-2.5">
+ <label className="flex cursor-pointer items-start justify-between gap-4 rounded-lg border border-border bg-background px-3 py-2.5">
<div>
<div className="text-[12px] font-semibold text-foreground">
{t('telegramConfig.requireMention')}
@@ -361,9 +361,9 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
enabled={requireMention}
onClick={() => setRequireMention(!requireMention)}
/>
- </div>
+ </label>
- <div className="flex items-start justify-between gap-4 rounded-lg border border-border bg-background px-3 py-2.5">
+ <label className="flex cursor-pointer items-start justify-between gap-4 rounded-lg border border-border bg-background px-3 py-2.5">
<div className="pr-4">
<div className="flex items-center gap-2 text-[12px] font-semibold text-foreground">
<SplitSquareVertical size={14} className="text-cyan" />
@@ -375,7 +375,7 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
enabled={forumAutoTopic}
onClick={() => setForumAutoTopic(!forumAutoTopic)}
/>
- </div>
+ </label>
</div>
)}
</StepShell>
diff --git a/ui/src/components/steps/UserList.tsx b/ui/src/components/steps/UserList.tsx
index 0091f39a0..01cedce37 100644
--- a/ui/src/components/steps/UserList.tsx
+++ b/ui/src/components/steps/UserList.tsx
@@ -689,13 +689,13 @@ export const UserList: React.FC = () => {
{totalCount}
</span>
</div>
- <div className="flex items-center gap-1.5 text-[12px] text-muted">
+ <label className="flex cursor-pointer items-center gap-1.5 text-[12px] text-muted">
<span>{t('userList.showDisabled')}</span>
<ToggleSwitch
enabled={showDisabled}
onClick={() => setShowDisabled(!showDisabled)}
/>
- </div>
+ </label>
</div>
{/* User cards — design.pen asPXu (VR/RoutingConfig) shared with /groups */}