fix: register bot at name confirmation, show credentials in setup step

- Bot registered immediately after name check (poll mode default)
- bot_id + secret available in bot-setup step with COPY GUIDE + CREDENTIALS
- Webhook mode updates URL on existing bot instead of re-registering
- Collapsible guide preview with credentials injected
- Resets guide content when switching webhook/polling mode
- Fix secret text overflow with break-all on profile page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-13 17:36:18 +00:00
co-authored by Claude Opus 4.6
parent d17f6970b9
commit 42b1642932
2 changed files with 64 additions and 54 deletions
+2 -2
View File
@@ -850,8 +850,8 @@ const tierClass = (t: number) => `tier-${t}`
<div class="p-2.5 border border-neon-green/30 bg-neon-green/5">
<p class="font-display font-bold text-[10px] tracking-wider text-neon-green mb-2">NEW SECRET GENERATED</p>
<div class="font-mono text-[10px] text-text-muted space-y-1">
<div>BOT_ID=<span class="text-neon-cyan select-all">{{ regeneratedBotId }}</span></div>
<div>BOT_SECRET=<span class="text-neon-cyan select-all">{{ regeneratedSecret }}</span></div>
<div>BOT_ID=<span class="text-neon-cyan select-all break-all">{{ regeneratedBotId }}</span></div>
<div>BOT_SECRET=<span class="text-neon-cyan select-all break-all">{{ regeneratedSecret }}</span></div>
</div>
<p class="font-mono text-[9px] text-ko mt-2">Save this now. It will not be shown again after you leave this page.</p>
</div>