From 092439e84ac8b2f527728e3fd76080f4bf45ec2d Mon Sep 17 00:00:00 2001 From: Stuart Date: Sun, 26 Jul 2026 11:05:52 +1000 Subject: [PATCH 1/2] fix: preserve unscored review state --- public/favicon.svg | 11 +++++------ src/reviewPresentation.js | 10 +++++++++- src/reviewPresentation.test.js | 13 +++++++++++++ 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/public/favicon.svg b/public/favicon.svg index 958a8b3..f5c21fc 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,18 +1,17 @@ - + - + - - + + + stroke-linejoin="round"/> diff --git a/src/reviewPresentation.js b/src/reviewPresentation.js index 0972150..79702ee 100644 --- a/src/reviewPresentation.js +++ b/src/reviewPresentation.js @@ -35,7 +35,15 @@ function asArray(value) { } function parseScore(value) { - const direct = Number(toObject(value).value ?? value); + const scoreValue = toObject(value).value ?? value; + if ( + scoreValue == null + || (typeof scoreValue === "string" && scoreValue.trim() === "") + ) { + return null; + } + + const direct = Number(scoreValue); if (Number.isFinite(direct)) return direct; const match = String(value || "").match(/\bscore\b[^\d]{0,12}(\d{1,3})(?:\s*\/\s*100)?/i); return match ? Number(match[1]) : null; diff --git a/src/reviewPresentation.test.js b/src/reviewPresentation.test.js index 48eb54b..b248d23 100644 --- a/src/reviewPresentation.test.js +++ b/src/reviewPresentation.test.js @@ -142,3 +142,16 @@ test("extracts a prominent score from legacy markdown reviews", () => { assert.equal(presentation.score, 74); }); + +test("leaves structured reviews without score fields unscored", () => { + const presentation = buildReviewPresentation({ + bundle, + reviewResult: { + status: "warning", + summary: "Review completed without a numeric score.", + artifacts: [], + }, + }); + + assert.equal(presentation.score, null); +}); From 820e8c4d870b35542989dc2247929579c86274d4 Mon Sep 17 00:00:00 2001 From: Stuart Date: Sun, 26 Jul 2026 11:11:20 +1000 Subject: [PATCH 2/2] fix: match favicon to sidebar brand --- index.html | 2 +- public/{favicon.svg => favicon-brand-v2.svg} | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename public/{favicon.svg => favicon-brand-v2.svg} (86%) diff --git a/index.html b/index.html index 852c507..2cce9f2 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ FlutterFlow Custom Code Connect - + diff --git a/public/favicon.svg b/public/favicon-brand-v2.svg similarity index 86% rename from public/favicon.svg rename to public/favicon-brand-v2.svg index f5c21fc..4a9a059 100644 --- a/public/favicon.svg +++ b/public/favicon-brand-v2.svg @@ -6,12 +6,11 @@ - + - +