Skip to content

po4yka/RIPDPI / docs/design/rds

ripdpi-design

Verified

Use this skill to generate well-branded interfaces and assets for RIPDPI (an Android-native, Compose-first VPN and DPI-bypass app), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, brand-ship icons, and an interactive UI kit of every public composable from the live ui/components tree.

FileKindSize
COVERAGE.mdmarkdown23.0 KB
README.mdmarkdown19.6 KB
SKILL.mdskill md4.0 KB
assets/ic_launcher.pngbinary9.7 KB
assets/ic_launcher.svgother3.0 KB
assets/icons/ic_article_outline.svgother315 B
assets/icons/ic_launcher_foreground_ripdpi_clean.svgother3.0 KB
assets/icons/ic_launcher_foreground_ripdpi_cracked.svgother6.6 KB
assets/icons/ic_launcher_foreground_ripdpi_disintegrate.svgother9.5 KB
assets/icons/ic_launcher_foreground_ripdpi_glitch.svgother8.4 KB
assets/icons/ic_launcher_foreground_ripdpi_rubble.svgother7.8 KB
assets/icons/ic_launcher_foreground_ripdpi_stitch.svgother13.3 KB
assets/icons/ic_launcher_monochrome_ripdpi.svgother3.0 KB
assets/icons/ic_notification.svgother270 B
assets/icons/ic_settings_outline.svgother1.0 KB
assets/icons/ic_stop_outline.svgother153 B
assets/icons/ic_tune_outline.svgother244 B
assets/icons/ic_vpn_key_outline.svgother296 B
assets/icons/ripdpi_wordmark.svgother34.6 KB
assets/raw/ic_article_outline.xmlconfig552 B
assets/raw/ic_launcher_foreground_ripdpi_clean.xmlconfig3.4 KB
assets/raw/ic_launcher_foreground_ripdpi_cracked.xmlconfig7.0 KB
assets/raw/ic_launcher_foreground_ripdpi_disintegrate.xmlconfig10.1 KB
assets/raw/ic_launcher_foreground_ripdpi_glitch.xmlconfig8.7 KB
assets/raw/ic_launcher_foreground_ripdpi_rubble.xmlconfig8.4 KB
assets/raw/ic_launcher_foreground_ripdpi_stitch.xmlconfig13.5 KB
assets/raw/ic_launcher_monochrome_ripdpi.xmlconfig3.4 KB
assets/raw/ic_notification.xmlconfig3.4 KB
assets/raw/ic_settings_outline.xmlconfig1.2 KB
assets/raw/ic_stop_outline.xmlconfig338 B
assets/raw/ic_tune_outline.xmlconfig429 B
assets/raw/ic_vpn_key_outline.xmlconfig481 B
colors_and_type.cssother12.2 KB
diagnostic-reports-index.htmlother4.8 KB
fonts/geist_mono_bold.ttfbinary146.8 KB
fonts/geist_mono_medium.ttfbinary145.7 KB
fonts/geist_mono_regular.ttfbinary144.9 KB
fonts/geist_sans_bold.ttfbinary125.7 KB
fonts/geist_sans_medium.ttfbinary124.6 KB
fonts/geist_sans_regular.ttfbinary123.0 KB
mobile-diagnostic-report.htmlother12.0 KB
mobile-elements-showcase.htmlother19.3 KB
mobile-vpn-connection.htmlother12.2 KB
preview/a11y-color-contrast.htmlother8.3 KB
preview/a11y-focus-rings.htmlother6.5 KB
preview/android-crash-screen.htmlother2.3 KB
preview/android-customization.htmlother3.0 KB
preview/android-glance-widget.htmlother4.0 KB
preview/android-history.htmlother2.3 KB
preview/android-nav-bar.htmlother1.6 KB
preview/android-nav-rail.htmlother3.2 KB
preview/android-notif-foreground.htmlother3.4 KB
preview/android-notif-heads-up.htmlother2.5 KB
preview/android-notif-lock-screen.htmlother2.3 KB
preview/android-permission-rationale.htmlother3.0 KB
preview/android-qs-tile.htmlother2.3 KB
preview/android-scanner.htmlother1.9 KB
preview/android-splash.htmlother1.4 KB
preview/android-split-columns.htmlother2.1 KB
preview/android-status-bar.htmlother2.9 KB
preview/android-vpn-permission.htmlother2.0 KB
preview/brand-launcher-variants.htmlother4.7 KB
preview/brand-mark.htmlother3.4 KB
preview/color-anchors.htmlother2.0 KB
preview/color-destructive.htmlother1.9 KB
preview/color-edges.htmlother3.4 KB
preview/color-info.htmlother1.8 KB
preview/color-neutrals.htmlother3.3 KB
preview/color-restricted.htmlother1.9 KB
preview/color-success.htmlother1.8 KB
preview/color-warning.htmlother1.8 KB
preview/components-accordion.htmlother6.2 KB
preview/components-actuator-states.htmlother8.8 KB
preview/components-actuator.htmlother6.6 KB
preview/components-analysis-progress.htmlother2.1 KB
preview/components-bottom-nav.htmlother2.1 KB
preview/components-bottom-sheet.htmlother2.0 KB
preview/components-brand-badge.htmlother2.6 KB
preview/components-buttons.htmlother2.5 KB
preview/components-card.htmlother2.1 KB
preview/components-chips.htmlother1.6 KB
preview/components-cidr-input.htmlother5.0 KB
preview/components-combobox.htmlother6.8 KB
preview/components-command-palette.htmlother7.3 KB
preview/components-dialog.htmlother2.1 KB
preview/components-diff-viewer.htmlother6.6 KB
preview/components-dropdown.htmlother2.6 KB
preview/components-empty-state.htmlother1.5 KB
preview/components-filter-bar.htmlother5.9 KB
preview/components-heartbeat-indicator.htmlother6.4 KB
preview/components-icon-buttons.htmlother3.9 KB
preview/components-json-tree.htmlother7.7 KB
preview/components-kbd-shortcut.htmlother4.2 KB
preview/components-live-counter.htmlother7.3 KB
preview/components-log-row.htmlother2.5 KB
preview/components-log-stream.htmlother7.5 KB
preview/components-metric-pill.htmlother1.7 KB
preview/components-page-indicators.htmlother1.4 KB
preview/components-preset-card.htmlother2.0 KB
preview/components-progress-bar.htmlother4.8 KB
preview/components-section-header.htmlother1.7 KB
preview/components-segmented.htmlother4.3 KB
preview/components-settings-row.htmlother2.0 KB
preview/components-shimmer.htmlother3.9 KB
preview/components-slider.htmlother6.6 KB
preview/components-snackbar.htmlother3.0 KB
preview/components-spinner.htmlother1.8 KB
preview/components-stage-progress.htmlother1.9 KB
preview/components-stale-data-badge.htmlother5.8 KB
preview/components-status-indicator.htmlother1.9 KB
preview/components-stepper.htmlother7.0 KB
preview/components-switch.htmlother1.8 KB
preview/components-tabs.htmlother4.6 KB
preview/components-text-action.htmlother2.2 KB
preview/components-text-field.htmlother1.8 KB
preview/components-toggle-alternatives.htmlother2.4 KB
preview/components-tooltip.htmlother2.0 KB
preview/components-top-app-bar.htmlother2.3 KB
preview/components-warning-banner.htmlother3.1 KB
preview/diagnostic-censorship-signature.htmlother8.1 KB
preview/diagnostic-dns-resolvers.htmlother10.1 KB
preview/diagnostic-hop-trace.htmlother7.1 KB
preview/diagnostic-mtu-scan.htmlother7.4 KB
preview/diagnostic-port-matrix.htmlother7.5 KB
preview/diagnostic-report-summary.htmlother5.2 KB
preview/gesture-long-press-menu.htmlother6.9 KB
preview/gesture-pull-to-refresh.htmlother8.5 KB
preview/gesture-swipe-actions.htmlother7.4 KB
preview/icon-set.htmlother2.9 KB
preview/motion-connection-states.htmlother7.5 KB
preview/motion-data-ticker.htmlother5.5 KB
preview/motion-easing-curves.htmlother4.6 KB
preview/motion-page-transitions.htmlother6.0 KB
preview/motion-probe-pulse.htmlother5.4 KB
preview/motion-reduced-motion.htmlother6.7 KB
preview/motion-skeleton-shimmer.htmlother5.8 KB
preview/motion-toast-choreography.htmlother8.4 KB
preview/motion-tokens.htmlother2.8 KB
preview/onboarding-coach-mark.htmlother7.6 KB
preview/onboarding-tour-cards.htmlother5.6 KB
preview/preview.cssother1.9 KB
preview/radii.htmlother3.8 KB
preview/share-bottom-sheet.htmlother5.6 KB
preview/share-link-preview.htmlother5.1 KB
preview/share-qr-code.htmlother5.2 KB
preview/share-result-viewer.htmlother3.5 KB
preview/share-stats-card.htmlother3.5 KB
preview/spacing-scale.htmlother3.6 KB
preview/strokes.htmlother1.3 KB
preview/touch-targets.htmlother1.9 KB
preview/type-body.htmlother1.4 KB
preview/type-brand.htmlother1.1 KB
preview/type-display.htmlother1.4 KB
preview/type-mono.htmlother1.4 KB
preview/type-section-title.htmlother1.3 KB
preview/vpn-awg-editor.htmlother12.6 KB
preview/vpn-block-check.htmlother3.5 KB
preview/vpn-confirm-disconnect.htmlother2.4 KB
preview/vpn-data-transparency.htmlother3.9 KB
preview/vpn-degradation-strip.htmlother5.5 KB
preview/vpn-detection-check.htmlother3.7 KB
preview/vpn-dns-picker.htmlother3.4 KB
preview/vpn-export-consent.htmlother3.6 KB
preview/vpn-first-run-test.htmlother5.1 KB
preview/vpn-handshake-timeline.htmlother9.7 KB
preview/vpn-identity-card.htmlother2.8 KB
preview/vpn-in-app-browser.htmlother3.9 KB
preview/vpn-kill-switch.htmlother3.7 KB
preview/vpn-latency-graph.htmlother2.9 KB
preview/vpn-network-change.htmlother2.9 KB
preview/vpn-oom-recovery.htmlother2.4 KB
preview/vpn-pcap-viewer.htmlother3.1 KB
preview/vpn-per-app-routing.htmlother3.9 KB
preview/vpn-permission-summary.htmlother3.4 KB
preview/vpn-presets-gallery.htmlother3.3 KB
preview/vpn-probe-live.htmlother3.0 KB
preview/vpn-profile-switcher.htmlother2.9 KB
preview/vpn-quick-vs-advanced.htmlother3.0 KB
preview/vpn-reconnect-toast.htmlother5.9 KB
preview/vpn-relay-picker.htmlother4.0 KB
preview/vpn-replay-failure.htmlother3.6 KB
preview/vpn-session-card.htmlother7.2 KB
preview/vpn-snooze.htmlother2.9 KB
preview/vpn-state-history.htmlother9.2 KB
preview/vpn-state-machine.htmlother11.4 KB
preview/vpn-strategy-ab.htmlother5.0 KB
preview/vpn-strategy-editor.htmlother4.2 KB
preview/vpn-strategy-import.htmlother3.6 KB
preview/vpn-strategy-probe-wizard.htmlother3.8 KB
preview/vpn-throughput-graph.htmlother3.5 KB
preview/whats-new-card.htmlother6.1 KB
ui_kits/android/MobileDiagnosticReport.jsxother33.4 KB
ui_kits/android/MobileElements.jsxother34.1 KB
ui_kits/android/MobileVpnConnection.jsxother36.6 KB
ui_kits/android/README.mdmarkdown3.5 KB
ui_kits/android/RipDpiComponents.jsxother27.1 KB
ui_kits/android/RipDpiScreens.jsxother17.7 KB
ui_kits/android/android-frame.jsxother9.2 KB
ui_kits/android/index.htmlother14.2 KB

ui_kits/android/RipDpiScreens.jsx

View on GitHub
/* ui_kits/android/RipDpiScreens.jsx
   Five screens: Home, Diagnostics, Settings (Strategy / Advanced),
   Logs, Onboarding. Wired with simple in-memory click-through state. */

// ─────────────────────────────────────────────────────────────
// HomeScreen — recreates ui/screens/home/HomeScreen.kt
// ─────────────────────────────────────────────────────────────
function HomeScreen({ state, dispatch }) {
  const { c } = useTheme();
  const { bypass, vpn, diagnostic, errorBanner } = state;

  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '0 20px 24px' }}>
      <RipDpiTopAppBar title="RIPDPI" subtitle={vpn.connected || bypass.active ? `CONNECTED · ${state.uptime}` : 'IDLE'} />

      {errorBanner && (
        <WarningBanner
          title="Connection failed"
          message="The service stopped before the tunnel could be established. Retry to restart the strategy."
          tone="error"
          onDismiss={() => dispatch({ type: 'dismissError' })}
        />
      )}

      <ConnectionActuator
        connected={vpn.connected || bypass.active}
        onChange={(c) => dispatch({ type: c ? 'connectVpn' : 'disconnectAll' })}
      />

      <HomeModeCard
        title="Local DPI bypass"
        primaryLabel="tlsrec_split_host · AdGuard DoH"
        secondaryLabel={bypass.active ? `Active ${state.uptime}` : null}
        status={bypass.active ? 'active' : 'idle'}
        statusLabel={bypass.active ? `Active ${state.uptime}` : 'Inactive'}
        actionLabel={bypass.active ? 'Disable' : 'Enable'}
        onAction={() => dispatch({ type: bypass.active ? 'disableBypass' : 'enableBypass' })}
        onConfigure={() => dispatch({ type: 'nav', to: 'strategy' })}
      />

      <HomeModeCard
        title="VPN with remote server"
        primaryLabel="relay.example:443"
        secondaryLabel={vpn.connected ? `Connected ${state.uptime}` : null}
        status={vpn.connecting ? 'warning' : vpn.connected ? 'active' : 'idle'}
        statusLabel={vpn.connecting ? `Connecting…` : (vpn.connected ? `Connected ${state.uptime}` : 'Inactive')}
        actionLabel={vpn.connected ? 'Disable' : 'Enable'}
        loading={vpn.connecting}
        onAction={() => dispatch({ type: vpn.connected ? 'disconnectVpn' : 'connectVpn' })}
        onConfigure={() => dispatch({ type: 'nav', to: 'vpnConfig' })}
      />

      <HomeModeCard
        title="Network diagnostic"
        primaryLabel={diagnostic.running ? `Stage ${diagnostic.stage} of 4 — Testing TCP` : 'No analysis yet'}
        status={diagnostic.running ? 'warning' : 'idle'}
        statusLabel={diagnostic.running ? 'Running' : 'Inactive'}
        actionLabel="Run scan"
        loading={diagnostic.running}
        onAction={() => dispatch({ type: 'runDiagnostic' })}
        onConfigure={() => dispatch({ type: 'nav', to: 'diagnostics' })}
      />

      <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', marginTop: 4 }}>
        <MetricPill label={`RTT ${state.rtt} ms`} />
        <MetricPill label={`UP ${state.uptimePct}%`} tone="success" />
        <MetricPill label="MTU 1500" />
        <MetricPill label={`↓ ${state.rx}`} />
        <MetricPill label={`↑ ${state.tx}`} />
      </div>
    </div>
  );
}

