Repository navigation
Give each compound with published doses its own calculator page - #90
Merged
Merged
Conversation
Nineteen new pages at /calculators/<compound>, plus an index, modelled on the per-peptide calculators that peptidecalcs.com ranks with. The arithmetic is identical for every peptide, so the arithmetic cannot be what makes nineteen pages worth nineteen URLs. What differs is the doses published studies of that compound actually used, and this site already holds those as cited claims with an evidence tier on every record. Each page puts that table under the calculator: what the paper administered, in which species, with a link to the paper. No generic calculator can do that, and no competitor cites a study for its numbers. That same fact decides which compounds get a page. A compound qualifies only if its record is written and reviewed and carries at least two distinct quoted dose figures. Nineteen of thirty-four clear it. The rest would be this page with the name changed, which is how a programmatic set becomes index bloat, and the site has already noindexed seven pages on that principle. The pages keep the refusal the generic tool has: no body weight, no condition, no returned dose. Showing what a trial gave is reporting, which is what every record here does. Suggesting what a reader should take would be advice, which none of them does. Pages where no human dose exists say so in the lede rather than letting an animal figure imply one. The calculator itself is the existing component, so the arithmetic has one implementation and one set of tests. test_calculators.mjs now covers every generated page, not just the three generic tools: form present, output present, dose table non-empty, and the script computing the known 5 mg / 2 mL / 250 mcg case. 36 assertions, up from 17. Verified by stripping a form and by emptying a dose table, each of which exits 1. Without this, one template change would silently empty nineteen pages at once, which is exactly how the unit converter and vial planner shipped as headings with no calculator. The sitemap emits them explicitly, because they derive from the compounds collection rather than being a collection of their own and nothing else would have listed them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Nineteen new pages at
/calculators/<compound>, plus an index, modelled on the per-peptide calculators peptidecalcs.com ranks with.The problem with a page per peptide
The arithmetic is identical for every peptide. Nineteen pages that each divide mg by mL are one page with the name changed, and this site has already noindexed seven pages on exactly that principle.
What differs is the evidence, and the site already holds it: every record carries
study_dosesas cited claims with an evidence tier. Each calculator page puts that table under the tool — what the paper administered, in which species, linked to the paper. No generic calculator can do that, and none of the competitors cites a study for its numbers.Which compounds qualify
A compound gets a page only if its record is written and reviewed and carries at least two distinct quoted dose figures. 19 of 34 clear it.
The fifteen that do not qualify get nothing, which is the point.
The refusal survives
No body weight, no condition, no returned dose. Showing what a trial gave is reporting, which is what every record here does; suggesting what a reader should take would be advice, which none of them does.
Pages where no human dose exists say so in the lede rather than letting an animal per-kilogram figure imply one. Nine of the nineteen are in that position.
Tests
test_calculators.mjsnow covers every generated page, not just the three generic tools: form present, output present, dose table non-empty, and the script computing the known 5 mg / 2 mL / 250 mcg case.36 assertions, up from 17.
Without this, one template change would silently empty nineteen pages at once, which is exactly how the unit converter and vial planner shipped as headings with no calculator.
Plumbing
The calculator is the existing component, so the arithmetic has one implementation and one set of tests. The sitemap emits these pages explicitly, because they derive from the compounds collection rather than being a collection of their own and nothing else would have listed them. Sitemap goes from 58 to 78 URLs.
Gates
Content validation (59 records), registry check, 36 drafter tests, 36 calculator tests, loop gate 47/47, all eight link rules.
🤖 Generated with Claude Code