fix: Tor Status label (was Connectivity), remove Discover install banner

- Server.vue: "Connectivity" → "Tor Status" with tor.list-services check
- Discover.vue: removed full-width install progress banner (progress shown inline on cards)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-19 16:44:46 +00:00
co-authored by Claude Opus 4.6
parent 83dfed17c0
commit 57b5fc7ea5
2 changed files with 22 additions and 64 deletions
+21 -14
View File
@@ -167,9 +167,9 @@
<svg class="w-5 h-5 text-white/60" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
<span class="text-white/80 text-sm">Connectivity</span>
<span class="text-white/80 text-sm">Tor</span>
</div>
<span class="text-sm" :class="networkData.torConnected ? 'text-green-400' : 'text-white/60'">{{ networkData.torConnected ? 'Tor Connected' : 'N/A' }}</span>
<span class="text-sm" :class="networkData.torConnected ? 'text-green-400' : 'text-white/60'">{{ networkData.torConnected ? 'Connected' : 'N/A' }}</span>
</div>
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
@@ -520,9 +520,14 @@ const connectedNodes = ref(0)
const servicesRunning = ref(true)
const restarting = ref(false)
// Connectivity status: 'connected' | 'disconnected' | 'checking'
const connectivityStatus = ref<'connected' | 'disconnected' | 'checking'>('connected')
const checkingConnectivity = ref(false)
// Tor status
const torStatusLabel = ref<'running' | 'stopped' | 'checking'>('checking')
const checkingTor = ref(false)
const torStatusColor = computed(() => {
if (torStatusLabel.value === 'running') return 'bg-green-400'
if (torStatusLabel.value === 'checking') return 'bg-yellow-400'
return 'bg-red-400'
})
// Auto-sync toggle
const autoSyncEnabled = ref(true)
@@ -854,7 +859,7 @@ async function cleanupRotatedServices() {
}
onMounted(() => {
checkConnectivity()
checkTorStatus()
loadNetworkData()
loadPeerCount()
loadInterfaces()
@@ -901,21 +906,23 @@ async function restartServices() {
}
restarting.value = false
servicesRunning.value = false
connectivityStatus.value = 'disconnected'
torStatusLabel.value = 'stopped'
}
pollHealth(15)
}
async function checkConnectivity() {
checkingConnectivity.value = true
connectivityStatus.value = 'checking'
async function checkTorStatus() {
checkingTor.value = true
torStatusLabel.value = 'checking'
try {
await rpcClient.call({ method: 'server.health', params: {} })
connectivityStatus.value = 'connected'
const res = await rpcClient.call<{ services: TorServiceInfo[] }>({ method: 'tor.list-services' })
const services = res.services || []
torServices.value = services
torStatusLabel.value = services.some(s => s.onion_address) ? 'running' : 'stopped'
} catch {
connectivityStatus.value = 'disconnected'
torStatusLabel.value = 'stopped'
} finally {
checkingConnectivity.value = false
checkingTor.value = false
}
}