fix(bots): repair 20 dead nav links, restore Imhotep's lost content - #146
Merged
Conversation
The config-driven refactor (4600019) deleted ~16,000 lines of bot page content but left data/bots.ts still advertising it. Every bot's nav kept linking to sections that no longer existed: swiss-german-teacher communication, culture, waitlist research-assistant scraping, drafts, questions, discovery, integration, roadmap medical-expert harm-reduction artistic-advisor styles, techniques, get-started product-manager workflow, showcase, examples, integration, testimonials, pricing, get-started legal-expert get-started Twenty menu items that scrolled nowhere, on the live site, for seven months. Nothing failed because nothing compared data/bots.ts to bot-pages.ts. Now they do: tests/__tests__/lib/bot-nav-integrity.test.ts asserts every nav item targets a section the page actually renders, and that ids are unique. Mutation-verified -- repoint one item at a missing section and it fails and names it. legal-expert's 'Get Started' was repointed to the cta section it clearly meant. The rest are removed, because the sections they named are gone. Content restored for medical-expert, recovered from the deleted components and ported as config (no new components needed): medbox MedBox home health lab -- the 6 sensors health-topics the 6 topics Imhotep covers regimens Basic / Advanced, and how they compare to Blueprint Its page goes from 7 sections to 10, and from 3,833 to 5,380 rendered characters. The nav gains MedBox and Topics in place of the dead link. NOT restored: the harm-reduction section, a substance comparison table covering heroin, methamphetamine, MDMA, LSD and psilocybin. On a site offering AI health guidance that is a product and possibly a regulatory decision, not a cleanup one. It stays in git at 4600019^ pending a call: git show 4600019^:app/bots/medical-expert/components/features/HarmReductionSection.tsx The other four bots still need their content ported; this is the pattern. verify: format, lint, typecheck, 253 tests, build -- all green. Verified visually against a local production build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 28, 2026
Follows #146, which proved the pattern on Imhotep: recover the copy from the components deleted in 4600019, express it with existing section types, add the nav entry, let the nav-integrity guard verify it. No new components. research-assistant 5 -> 8 sections 3,062 -> 4,366 chars (+43%) research-system the six ways Nerd organises an upload scraping the six sources it watches (ArXiv, Scholar, PubMed, Nature, Science Daily, MIT Tech Review) drafts abstract / literature review / methodology / discussion product-manager 5 -> 8 sections 2,539 -> 3,752 chars (+48%) benefits the four Trident actually delivers showcase feature planning, technical debt, cross-team coordination integration GitHub and Jira, with what each one does swiss-german-teacher 5 -> 8 sections 2,793 -> 3,900 chars (+40%) language-learning vocabulary, conversation, grammar communication email and texting, in the right register culture video, podcasts, articles artistic-advisor keeps 5 sections: it only ever had 217 lines, so unlike the others it lost almost nothing. It gains two nav entries for the sections it does have, instead of a two-item menu. Nav went from a low of two items per bot to five or six, and every entry points at a section that renders -- enforced by the guard added in #146. Copy was rewritten rather than pasted. The originals were written for a different page structure and carried filler; this keeps the substance and drops the padding. verify: format, lint, typecheck, 253 tests, build -- all green. Verified visually against a local production build. Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.
20 menu items that scrolled nowhere
The config-driven refactor (
4600019e) deleted ~16,000 lines of bot page content but leftdata/bots.tsstill advertising it. Every bot's nav kept linking to sections that no longer existed:Live, for seven months. Nothing failed because nothing compared
data/bots.tstobot-pages.ts.Now it does.
tests/__tests__/lib/bot-nav-integrity.test.tsasserts every nav item targets a section the page actually renders, and that ids are unique. Mutation-verified — repoint one item at a missing section and it fails and names it.legal-expert's "Get Started" was repointed to thectasection it clearly meant. The rest are removed, because the sections they named are gone.Content restored: Imhotep
Recovered from the deleted components and ported as config — no new components:
medbox— MedBox home health lab, the 6 sensorshealth-topics— the 6 topics Imhotep coversregimens— Basic / Advanced, and how they compare to Blueprint7 sections → 10. Rendered text 3,833 → 5,380 characters. The nav gains MedBox and Topics in place of the dead link.
Deliberately NOT restored
The
harm-reductionsection — a substance comparison table covering heroin, methamphetamine, MDMA, LSD and psilocybin. On a site offering AI health guidance that's a product and possibly regulatory decision, not a cleanup one. It stays in git pending your call:Scope
The other four bots still need their content ported. This PR establishes the pattern: recover the copy from
4600019e^, express it with existing section types, add the nav entry, let the guard verify it.Verify
format:check,lint,typecheck, 253 tests,build— all green. Verified visually against a local production build.🤖 Generated with Claude Code
https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG