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): remove Telegram discovery guide (#990)

Call White4a9c34da701a
diff --git a/ui/src/components/steps/TelegramConfig.tsx b/ui/src/components/steps/TelegramConfig.tsx
index 470ae2747..2b7373a9a 100644
--- a/ui/src/components/steps/TelegramConfig.tsx
+++ b/ui/src/components/steps/TelegramConfig.tsx
@@ -35,7 +35,7 @@ interface TelegramConfigProps {
}
// Mirrors design.pen XCWAT (Slack creds wizard step) adapted for Telegram.
-// 920-wide WizardCard, mint eyebrow, 5-step accordion with mint accent on active row.
+// 920-wide WizardCard, mint eyebrow, 4-step accordion with mint accent on active row.
export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, onBack, embedded = false, onApply, onCancel }) => {
const { t } = useTranslation();
const api = useApi();
@@ -52,7 +52,6 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
2: true,
3: false,
4: false,
- 5: false,
});
const [copiedCommand, setCopiedCommand] = useState<string | null>(null);
@@ -64,7 +63,7 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
useEffect(() => {
if ((authResult?.ok || hasSavedToken) && !expandedSteps[3]) {
- setExpandedSteps((prev) => ({ ...prev, 2: false, 3: true, 4: true, 5: true }));
+ setExpandedSteps((prev) => ({ ...prev, 2: false, 3: true, 4: true }));
}
}, [authResult?.ok, hasSavedToken, expandedSteps]);
@@ -108,7 +107,6 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
hasUsableSecret(data.telegram, 'bot_token', botToken),
isValid,
Boolean(copiedCommand),
- expandedSteps[4],
Boolean(requireMention || forumAutoTopic),
].filter(Boolean).length;
@@ -315,43 +313,18 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
)}
</StepShell>
- {/* Step 4: Add bot to group */}
+ {/* Step 4: Behavior toggles */}
<StepShell active={expandedSteps[4]}>
<StepHeader
step={4}
title={t('telegramConfig.step4Title')}
- icon={<ExternalLink size={16} className="text-cyan" />}
+ icon={<Settings2 size={16} className="text-cyan" />}
expanded={expandedSteps[4]}
onToggle={() => toggleStep(4)}
/>
{expandedSteps[4] && (
- <div className="space-y-4 border-t border-border px-5 py-4">
- <p className="text-[13px] leading-[1.55] text-muted">{t('telegramConfig.step4Description')}</p>
- <ol className="list-inside list-decimal space-y-1.5 pl-1 text-[12px] leading-[1.55] text-muted">
- <li>{t('telegramConfig.step4Item1')}</li>
- <li>{t('telegramConfig.step4Item2')}</li>
- <li>{t('telegramConfig.step4Item3')}</li>
- <li>{t('telegramConfig.step4Item4')}</li>
- </ol>
- <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.step4Tip')}
- </div>
- </div>
- )}
- </StepShell>
-
- {/* Step 5: Behavior toggles */}
- <StepShell active={expandedSteps[5]}>
- <StepHeader
- step={5}
- title={t('telegramConfig.step5Title')}
- icon={<Settings2 size={16} className="text-cyan" />}
- expanded={expandedSteps[5]}
- onToggle={() => toggleStep(5)}
- />
- {expandedSteps[5] && (
<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>
+ <p className="text-[13px] leading-[1.55] text-muted">{t('telegramConfig.step4Description')}</p>
<label className="flex cursor-pointer items-start justify-between gap-4 rounded-lg border border-border bg-background px-3 py-2.5">
<div>
@@ -388,7 +361,7 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
if (embedded) {
return (
<EmbeddedConfigShell
- total={5}
+ total={4}
completed={completedCount}
canApply={isValid}
applying={applying}
@@ -415,10 +388,10 @@ export const TelegramConfig: React.FC<TelegramConfigProps> = ({ data, onNext, on
</div>
<div className="flex items-center gap-2 rounded-full border border-border bg-foreground/[0.04] px-3 py-1.5">
<span className="font-mono text-[11px] font-bold uppercase tracking-[0.16em] text-mint">
- {completedCount} / 5
+ {completedCount} / 4
</span>
<div className="flex gap-1">
- {[0, 1, 2, 3, 4].map((i) => (
+ {[0, 1, 2, 3].map((i) => (
<span
key={i}
className={clsx(
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index 47755e120..9ca3f6878 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -1576,15 +1576,8 @@
"step3TipTitle": "Most commonly missed",
"step3Tip": "If you expect the bot to respond to normal group messages without explicit @mentions, /setprivacy must be set to Disable. This is the most common Telegram setup miss.",
"step3ExtraTip": "If you only need the bot in DMs for now, /setjoingroups can wait. But before using groups or forum topics, finish it first.",
- "step4Title": "Finish Setup, Bind, Then Discover Chats",
- "step4Description": "Telegram chat discovery happens only after Avibe is running and has received inbound messages. Finish setup first, then come back from the dashboard to enable discovered group or forum chats.",
- "step4Item1": "Finish the setup flow and start the service",
- "step4Item2": "On the summary screen, copy the first bind command and send `bind <code>` or `/bind <code>` to the bot in DM",
- "step4Item3": "After binding, send /start in DM; for groups or forums, add the bot there and grant message permission (plus admin/topic-management rights if you want forum auto-topic mode)",
- "step4Item4": "Send one message in each target group or forum chat, then refresh the Telegram chat list later from the dashboard group settings page",
- "step4Tip": "Direct messages stay hidden from the selectable Telegram chat list. If the bot still reacts only to commands or @mentions in groups, go back to Step 3 and verify that /setprivacy is really set to Disable.",
- "step5Title": "Choose Conversation Defaults",
- "step5Description": "Set the default group reply behavior and forum topic behavior for this bot.",
+ "step4Title": "Choose Conversation Defaults",
+ "step4Description": "Set the default group reply behavior and forum topic behavior for this bot.",
"botToken": "Bot Token",
"botTokenPlaceholder": "Paste your Telegram bot token",
"botTokenHint": "Create a bot with @BotFather, then paste the token here.",
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index 10f850b78..5ee74915d 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -1576,15 +1576,8 @@
"step3TipTitle": "最容易漏掉的点",
"step3Tip": "如果你希望机器人在群里无需 @ 也能响应普通消息,/setprivacy 必须选 Disable。这是 Telegram 群聊里最常见的初始化遗漏。",
"step3ExtraTip": "如果你只是先在私聊里使用 bot,/setjoingroups 可以稍后再配;但一旦要进群或 forum,建议这一步先完成。",
- "step4Title": "先完成配置和绑定,再发现群组",
- "step4Description": "Telegram 会话发现必须等 Avibe 启动并收到入站消息后才会发生。先完成配置并启动服务,再从 dashboard 回来启用已发现的群组或 forum chat。",
- "step4Item1": "先完成配置流程并启动服务",
- "step4Item2": "在 Summary 页面复制首个绑定命令,并在私聊里向机器人发送 `bind <code>` 或 `/bind <code>`",
- "step4Item3": "绑定完成后,在私聊里发送 /start;如果要在群组或 forum 里用,把机器人加进去并授予发消息权限;若要自动新建 topic,请给它管理员或管理 topic 的权限",
- "step4Item4": "在每个目标群组或 forum chat 里先发一条消息,之后再到 dashboard 的群组设置页刷新 Telegram 会话列表",
- "step4Tip": "Telegram 私聊不会显示在可选会话列表里。如果群里仍然只对命令或 @ 有响应,先回头检查第 3 步的 /setprivacy 是否真的已经设成 Disable。",
- "step5Title": "选择默认会话行为",
- "step5Description": "为这个 Telegram 机器人设置默认的群聊响应方式和 forum topic 行为。",
+ "step4Title": "选择默认会话行为",
+ "step4Description": "为这个 Telegram 机器人设置默认的群聊响应方式和 forum topic 行为。",
"botToken": "机器人令牌",
"botTokenPlaceholder": "粘贴 Telegram 机器人令牌",
"botTokenHint": "先通过 @BotFather 创建机器人,再把令牌粘贴到这里。",