function HomeModeCard({ title, primaryLabel, secondaryLabel, status, statusLabel, actionLabel, loading, onAction, onConfigure }) {
  const variant = status === 'active' ? 'tonal' : (loading ? 'elevated' : 'outlined');
  return (
    <RipDpiCard variant={variant}>
      <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
        <span style={{ font: `700 14px/20px ${RDP.type.sans}` }}>{title}</span>
        <StatusIndicator label={statusLabel} tone={status} />
      </div>
      <div style={{ font: `500 14px/20px ${RDP.type.sans}` }}>{primaryLabel}</div>
      {secondaryLabel && (
        <div style={{ font: `400 12px/16px ${RDP.type.mono}`, color: '#575757' }}>{secondaryLabel}</div>
      )}
      <div style={{ display: 'flex', gap: 8, marginTop: 4 }}>
        <RipDpiButton text={actionLabel} loading={loading} onClick={onAction} style={{ flex: 1 }}/>
        <RipDpiButton text="Configure" variant="outline" onClick={onConfigure} style={{ flex: 1 }}/>
      </div>
    </RipDpiCard>
  );
}

// ─────────────────────────────────────────────────────────────
// DiagnosticsScreen — DiagnosticsScreen.kt
// ─────────────────────────────────────────────────────────────
function DiagnosticsScreen({ state, dispatch }) {
  const { c } = useTheme();
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '0 20px 24px' }}>
      <ScreenHeader title="Diagnostics" onBack={() => dispatch({ type: 'nav', to: 'home' })}/>

      <RipDpiCard variant="tonal">
        <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
          <span style={{ font: `700 14px/20px ${RDP.type.sans}` }}>Network health</span>
          <StatusIndicator label="HEALTHY" tone="active" />
        </div>
        <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', marginTop: 4 }}>
          <MetricPill label="DNS  12 ms" tone="success" />
          <MetricPill label="TCP  18 ms" tone="success" />
          <MetricPill label="TLS  104 ms" tone="warning" />
          <MetricPill label="QUIC blocked" tone="danger" />
        </div>
      </RipDpiCard>

      <SectionHeader>DPI probe</SectionHeader>
      <RipDpiCard>
        <SettingsRow title="cloudflare-dns.com" subtitle="HTTP/2" value="403"
          trailing={<StatusIndicator label="" tone="error"/>} />
        <Hairline />
        <SettingsRow title="adblock.dns.adguard.com" subtitle="DoH" value="200 OK"
          trailing={<StatusIndicator label="" tone="active"/>} />
        <Hairline />
        <SettingsRow title="quad9.dns.net" subtitle="DoT" value="timeout"
          trailing={<StatusIndicator label="" tone="warning"/>} />
      </RipDpiCard>

      <SectionHeader>Tools</SectionHeader>
      <RipDpiCard>
        <SettingsRow title="Strategy probe suite" subtitle="Try 22 known strategies in sequence"
          trailing={<Chev/>} onClick={() => {}} />
        <Hairline />
        <SettingsRow title="Pluggable transport probe" subtitle="obfs4 · meek · webtunnel"
          trailing={<Chev/>} onClick={() => {}} />
        <Hairline />
        <SettingsRow title="CIDR whitelist" subtitle="ASN-scoped routing test"
          trailing={<Chev/>} onClick={() => {}} />
      </RipDpiCard>

      <div style={{ display: 'flex', gap: 8 }}>
        <RipDpiButton text="Re-run scan" onClick={() => dispatch({ type: 'runDiagnostic' })} style={{ flex: 1 }}/>
        <RipDpiButton text="Share report" variant="outline" style={{ flex: 1 }}/>
      </div>
    </div>
  );
}

