[codex] Fix Fitbit redirect, import percentages, and print footer#496
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR bundles four targeted fixes: a Fitbit OAuth redirect URI ordering bug, differential-percentage marker import mapping, a print/PDF footer CSS regression, and a version bump.
Confidence Score: 5/5All four fixes are narrowly scoped and well-covered by new tests; no regressions are introduced in existing marker reconciliation paths. The redirect fix is a one-line ordering change with a direct test assertion. The differential-percentage logic is cleanly isolated behind new helpers, the previous double-call concern has been resolved by passing the computed key as a parameter, and the _resolveExistingCustomImportKey guard flagged in an earlier review is now in place. The CSS change is a straightforward removal of position:fixed with a matching regression test. No logic errors, unsafe patterns, or unguarded paths were found. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Fix Fitbit redirect, import percentages,..." | Re-trigger Greptile |
| if (compactBase === 'neutrofily' || compactBase === 'lymfocyty' || compactBase === 'monocyty' || compactBase === 'eosinofily' || compactBase === 'basofily') { | ||
| const pctKey = `differential.${differentialStem}Pct`; | ||
| return refLookup[pctKey] ? pctKey : null; | ||
| } |
There was a problem hiding this comment.
Czech-only fallback block silently extends eosinophil/basophil pct mapping
The old code returned null for 'eosinofily'/'basofily' without an absolute hint. The new block instead attempts refLookup['differential.eosinophilsPct']/'differential.basophilsPct'. Today those keys aren't in the schema so the result is still null, but a future schema addition would silently start mapping bare Czech names to pct markers without any percentage hint in the user's data. A clarifying comment or explicit guard for these two stems would make the intent clear.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
8faefe4 to
ccdc278
Compare
ccdc278 to
fdcaea0
Compare
Summary
https://app.getbased.healthfor the live host, without adding/appor a trailing slashLymphocytes %andMonocytes_PERCENTAGEto*Pctmarkers even when AI supplied the absolute-count keyversion.jsfor cache invalidationValidation
node tests/test-wearables.jsnode tests/test-unit-import.jshttps://app.getbased.healthreturns the app shellgit diff --check./run-tests.sh