Repository navigation
feat(templates): add waitlist product template - #276
Merged
Merged
Conversation
Adds product-waitlist: a Join the waitlist label in the accent, the product name and pitch shrunk with autoFontSize before truncating, the waitlist count with its label beside it, and the launch window plus site name at the bottom. An empty count hides its label too, and blank optional fields drop out cleanly. Accent text is darkened on light backgrounds. Closes codercops#257
anurag629
approved these changes
Oct 27, 2026
anurag629
left a comment
Member
There was a problem hiding this comment.
Thanks @sank8-2, this works. Check, all 1392 tests and the build pass on top of dev, and the renders look right: default, a white background with a pale accent, a long caps name, pitch, count and labels, and blank fields, where the count label hides with the count and the dot only shows when both the launch window and the site name are there.
25 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #257
Adds the
product-waitlisttemplate for pre-launch posts that collect sign-ups: a small "Join the waitlist" label in the accent, the product name large under it, a one-line pitch, the number of people waiting with its label beside it, and an optional launch window plus site name at the bottom.autoFontSize()first and then truncate.description,launchWindowor site name hides cleanly.countis empty itscountLabelhides with it, so the label never stands alone.mixColors()when that background is light.How I Tested This
npm run check— 0 errors, 0 warnings (10 hints, all pre-existing).npm test— 1,170 tests passed across 54 files.npm run build— passed.git diff --check— passed.tests/templates/waitlist.test.tscovering registration and the re-export, render order, the count label hiding with an empty count, blank description/launch window/site name dropping out, the separator dot staying out when only one of the launch window and site name is set, a long name and pitch shrinking then truncating, and the darkened accent on a white background with a pale yellow accent.#fde047accent, and a long-name/long-pitch/empty-count/blank-launch-window case. Screenshots below.AI Assistance
OpenCode (an AI coding agent) drafted the template, the test file, and this description. I reviewed the diff, rendered the PNGs above, and ran
npm run check,npm test, andnpm run buildlocally.Type of Change
Screenshots
Default (dark):
Light background with a pale yellow accent:
Long name and pitch, empty count and blank launch window:
Checklist
devnpm run checkpassesnpm run testpasses with the default timeoutnpm run buildpasses