Move advertise to identity tab

This commit is contained in:
Jack Kingsman
2026-01-27 17:25:56 -08:00
parent 530179fde1
commit d6e5130f49
7 changed files with 32 additions and 54 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,8 +13,8 @@
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<script type="module" crossorigin src="/assets/index-DEJuRmNA.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CgLxtL22.css">
<script type="module" crossorigin src="/assets/index-DGSv1YM9.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C2JfQbTz.css">
</head>
<body>
<div id="root"></div>

View File

@@ -77,7 +77,7 @@ export function SettingsModal({
onRefreshAppSettings,
}: SettingsModalProps) {
// Tab state
type SettingsTab = 'radio' | 'identity' | 'serial' | 'database' | 'advertise' | 'bot';
type SettingsTab = 'radio' | 'identity' | 'serial' | 'database' | 'bot';
const [activeTab, setActiveTab] = useState<SettingsTab>('radio');
// Radio config state
@@ -475,7 +475,6 @@ export function SettingsModal({
'Manage radio name, public key, private key, and advertising settings'}
{activeTab === 'serial' && 'View serial port connection and configure contact sync'}
{activeTab === 'database' && 'View database statistics and clean up old packets'}
{activeTab === 'advertise' && 'Send a flood advertisement to announce your presence'}
{activeTab === 'bot' && 'Configure automatic message bot with Python code'}
</DialogDescription>
</DialogHeader>
@@ -488,12 +487,11 @@ export function SettingsModal({
onValueChange={(v) => setActiveTab(v as SettingsTab)}
className="w-full"
>
<TabsList className="grid w-full grid-cols-6">
<TabsList className="grid w-full grid-cols-5">
<TabsTrigger value="radio">Radio</TabsTrigger>
<TabsTrigger value="identity">Identity</TabsTrigger>
<TabsTrigger value="serial">Serial</TabsTrigger>
<TabsTrigger value="database">Database</TabsTrigger>
<TabsTrigger value="advertise">Advertise</TabsTrigger>
<TabsTrigger value="bot">Bot</TabsTrigger>
</TabsList>
@@ -859,26 +857,6 @@ export function SettingsModal({
</Button>
</TabsContent>
{/* Advertise Tab */}
<TabsContent value="advertise" className="space-y-4 mt-4">
<div className="text-center py-8">
<p className="text-muted-foreground mb-6">
Send a flood advertisement to announce your presence on the mesh network.
</p>
<Button
size="lg"
onClick={handleAdvertise}
disabled={advertising || !health?.radio_connected}
className="bg-green-600 hover:bg-green-700 text-white px-12 py-6 text-lg"
>
{advertising ? 'Sending...' : 'Send Advertisement'}
</Button>
{!health?.radio_connected && (
<p className="text-sm text-destructive mt-4">Radio not connected</p>
)}
</div>
</TabsContent>
{/* Bot Tab */}
<TabsContent value="bot" className="space-y-4 mt-4">
<div className="p-3 bg-red-500/10 border border-red-500/30 rounded-md">