function Chev() {
  return (
    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round">
      <polyline points="9 6 15 12 9 18"/>
    </svg>
  );
}

// ─────────────────────────────────────────────────────────────
// StrategyConfigScreen — settings/StrategyConfigScreen.kt
// ─────────────────────────────────────────────────────────────
function StrategyConfigScreen({ state, dispatch }) {
  const { c } = useTheme();
  const [strategy, setStrategy] = React.useState(state.strategy);

  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '0 20px 24px' }}>
      <ScreenHeader title="Strategy" onBack={() => dispatch({ type: 'nav', to: 'home' })}/>

      <WarningBanner
        title="Manual step required"
        message="Some strategies need root or a working DoH resolver. Tap each chip to read what it does."
        tone="info"
      />

      <SectionHeader>Preset</SectionHeader>
      <div style={{ display: 'flex', flexWrap: 'wrap', gap: 8 }}>
        {['tlsrec_split_host','desync_fake','fragment_drop','host_fake','seq_overlap'].map(p => (
          <RipDpiChip key={p} text={p} selected={p === strategy} onClick={() => setStrategy(p)} />
        ))}
      </div>

      <SectionHeader>Configuration</SectionHeader>
      <RipDpiCard>
        <RipDpiTextField label="Server" value={state.server}
          onChange={v => dispatch({ type: 'set', key: 'server', value: v })}
          helperText="IPv4, IPv6, or hostname. Port optional, defaults to 443."/>
        <div style={{ height: 12 }}/>
        <RipDpiTextField label="Strategy args" value={state.args}
          onChange={v => dispatch({ type: 'set', key: 'args', value: v })}
          helperText="Space-separated flags. Use `man rosa` for reference."/>
      </RipDpiCard>

      <SectionHeader>Behavior</SectionHeader>
      <RipDpiCard>
        <RipDpiSwitch checked={state.autoReconnect}
          onChange={v => dispatch({ type: 'set', key: 'autoReconnect', value: v })}
          label="Auto-reconnect" helperText="Restart VPN when the network changes"/>
        <Hairline />
        <RipDpiSwitch checked={state.recordPcap}
          onChange={v => dispatch({ type: 'set', key: 'recordPcap', value: v })}
          label="Record PCAP" helperText="Capture packets while diagnostic runs"/>
        <Hairline />
        <RipDpiSwitch checked={false} enabled={false}
          label="Bypass IPv6" helperText="Requires command-line mode"/>
      </RipDpiCard>

      <div style={{ display: 'flex', gap: 8 }}>
        <RipDpiButton text="Apply strategy"
          onClick={() => dispatch({ type: 'applyStrategy', strategy })}
          style={{ flex: 1 }} />
        <RipDpiButton text="Reset to defaults" variant="ghost" style={{ flex: 1 }}/>
      </div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// VpnConfigScreen — config/VpnConfigScreen.kt
