flow-extension/popup.html
type-two 501431bf59 Flow rinse: browser downloads, fast-fail, autoStart, launcher + self-healing launchd
- background.js: chrome.downloads via page session (no CSP/base64)
- content.js: fast-fail on Flow error banner, image vs video timeouts, autoStart
- local_server_example.py: /enqueue + /save, downloads/ output, resume-skip
- launch.sh: idempotent server-up + caffeinate + single-tab focus
- install.sh + plist: self-healing agent every 10 min (TCC-safe App Support copy)
- flowclient.py: enqueue/wait_for helper for game projects
- README: full setup + macOS TCC gotcha

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 01:20:32 +10:00

93 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flow Auto-Pilot</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="app-container">
<!-- Header -->
<header class="app-header">
<div class="logo-area">
<span class="logo-icon"></span>
<div class="logo-text">
<h1>Flow Auto-Pilot</h1>
<span class="subtext">Labs FX Integration</span>
</div>
</div>
<div class="status-indicator" id="global-status">
<span class="dot"></span>
<span class="status-label">Idle</span>
</div>
</header>
<!-- Main Control Panel -->
<main class="control-panel">
<!-- Connection Input -->
<div class="form-group">
<label for="server-url">Local Server URL</label>
<div class="input-with-button">
<input type="url" id="server-url" value="http://localhost:8017" placeholder="http://localhost:8017">
</div>
</div>
<!-- Action Button -->
<div class="actions">
<button id="toggle-btn" class="btn btn-primary start-state">Start Automation</button>
</div>
<label class="form-group" style="display:flex;align-items:center;gap:8px;cursor:pointer">
<input type="checkbox" id="auto-start"> Auto-start when the Flow tab opens
</label>
<!-- Console / Activity Logs -->
<div class="console-section">
<div class="console-header">
<span>Activity Log</span>
<button id="clear-logs" class="btn-text">Clear</button>
</div>
<div class="console-body" id="log-console">
<div class="log-entry system-log">[System] Extension loaded. Click Start to begin.</div>
</div>
</div>
<!-- Collapsible Settings -->
<details class="advanced-settings">
<summary>Advanced Selector Adjustments</summary>
<div class="settings-content">
<p class="settings-info">Customize targets if the page layout changes. Leave blank for auto-detection.</p>
<div class="form-group">
<label for="sel-prompt">Prompt Input Selector</label>
<input type="text" id="sel-prompt" placeholder="Auto-detect (textarea / editable div)">
</div>
<div class="form-group">
<label for="sel-generate">Submit Button Selector</label>
<input type="text" id="sel-generate" placeholder="Auto-detect (→ arrow / send)">
</div>
<div class="form-group">
<label for="sel-model">Results / Media Selector</label>
<input type="text" id="sel-model" placeholder="Auto-detect (media library container)">
</div>
<div class="form-group">
<label for="poll-interval">Polling Interval (ms)</label>
<input type="number" id="poll-interval" value="4000" min="1000" step="500">
</div>
</div>
</details>
</main>
<!-- Footer -->
<footer class="app-footer">
<span>Active Tab Automation</span>
<span class="version">v1.0.0</span>
</footer>
</div>
<script src="popup.js"></script>
</body>
</html>