diff --git a/admin/src/app/official-accounts/page.tsx b/admin/src/app/official-accounts/page.tsx index 0a3c594..1d30a7b 100644 --- a/admin/src/app/official-accounts/page.tsx +++ b/admin/src/app/official-accounts/page.tsx @@ -4,7 +4,7 @@ import AdminShell from '@/components/AdminShell'; import { api } from '@/lib/api'; import { useEffect, useState } from 'react'; import { - Plus, Play, Eye, Trash2, Power, PowerOff, RefreshCw, Newspaper, + Plus, Play, Eye, Trash2, Power, PowerOff, RefreshCw, Newspaper, Rss, ChevronDown, ChevronUp, Bot, Clock, AlertCircle, CheckCircle, ExternalLink, } from 'lucide-react'; @@ -270,7 +270,7 @@ export default function OfficialAccountsPage() { {/* Header */}
- {cfg.account_type === 'news' ? : } + {cfg.account_type === 'news' ? : cfg.account_type === 'rss' ? : }
@@ -344,7 +344,7 @@ export default function OfficialAccountsPage() {
)} - {cfg.account_type === 'news' && sources.length > 0 && ( + {(cfg.account_type === 'news' || cfg.account_type === 'rss') && sources.length > 0 && (
News Sources:
@@ -396,6 +396,9 @@ function CreateAccountForm({ onDone, initialProfile }: { onDone: () => void; ini if (accountType === 'news') { setNewsSources(DEFAULT_NEWS_SOURCES); setSystemPrompt(DEFAULT_NEWS_PROMPT); + } else if (accountType === 'rss') { + setNewsSources(DEFAULT_NEWS_SOURCES); + setSystemPrompt(''); } else { setNewsSources([]); setSystemPrompt(DEFAULT_GENERAL_PROMPT); @@ -441,27 +444,34 @@ function CreateAccountForm({ onDone, initialProfile }: { onDone: () => void; ini
-
- - -
+ {accountType !== 'rss' && ( +
+ + +
+ )}
-
- - setTemperature(Number(e.target.value))} - className="w-full px-3 py-2 border border-warm-300 rounded-lg text-sm" /> -
-
- - setMaxTokens(Number(e.target.value))} - className="w-full px-3 py-2 border border-warm-300 rounded-lg text-sm" /> -
+ {accountType !== 'rss' && ( + <> +
+ + setTemperature(Number(e.target.value))} + className="w-full px-3 py-2 border border-warm-300 rounded-lg text-sm" /> +
+
+ + setMaxTokens(Number(e.target.value))} + className="w-full px-3 py-2 border border-warm-300 rounded-lg text-sm" /> +
+ + )}
setIntervalMin(Number(e.target.value))} @@ -474,13 +484,15 @@ function CreateAccountForm({ onDone, initialProfile }: { onDone: () => void; ini
-
- -