Skip to content

Fix: web preview readout showed a phantom streak line#16

Merged
codewithwan merged 1 commit into
mainfrom
fix/web-preview-stats
Jul 19, 2026
Merged

Fix: web preview readout showed a phantom streak line#16
codewithwan merged 1 commit into
mainfrom
fix/web-preview-stats

Conversation

@codewithwan

Copy link
Copy Markdown
Owner

The browser preview's stand-in readout listed five lines — repos, stars earned, followers, following, and streak. CI only ever writes the first
four; the streak is the 🔥 badge, not a readout line. So the preview drew a fifth
row no real banner has, which is the reported "the web shows a streak the actual
doesn't" mismatch.

Fix

Drop streak:4 from SAMPLE_STATS (web/src/lib/sample.ts). The preview readout
is now the same four lines CI produces, in the same order — the structure matches
the real output. The sample values (71, 82, …) stay plausible placeholders on
purpose; CI swaps them for the real ones.

The streak badge is unchanged and correct: like the sample contribution year, it
shows a plausible number so the badge is visible; CI fills the real one, and it
hides itself when that's zero.

tsc --noEmit clean.

The preview's stand-in readout listed five lines — repos, stars earned,
followers, following, and streak. CI only ever writes the first four; the streak
is the 🔥 badge, not a readout line. So the preview drew a fifth row that no real
banner has, which is exactly the "why does the web show a streak the actual
doesn't" mismatch. Dropped it, so the preview readout is the same four lines CI
produces, in the same order.

The streak badge itself is unchanged and correct: like the sample contribution
year, it shows a plausible number so you can see the badge; CI fills your real
one, and it hides itself when that's zero.
@codewithwan
codewithwan merged commit 832d698 into main Jul 19, 2026
10 checks passed
@codewithwan
codewithwan deleted the fix/web-preview-stats branch July 19, 2026 12:13
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