Skip to content

Podcast docs: clean header hierarchy + split guest Name/Role/Company - #514

Merged
alexeygrigorev merged 9 commits into
mainfrom
fix/podcast-doc-header-guest-fields
Nov 27, 2026
Merged

alexeygrigorev merged 9 commits into
mainfrom
fix/podcast-doc-header-guest-fields

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Summary

  • Keep projectDocumentEvent doc.title as the clean episode/event title (metadata.title), removing date/timezone/status concatenation from the H1.
  • Redesign the document header hierarchy (sponsor-docs.js, sponsor-doc-guest-schedule.js, sponsor-docs.css):
    • H1 shows only the title.
    • Clear labeled status chips (Document: Draft / Submitted / Ready, Event: Confirmed / Tentative / Unscheduled, optional Sponsored).
    • Schedule block (Berlin + Your time + duration) appears once without repetition.
    • Visually secondary footer line for the doc-type label and last-edited timestamp, formatted in Europe/Berlin (formatEditedTimestamp).
  • Split guestName ("Guest Name & Role / Company") into Name (guestName), Role (guestRole), and Company (guestCompany) across all four podcast templates (podcast, podcast-guest-research, podcast-run-sheet, podcast-episode-brief), Markdown exports, Host View snapshot, and frontend/backend validation (maxChars: 120 + char-count hints).
  • Add splitCombinedGuestIdentity helper and backend/scripts/migrate-podcast-guest-identity.ts backfill script for existing documents.

Verification

  • node --test frontend/test/dates.test.mjs frontend/test/podcast-doc-tabs.test.mjs frontend/test/sponsor-docs.test.mjs (45/45 passed)
  • npm run test:frontend:borders && npm run test:frontend:colors && npm run test:frontend:scale (passed)
  • cd backend && NODE_ENV=test FRONTEND_ROOT=../frontend SKIP_AUTH=true node --import tsx --test --test-force-exit tests/sponsor-doc-event-metadata.test.ts tests/podcast-guest-form.test.ts tests/guest-identity-migration.test.ts && npm run typecheck (22/22 passed, typecheck passed)

@alexeygrigorev

Copy link
Copy Markdown
Member Author

Backlog triage 2026-11-27: integrated current main (713faaa, includes #534/#540) into this branch without conflicts.

  • Exact head 826b795f61fbb2772c70d36ee000e132912f6724: app, browser E2E (incl. the podcast guest-form spec) and CLI checks all SUCCESS.
  • On the merged tree: 28 backend and 62 frontend cases pass, scale/borders/colour gates pass.

Follow-up after deploy, for the operator (not done by the triage session, it is a production data write): run backend/scripts/migrate-podcast-guest-identity.ts (dry-run first, then --apply) while document writers are quiescent and have open editors reload; then capture the production staff/guest desktop and mobile views for AC10. Until then existing documents show the old combined value in Name with Role and Company empty; nothing is lost by a save.

@alexeygrigorev
alexeygrigorev merged commit 0863c2d into main Nov 27, 2026
4 checks passed
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