Attribution (from prior session, now committed): - llm_attributor: mechanical narration evidence, unnamed-role rules, wider context (12->20 lines, 8->40 utterances), uncertain flag, verify pass with 20-item batches and invented-name gate - reattribute_all: --min-id/--max-id, --dry-run, --no-verify, --verify-rounds, qa_accepted skip guard, per-chapter elapsed times - test_multipass_attribution: 19 tests Web banner: - voice_maintenance module: pid-liveness-checked marker file so a crashed run self-heals the banner away - routes/base.html: amber banner on every page while the LLM re-attribution run has Qwen3-TTS offline - reattribute_all: sets banner before switching models, clears in finally (also on failure) - test_voice_maintenance: 8 tests qwen3-tts submodule: UmbraAudio Voice Studio branding in web demo (icon data-uri + favicon logo).
107 lines
7.8 KiB
HTML
107 lines
7.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>UmbraAudio Review</title>
|
|
<link rel="icon" type="image/png" href="/static/logo.png">
|
|
<script src="https://unpkg.com/htmx.org@1.9"></script>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: system-ui, sans-serif; background: #1a1a2e; color: #e0e0e0; padding: 2rem; max-width: 1200px; margin: 0 auto; }
|
|
h1 { color: #7c3aed; margin-bottom: 1.5rem; }
|
|
h2 { color: #a78bfa; margin-bottom: 1rem; }
|
|
h3 { color: #c4b5fd; margin-bottom: 0.5rem; }
|
|
.card { background: #16213e; border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; border: 1px solid #333; }
|
|
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
|
|
.stat { background: #0f3460; border-radius: 6px; padding: 1rem; text-align: center; }
|
|
.stat .num { font-size: 2rem; font-weight: bold; color: #7c3aed; }
|
|
.stat .label { color: #94a3b8; margin-top: 0.25rem; }
|
|
.btn { padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; margin-right: 0.5rem; text-decoration: none; display: inline-block; }
|
|
.btn-approve { background: #10b981; color: white; }
|
|
.btn-reject { background: #ef4444; color: white; }
|
|
.btn-generate { background: #7c3aed; color: white; }
|
|
.btn-primary { background: #3b82f6; color: white; }
|
|
.nav { margin-bottom: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
|
|
.nav a { color: #7c3aed; text-decoration: none; padding: 0.5rem 1rem; border: 1px solid #7c3aed; border-radius: 4px; }
|
|
.nav a:hover { background: #7c3aed; color: white; }
|
|
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
|
|
.badge-green { background: #065f46; color: #6ee7b7; }
|
|
.badge-red { background: #7f1d1d; color: #fca5a5; }
|
|
.badge-yellow { background: #78350f; color: #fde68a; }
|
|
.badge-blue { background: #1e3a5f; color: #93c5fd; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #333; }
|
|
th { color: #a78bfa; font-weight: 600; }
|
|
tr:hover { background: #1e293b; }
|
|
audio { width: 100%; height: 35px; }
|
|
.defect-warn { border-left: 3px solid #f59e0b; }
|
|
.defect-error { border-left: 3px solid #ef4444; }
|
|
.chapter-nav { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
|
|
.chapter-nav a { padding: 0.3rem 0.6rem; border-radius: 4px; background: #1e293b; color: #94a3b8; text-decoration: none; font-size: 0.85rem; }
|
|
.chapter-nav a:hover, .chapter-nav a.active { background: #7c3aed; color: white; }
|
|
.pipeline-progress { display: flex; align-items: center; gap: 0; margin-bottom: 1.5rem; padding: 1rem; background: #16213e; border-radius: 8px; border: 1px solid #333; overflow-x: auto; }
|
|
.pipeline-step { display: flex; flex-direction: column; align-items: center; min-width: 80px; text-align: center; }
|
|
.pipeline-step .step-number { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85rem; margin-bottom: 0.25rem; }
|
|
.pipeline-step .step-label { font-size: 0.8rem; font-weight: 600; }
|
|
.pipeline-step .step-desc { font-size: 0.7rem; color: #64748b; }
|
|
.pipeline-step.pending .step-number { background: #374151; color: #6b7280; border: 2px solid #4b5563; }
|
|
.pipeline-step.pending .step-label { color: #6b7280; }
|
|
.pipeline-step.active .step-number { background: #7c3aed; color: white; border: 2px solid #7c3aed; }
|
|
.pipeline-step.active .step-label { color: #a78bfa; }
|
|
.pipeline-step.completed .step-number { background: #065f46; color: #34d399; border: 2px solid #10b981; }
|
|
.pipeline-step.completed .step-label { color: #34d399; }
|
|
.pipeline-connector { flex: 1; height: 2px; min-width: 20px; background: #374151; }
|
|
.pipeline-connector.completed { background: #10b981; }
|
|
.card-completed { border-left: 3px solid #10b981; }
|
|
.progress-bar { width: 100%; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; }
|
|
.progress-fill { height: 100%; background: #7c3aed; border-radius: 3px; transition: width 0.3s ease; }
|
|
.qa-box { display: inline-flex; align-items: center; gap: 0.3rem; background: #b91c1c; border: 2px solid #fff; border-radius: 6px; padding: 0.15rem 0.3rem; }
|
|
.qa-badge-wrap { position: relative; display: inline-flex; }
|
|
.qa-badge { background: #fff; color: #b91c1c; font-weight: 900; width: 1.5rem; height: 1.5rem; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; cursor: help; }
|
|
.qa-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 60; width: 340px; max-height: 260px; overflow-y: auto; background: #0b1120; color: #f8fafc; border: 2px solid #f87171; border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 0.75rem; line-height: 1.45; box-shadow: 0 8px 20px rgba(0,0,0,0.65); }
|
|
.qa-badge-wrap:hover .qa-tooltip, .qa-badge-wrap:focus-within .qa-tooltip { display: block; }
|
|
.qa-tl-head { font-weight: 700; color: #fca5a5; margin-bottom: 0.35rem; }
|
|
.qa-tl-item { margin-bottom: 0.5rem; }
|
|
.qa-tl-item:last-child { margin-bottom: 0; }
|
|
.qa-tl-item b { color: #fca5a5; }
|
|
.qa-tl-ev { color: #cbd5e1; }
|
|
.qa-btn { margin-right: 0; font-size: 0.65rem; padding: 0.15rem 0.4rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 700; white-space: nowrap; }
|
|
.qa-recheck { background: #f59e0b; color: #1a1a2e; }
|
|
.qa-recheck:hover { background: #fbbf24; }
|
|
.qa-accept { background: #10b981; color: #fff; }
|
|
.qa-accept:hover { background: #34d399; }
|
|
.qa-btn:disabled { opacity: 0.6; cursor: default; }
|
|
.qa-accepted-badge { display: inline-flex; align-items: center; gap: 0.2rem; background: #065f46; color: #6ee7b7; font-size: 0.65rem; font-weight: 700; border-radius: 4px; padding: 0.15rem 0.4rem; cursor: help; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{% set ap = active_project(request) %}
|
|
<h1 style="display:flex; align-items:center; gap:0.75rem;">
|
|
<img src="/static/logo.png" alt="UmbraAudio logo" style="height:56px; width:56px; border-radius:12px;">
|
|
UmbraAudio Review
|
|
<span class="badge badge-blue" style="margin-left:auto; font-size:0.9rem; padding:0.4rem 0.9rem; display:inline-flex; align-items:center; gap:0.5rem;" title="Project: {{ ap.slug }}">
|
|
Active project: <strong style="color:#e0e7ff">{{ ap.name }}</strong>
|
|
</span>
|
|
</h1>
|
|
<nav class="nav">
|
|
<a href="/">Dashboard</a>
|
|
<a href="/speakers">Speakers</a>
|
|
<a href="/proper-names">Proper Names</a>
|
|
<a href="/chapters-audio">Chapters</a>
|
|
<a href="/quality">Quality</a>
|
|
<a href="/library">Lib</a>
|
|
<a href="/m4b-meta">m4b Meta</a>
|
|
<a href="/projects" style="margin-left: auto; border-color: #a78bfa;">Projects</a>
|
|
</nav>
|
|
{% set vm = voice_maintenance() %}
|
|
{% if vm %}
|
|
<div style="padding:0.75rem 1rem; margin-bottom:1rem; background:#1a1a2e; border:1px solid #b45309; border-left:4px solid #f59e0b; border-radius:6px">
|
|
<strong style="color:#f59e0b">⚠ Voice re-generation unavailable</strong>
|
|
<span style="color:#94a3b8; font-size:0.85rem"> — {{ vm.reason }} Voice generation will fall back to Edge-TTS (loses raspy/texture) until the run finishes.</span>
|
|
</div>
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</body>
|
|
</html>
|