Add Android APK fleet nodes with Crucible UI integration and tests.

APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
This commit is contained in:
AetherForge
2026-06-07 02:44:29 -07:00
parent d9f36f182c
commit 50ebfe53cb
89 changed files with 2849 additions and 82 deletions

View File

@@ -2,6 +2,7 @@ import { useState, useEffect, useMemo } from 'react';
import { useWebSocket } from '../hooks/useWebSocket';
import { api } from '../api/client';
import { formatHashrate } from '../help/fleetFilters';
import { platformIcon } from '../help/platform';
import './ROIPage.css';
// ── helpers ───────────────────────────────────────────────────────────────
@@ -15,14 +16,6 @@ function fmtUSD(n: number): string {
return `$${n.toFixed(2)}`;
}
function platformIcon(platform?: string): string {
const p = (platform ?? '').toLowerCase();
if (p.includes('win')) return '⊞';
if (p.includes('linux')) return '🐧';
if (p.includes('darwin')) return '';
return '⬡';
}
function effBadge(pct: number): { label: string; cls: string } {
if (pct >= 75) return { label: 'TOP', cls: 'top' };
if (pct >= 40) return { label: 'MID', cls: 'mid' };