feat: wire async app flows for checkout x mentions signed playback and queued generation

This commit is contained in:
Codex
2026-02-18 13:35:10 +00:00
parent d68ccc70bf
commit 74ab63f488
6 changed files with 423 additions and 60 deletions

View File

@@ -189,7 +189,7 @@ function renderAppPage({ userId, summary, jobs, flash = null }) {
});
}
function renderAudioPage({ audio, accessDecision, userId }) {
function renderAudioPage({ audio, accessDecision, userId, playbackUrl = null }) {
if (!audio) {
return shell({
title: "Audio not found",
@@ -218,7 +218,9 @@ function renderAudioPage({ audio, accessDecision, userId }) {
<h1 class="text-xl font-bold">${escapeHtml(audio.articleTitle)}</h1>
<div class="text-xs text-slate-400">Duration ~ ${audio.durationSec}s • Asset ${escapeHtml(audio.id)}</div>
${action}
${accessDecision.allowed ? `<div class="mockup-code mt-3"><pre><code>stream://${escapeHtml(audio.storageKey)}</code></pre></div>` : ""}
${accessDecision.allowed
? `<div class="mockup-code mt-3"><pre><code>${escapeHtml(playbackUrl || `stream://${audio.storageKey}`)}</code></pre></div>`
: ""}
</div>
</section>
`,