// ─────────────────────────────────────────────────────────────
function VpnConfigScreen({ state, dispatch }) {
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '0 20px 24px' }}>
      <ScreenHeader title="VPN configuration" onBack={() => dispatch({ type: 'nav', to: 'home' })}/>

      <SectionHeader>Remote relay</SectionHeader>
      <RipDpiCard>
        <RipDpiTextField label="Host" value="relay.example" onChange={()=>{}}/>
        <div style={{ height: 12 }}/>
        <RipDpiTextField label="Port" value="443" onChange={()=>{}}/>
        <div style={{ height: 12 }}/>
        <RipDpiTextField label="Public key" value="cLmZJyR8…7v8mPb=" onChange={()=>{}}/>
      </RipDpiCard>

      <SectionHeader>Transport</SectionHeader>
      <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}>
        {['AmneziaWG','OpenVPN','WireGuard','Outline'].map((t,i) => (
          <RipDpiChip key={t} text={t} selected={i === 0} onClick={()=>{}}/>
        ))}
      </div>

      <SectionHeader>Routing</SectionHeader>
      <RipDpiCard>
        <SettingsRow title="Split tunnel" subtitle="Per-app routing rules" value="3 apps"
          trailing={<Chev/>} onClick={()=>{}}/>
        <Hairline/>
        <SettingsRow title="CIDR whitelist" subtitle="Bypass corporate ranges" value="0 ranges"
          trailing={<Chev/>} onClick={()=>{}}/>
        <Hairline/>
        <SettingsRow title="DNS resolver" value="AdGuard DoH"
          trailing={<Chev/>} onClick={()=>{}}/>
      </RipDpiCard>

      <RipDpiButton text="Save profile" onClick={() => dispatch({ type: 'nav', to: 'home' })}/>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// LogsScreen — logs/LogsScreen.kt
