Add the Do and Don't tutorial template (`tutorial-do-dont`)
Maintainer antworten meist innerhalb von 1 Tag
@Ravindar-Amogh-Gummadavelly arbeitet bereits daran.
Seit 31.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 4
- Ø Merge
- 8 Std. 44 Min.
- Gemergte PRs (30 T.)
- 158
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/ogcops
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLEvtl. vergeben @CreatorguyS hat das vor 3 Tagen übernommen. Offenbug enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
codercops/ogcops#378 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] Clipboard fallback reports success even when copying failsEvtl. vergeben @srikar-naidu hat das vor 3 Tagen übernommen. Offenbug
codercops/ogcops#384 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Preview checker: entity names like `&constructor;` decode to function sourceEvtl. vergeben @amitsinha-cell hat das vor 3 Tagen übernommen. Offenbug
codercops/ogcops#356 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
codercops/ogcops#341 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 35/100
codercops/ogcops#88 · 16 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/ogcops
Ähnliche Issues
-
needs investigation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:visualizer tech-debt
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 66/100
jmbarzee/temporal-architect#292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
riverqueue/river#1576 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
colbymchenry/codegraph#3228 ·
Maintainer antworten meist innerhalb von 1 Tag