pediatric-ai-scribe-v3/mobile/src/index.html
Daniel 4935290ad2 Fix Android mic permission, simplify launcher, remove broken biometric
- MainActivity: request RECORD_AUDIO permission at app start via
  ActivityCompat (not WebChromeClient override which broke Capacitor bridge)
- Simplify launcher: remove server reachability check (was failing in
  WebView), just save URL and navigate directly
- Remove biometric auth from launcher (Capacitor plugins need ES module
  bundler, not available in plain HTML). Biometric can be added later
  via the web app with proper Capacitor runtime.
- Add webContentsDebuggingEnabled for development
2026-04-11 03:34:47 +02:00

59 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no">
<title>PedScribe</title>
<link rel="stylesheet" href="launcher.css">
</head>
<body>
<div class="launcher">
<!-- Auto-redirect screen (shown when server URL is saved) -->
<div id="connecting-screen" style="display:none;">
<div class="logo-icon">
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="24" cy="24" r="22" fill="white" fill-opacity="0.15"/>
<path d="M24 12c-2.2 0-4 1.8-4 4v8c0 2.2 1.8 4 4 4s4-1.8 4-4V16c0-2.2-1.8-4-4-4z" fill="white"/>
<path d="M32 22v2c0 4.4-3.6 8-8 8s-8-3.6-8-8v-2h-2v2c0 5.1 3.8 9.3 8.7 9.9V36H20v2h8v-2h-2.7v-2.1c4.9-.6 8.7-4.8 8.7-9.9v-2h-2z" fill="white"/>
</svg>
</div>
<h1>PedScribe</h1>
<p class="subtitle">Connecting...</p>
<div class="spinner"></div>
<button id="btn-change-server" class="btn-link">Change Server</button>
</div>
<!-- Server URL setup screen -->
<div id="setup-screen">
<div class="logo-icon">
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="24" cy="24" r="22" fill="white" fill-opacity="0.15"/>
<path d="M24 12c-2.2 0-4 1.8-4 4v8c0 2.2 1.8 4 4 4s4-1.8 4-4V16c0-2.2-1.8-4-4-4z" fill="white"/>
<path d="M32 22v2c0 4.4-3.6 8-8 8s-8-3.6-8-8v-2h-2v2c0 5.1 3.8 9.3 8.7 9.9V36H20v2h8v-2h-2.7v-2.1c4.9-.6 8.7-4.8 8.7-9.9v-2h-2z" fill="white"/>
</svg>
</div>
<h1>PedScribe</h1>
<p class="subtitle">AI-Powered Pediatric Clinical Documentation</p>
<div class="form-group">
<label>Server URL</label>
<input type="url" id="server-url" placeholder="https://app.pedshub.com" autocapitalize="none" autocorrect="off" spellcheck="false">
</div>
<button id="btn-connect" class="btn-primary">
Connect
</button>
<p class="hint">Enter the URL of your Pediatric AI Scribe server. If you don't have one, use the default.</p>
<div class="footer">
<p>Pediatric AI Scribe by PedsHub</p>
<p>Committed to healthcare equity</p>
</div>
</div>
</div>
<script src="launcher.js"></script>
</body>
</html>