Add the Do and Don't tutorial template (`tutorial-do-dont`)
维护者通常 1 天内回复
@Ravindar-Amogh-Gummadavelly 已经在做这个了。
开始于 2026年10月31日。
评估
这个 Issue 还没有评估数据。
描述
Part of #5. For tips posts that show the right way and the wrong way side by side.
Idea
The title at the top ("Writing commit messages"), then two columns: "Do" on the left with up to three items ("Use the imperative mood", "Keep the subject under 50 characters", "Explain why in the body") and "Don't" on the right with up to three items ("End the subject with a period", "Mix unrelated changes", "Write fixed stuff"). The "Do" heading is green and the "Don't" heading is red, each item sits on its own row, and the site name is at the bottom.
Template details
- File:
src/templates/tutorial/do-dont.ts, idtutorial-do-dont - Fields:
commonFields.title,do1todo3(text, optional, defaults above),dont1todont3(text, optional, defaults above),commonFields.siteName,commonFields.bgColor,commonFields.accentColor,commonFields.textColor
Where to look
- Closest reference:
src/templates/tutorial/before-after.ts(two columns side by side),src/templates/tutorial/prerequisites.ts(a short list where blank items are skipped)
Acceptance criteria
- Blank items (or only spaces) are skipped with no gap; a column with every item blank hides and the other one takes the full width; with both empty the area hides cleanly
- A long title shrinks with
autoFontSize()and then truncates, and a long item wraps to at most two lines and then truncates inside its column - The green and red headings and any accent text stay readable on a light background
- Re-exported in
src/templates/tutorial/index.tsand registered in the tutorial block ofsrc/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 小时 47 分钟
- 30 天内合并 PR
- 157
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codercops/ogcops 的其他 Issue
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URL可能已有人在做 @CreatorguyS 于 3 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 72/100
codercops/ogcops#378 · 4 条评论 ·
维护者通常 1 天内回复
-
[Bug] Clipboard fallback reports success even when copying fails可能已有人在做 @srikar-naidu 于 3 天前认领。 未关闭bug
codercops/ogcops#384 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Preview checker: entity names like `&constructor;` decode to function source可能已有人在做 @amitsinha-cell 于 3 天前认领。 未关闭bug
codercops/ogcops#356 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
codercops/ogcops#341 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 35/100
codercops/ogcops#88 · 16 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
area: frontend priority: normal
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
formbricks/formbricks#9918 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
thecodacus/pithagoras#364 ·
维护者通常 1 天内回复
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycle未关闭type:bug
难度 2/5 1-3 小时 新手友好度 65/100
nightgauge/nightgauge#2909 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复