Skip to content

Podcast doc: two-tab Guest intake / Internal Team & Host UX & server-side isolation - #492

Merged
alexeygrigorev merged 4 commits into
mainfrom
podcast-doc-two-tabs-t2749u
Nov 21, 2026
Merged

alexeygrigorev merged 4 commits into
mainfrom
podcast-doc-two-tabs-t2749u

Conversation

@alexeygrigorev

@alexeygrigorev alexeygrigorev commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Implements Hub intake c0008987 (Alexey t2749u, t3824u, t3825u): restores the original Google Doc two-tab layout on /podcast-docs/sdoc-*, enforces strict server-side isolation so guests never see or receive internal material, and collapses already-confirmed recording times into a compact one-line bar with a Change toggle.

Changes

  • Two-tab template & strict server-side guest isolation (backend/src/sponsorDocs/templates.ts, backend/src/routes/sponsorDocs.ts):
    • Guest tab (tab: 'guest', 6 sections): Recording Time, About You (bio + photo preview), Topics, Links & Preparation Materials, optional Episode Story, optional Notes. Preserves every existing DynamoDB content key.
    • Internal tab (tab: 'internal', internal: true, 3 un-buried sections): 1) Run Sheet & Interview Questions (coldOpen, introScript, interviewQuestions, closingScript), 2) Event Description & Episode Plan (goal, audience, keyMessages), 3) Guest Research & Host Notes (sourceLinks, keyInsights, openQuestions, hostNotes).
    • Upgraded speakerContentView to an explicit non-internal field allowlist; stripped emailDelivery and hostContext from guest payloads; preserved guest PUT write isolation (includeInternal: false).
    • Added staff-only hostContext (cardId, sponsored, qna) to podcast staff doc payloads.
  • Two-tab UX & Host Recording View (frontend/src/surfaces/operations/sponsor-doc-podcast.js, sponsor-docs.js, sponsor-doc-guest-schedule.js, sponsor-docs.css):
    • Staff sees dakit .dk-tabs (Guest intake | Internal · Team & Host), with Host view (Questions) (Guest Snapshot with portrait/bio/links, proportional Run Sheet & Questions, highlighted Topics to Avoid callout, and one-click Live Audience Q&A loader) and Edit prep & research, plus collapsible Markdown export.
    • Guests see ONLY the Guest intake page — zero tab bar, zero Internal tab, zero View questions button, zero raw Markdown dump, zero "sponsor" wording, and ?tab=/?view= query params ignored & stripped.
    • AC2 (t3824u / t3825u) — Compact Recording Time: When eventMetadata.state === "confirmed", 1) Recording Time collapses to one compact line (Confirmed badge + Berlin schedule + conditional local time) with a Change button; slot radios, compact timezone row, and Save time choice stay hidden until Change is clicked (Cancel or saving collapses back). Alternative slots use a tighter 2-column desktop layout (<= 640px single-column).
    • Mobile-first (390px) responsive layout with zero horizontal overflow.
  • Preserved guarantees (422adcbe / 57e5de7c): one doc per card, ?code= in calendar invite, staff View questions mode (?view=questions), one-click live Q&A preview, photo preview, sponsored flag.

Verification

  • npm run test:frontend:coverage: 1008 pass / 0 fail (5 existing skips in unrelated suite); dakit vendor/borders/colors/scale all PASS; 81.69% coverage.
  • npm run typecheck:backend & npm run build:backend: clean + frontend artifact verified.
  • npm run test:backend: 2491 pass / 0 fail (1 existing skip); npm run test:cli: 629 pass / 0 fail; npm run test:mcp: 20 pass / 0 fail.
  • Playwright E2E (podcast-guest-form.spec.js, podcast-page.spec.js, webinar-speaker-materials.spec.js, sponsor-newsletters.spec.js): 14/14 pass (plus 49/49 earlier across full related suite).

@alexeygrigorev
alexeygrigorev merged commit ba4ab0c into main Nov 21, 2026
4 checks passed
@alexeygrigorev
alexeygrigorev deleted the podcast-doc-two-tabs-t2749u branch November 21, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant