From b3baab1355206bacc76e69fd64c10e12b248a51a Mon Sep 17 00:00:00 2001 From: codewithwan Date: Sun, 19 Jul 2026 19:07:20 +0700 Subject: [PATCH] fix: the web readout showed a streak line the real banner never has MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- web/src/lib/sample.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/lib/sample.ts b/web/src/lib/sample.ts index 6a1716d..eb9e606 100644 --- a/web/src/lib/sample.ts +++ b/web/src/lib/sample.ts @@ -39,13 +39,16 @@ export function fill(text: string, id?: Tokens): string { }); } -/** The readout's stand-in lines. Real ones arrive as "label:value" from CI. */ +/** The readout's stand-in lines — the exact four CI writes (`repos`, `stars + * earned`, `followers`, `following`), in that order, so the preview's readout + * matches the real one. The streak is *not* one of them: it's the 🔥 badge, not + * a readout line, and listing it here drew a fifth row the real banner never + * has. Real values arrive as "label:value" from CI. */ export const SAMPLE_STATS = [ "repos:71", "stars earned:82", "followers:42", "following:36", - "streak:4", ]; /** A stand-in year: 53 weeks x 7 days, a GitHub quartile per day, -1 where the