Add the Transcript podcast template (`podcast-transcript`)

未关闭
#399 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@08abhinav 已经在做这个了。

开始于 2026年11月7日。

  • #400 来自 @08abhinav —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

good first issue templates

Part of #5. For posts that share a short exchange from an episode, written out the way a transcript reads.

Idea
The show name at the top ("The Build Log"), the episode title below it ("Why we went back to a monolith"), then up to three transcript lines. Each line is its own row: a timestamp on the left in JetBrains Mono ("12:04"), the speaker's name in the accent color ("Maya"), and what they said ("We had more services than engineers."). The other two defaults are "12:09", "Leo", "So you merged them back?" and "12:11", "Maya", "One repo, one deploy. Nobody misses the old setup."

Template details

  • File: src/templates/podcast/transcript.ts, id podcast-transcript
  • Fields: commonFields.title, showName (text, optional, default "The Build Log"), time1 to time3 (text, optional, defaults above), speaker1 to speaker3 (text, optional, defaults above), line1 to line3 (text, optional, defaults above), commonFields.bgColor, commonFields.accentColor, commonFields.textColor

Where to look

  • Closest reference: src/templates/podcast/top-episodes.ts (rows with a fixed-width side column, blank items skipped after .trim(), muted colors that work on a light background), src/templates/podcast/audiogram.ts (a quote from the episode with its speaker)

Acceptance criteria

  • A line whose text is blank (or only spaces) is skipped with no gap, even if its time or speaker is filled; with all three blank the transcript area hides cleanly
  • A blank time or speaker only hides that part of the row, and the spoken text starts at the same x on every row so the lines stay aligned
  • A long title shrinks with autoFontSize() and then truncates, a long speaker name truncates inside its column, and a long line wraps to at most two lines and then truncates
  • The accent speaker names and muted timestamps stay readable on a light background
  • Re-exported in src/templates/podcast/index.ts and registered at the end of the podcast block in src/templates/registry.ts
  • Meets the shared template checklist in #5

One template per contributor at a time, so more people get a chance.


Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #NUM in the description.

主要语言
TypeScript
星标
8
派生
4
平均合并
8 小时 41 分钟
30 天内合并 PR
157

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codercops/ogcops 的其他 Issue

查看 codercops/ogcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。