// ─────────────────────────────────────────────────────────────
function LogsScreen({ state, dispatch }) {
  const { c } = useTheme();
  const [filter, setFilter] = React.useState('all');
  const rows = LOG_ROWS.filter(r => filter === 'all' || r.lvl.toLowerCase() === filter);
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '0 20px 24px' }}>
      <ScreenHeader title="Logs" onBack={() => dispatch({ type: 'nav', to: 'home' })}/>

      <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}>
        {['all','info','warn','error'].map(f => (
          <RipDpiChip key={f} text={f.toUpperCase()} selected={f === filter} onClick={() => setFilter(f)}/>
        ))}
      </div>

      <RipDpiCard variant="elevated" style={{ padding: 0 }}>
        <div style={{ padding: 12 }}>
          {rows.map((r, i) => (
            <div key={i} style={{ display: 'grid', gridTemplateColumns: '120px 60px 1fr', gap: 12, padding: '4px 0', font: `400 12px/20px ${RDP.type.mono}` }}>
              <span style={{ color: c.mutedForeground }}>{r.ts}</span>
              <span style={{ color: r.lvl === 'WARN' ? c.warning : r.lvl === 'ERROR' ? c.destructive : c.foreground }}>{r.lvl}</span>
              <span style={{ color: c.foreground }}>{r.msg}</span>
            </div>
          ))}
        </div>
      </RipDpiCard>

      <div style={{ display: 'flex', gap: 8 }}>
        <RipDpiButton text="Copy" variant="outline" style={{ flex: 1 }}/>
        <RipDpiButton text="Export PCAP" variant="outline" style={{ flex: 1 }}/>
        <RipDpiButton text="Reset cache" variant="destructive" style={{ flex: 1 }}/>
      </div>
    </div>
  );
}

