Report what a study cites instead of scoring it, and fix the phone - #14
Merged
Merged
Conversation
The evidence tier is 'strong' on all 204 studies, because it reaches `refs >= 4` before consulting anything else and every study carries four or five references. A constant is survivable in a data file. It was on the page: printed on all 204 cards, and drawn on study.html as a filled meter reading "Strong Evidence Base" at 80 or 90 per cent. A bar at 80 per cent implies a measurement against a maximum. There is no maximum and nothing was measured. The two signals the tier short-circuits past are not constants. Measured over the library: 61 of 204 studies cite experimental or quasi-experimental work, 7 cite a systematic review or meta-analysis. They were computed and discarded. They are in master-list.json now and reported rather than scored. The card footer carries the reference count, which is 4 or 5 and so says something, and a marker for the stronger signal. The study page states both as facts with the source count. And the sidebar has an Evidence facet filtering on them: both selected means both, not either, because a reader asking for experimental work and a review wants the studies with both. It is deep-linkable, like the other facets. evidenceTier() is untouched and still returns 'strong' for all 204. What counts as strong evidence here is an editorial judgement about the library rather than a bug to patch, and CLAUDE.md already says so; this changes what the interface shows, not the field. Three phone defects, measured at 390x844: The site had no name. The wordmark was display:none below 480px, so a phone got a blue square in the corner and nothing else. It shortens to "Dev" instead. The welcome panel filled the whole first screen: over 600px of explanation before a single study, so a visitor landed on a help panel rather than a library. Its feature grid is hidden and its description clamps to three lines below 700px. Two study cards are above the fold now, and nothing was deleted. The card footer put "Read study" and "5 sources" each across two lines. The link takes its own line below 460px. Verified headless at 1280 and 390: no page errors, no horizontal overflow, the facet returns 61 of 204 and writes ?evidence=experimental, and the word "strong" no longer appears on a study page. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MrvR2NXsJFVRCeJZFCPuNL
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.
The badge on all 204 cards said the same word
CLAUDE.mdalready records thatevidenceTier()returnsstrongfor every study, because it reachesrefs >= 4before consulting anything else and every study carries four or five references. A constant is survivable in a data file.It was on the page. Printed on all 204 cards, and drawn on
study.htmlas a filled meter reading "Strong Evidence Base" at 80 or 90 per cent. A bar at 80 per cent implies a measurement against a maximum. There is no maximum and nothing was measured.The two signals it short-circuits past are not constants
evidenceTier()computeshasRCTandhasMetaand then returns before either is used. Measured over the library:They are computed into
master-list.jsonby a newevidenceSignals()and reported rather than scored.Experimental · 5 sources · 5 min readin place ofstrong · 5 min read.?evidence=experimentalreturns 61 of 204, verified).evidenceTier()is untouched and still returnsstrongfor all 204. What counts as strong evidence here is an editorial judgement about the library rather than a bug to patch —CLAUDE.mdsays so and lists the three honest options. This changes what the interface shows, not the field. When you settle the question, that is the one function to change.Three phone defects, measured at 390×844
The site had no name.
.site-logo span:last-child { display: none }below 480px left a blue square in the corner and nothing else. It shortens to "Dev" now, which the markup carries in its own span.The welcome panel filled the whole first screen. Over 600px of explanation before a single study, so a visitor landed on a help panel rather than a library. Its feature grid is hidden and its description clamps to three lines below 700px. Two study cards are above the fold now, and nothing was deleted — the panel is still dismissible and the text is still there.
The card footer put "Read study" and "5 sources" each across two lines, because a link and three metadata items were competing for one row. The link takes its own line below 460px.
Checks
npm run validate— 204 studies clean. Headless Chromium at 1280×900 and 390×844 on the index, a study page and the mobile index: no page errors,scrollWidth == clientWidth, the facet returns 61 of 204 and writes its URL parameter, and the word "strong" no longer appears on a study page.Not done, and why
New case studies. You asked about fresh content and I have not added any. A study here is ~950 words with five real academic citations; writing five of them properly means verifying twenty-five sources, and I would rather scope that as its own piece of work than produce plausible-looking references at speed in a library whose entire value is that its citations are real. Say the word and I will do it deliberately, in a batch, with every citation checked.
A full visual redesign. Looking at it, the index is dense rather than severe, and the study page is genuinely well built — breadcrumb, serif title, evidence summary, key-data rail, "How to Think About This". The changes here quieten the metadata that was competing with the content and fix the phone. If you want a different look rather than a tidier one, that is a design direction to agree first rather than a change to push.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MrvR2NXsJFVRCeJZFCPuNL
Generated by Claude Code