const LOG_ROWS = [
  { ts: '12:18:42.013', lvl: 'INFO',  msg: 'strategy.applied  tlsrec_split_host' },
  { ts: '12:18:42.087', lvl: 'INFO',  msg: 'vpn.start  iface=tun0 mtu=1500' },
  { ts: '12:18:42.211', lvl: 'INFO',  msg: 'dns.resolve  cloudflare-dns.com → 1.1.1.1' },
  { ts: '12:18:42.804', lvl: 'WARN',  msg: 'probe.timeout  host=cloudflare-dns.com' },
  { ts: '12:18:42.910', lvl: 'INFO',  msg: 'fragment.send  count=8 bytes=1392' },
  { ts: '12:18:43.005', lvl: 'INFO',  msg: 'tls.handshake  alpn=h2 cipher=TLS_AES_256_GCM' },
  { ts: '12:18:43.118', lvl: 'ERROR', msg: 'quic.blocked   reason=fingerprint host=youtube.com' },
  { ts: '12:18:43.402', lvl: 'INFO',  msg: 'fallback.tcp   strategy=fragment_drop' },
  { ts: '12:18:43.518', lvl: 'INFO',  msg: 'route.add      10.0.0.0/8 dev tun0' },
];

// ─────────────────────────────────────────────────────────────
// Onboarding (single page sample)
// ─────────────────────────────────────────────────────────────
function OnboardingScreen({ dispatch }) {
  const { c } = useTheme();
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 24, padding: '24px 20px', minHeight: '100%' }}>
      <div style={{ width: 88, height: 88, borderRadius: 22, background: c.muted, border: `1px solid ${c.cardBorder}`, padding: 6, alignSelf: 'flex-start' }}>
        <img src="../../assets/icons/ic_launcher_foreground_ripdpi_clean.svg" style={{ width: '100%', height: '100%', objectFit: 'contain' }}/>
      </div>
      <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
        <h1 style={{ font: `500 22px/30px ${RDP.type.sans}`, margin: 0 }}>Probe. Then connect.</h1>
        <p style={{ font: `400 15px/22px ${RDP.type.sans}`, color: c.mutedForeground, margin: 0 }}>
          RIPDPI tests how the local network treats your traffic, then applies the strategy most likely to work.
          The diagnostic runs in 4 stages — DNS, TCP, TLS, QUIC.
        </p>
      </div>

      <RipDpiCard>
        <SettingsRow title="Step 1 · VPN permission" subtitle="Required to install the tunnel interface"
          value="Granted" trailing={<StatusIndicator label="" tone="active"/>}/>
        <Hairline/>
        <SettingsRow title="Step 2 · Ignore battery optimization" subtitle="Keeps the service running in background"
          value="Pending" trailing={<StatusIndicator label="" tone="warning"/>}/>
        <Hairline/>
        <SettingsRow title="Step 3 · Choose strategy" subtitle="Defaults work for most networks"
          value="Set later" trailing={<StatusIndicator label="" tone="idle"/>}/>
      </RipDpiCard>

      <div style={{ flex: 1 }}/>
      <RipDpiButton text="Continue" onClick={() => dispatch({ type: 'nav', to: 'home' })}/>
    </div>
  );
}

function ScreenHeader({ title, onBack }) {
  const { c } = useTheme();
  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: 12, minHeight: 56, paddingTop: 16 }}>
      <RipDpiIconButton size={40} variant="ghost"
        icon={<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"><polyline points="15 6 9 12 15 18"/></svg>}
        onClick={onBack}/>
      <h1 style={{ font: `500 20px/28px ${RDP.type.sans}`, color: c.foreground, margin: 0 }}>{title}</h1>
    </div>
  );
}

Object.assign(window, {
  HomeScreen, DiagnosticsScreen, StrategyConfigScreen, VpnConfigScreen,
  LogsScreen, OnboardingScreen, ScreenHeader, HomeModeCard, Chev,
});
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall