Skip to content

feat(sitemap): keep repeat and unreviewed pages out of Google's index - #358

Merged
NathanAB merged 11 commits into
search-recoveryfrom
claude/search-index-cleanup-ae4e7b
Nov 30, 2026
Merged

NathanAB merged 11 commits into
search-recoveryfrom
claude/search-index-cleanup-ae4e7b

Conversation

@NathanAB

Copy link
Copy Markdown
Owner

Why

Ticket #352 under spec #351. Take pages that repeat each other, or describe code nobody here read, out of Google's index and the sitemap, and keep them reachable. This is cleanup, not the fix for the Nov 21 drop: the pages that leave earned about 16 of 573 Google clicks in 90 days.

What changed

Each page kind already has one field that says whether it's worth indexing. Its route head and the sitemap now read that same field, so the two can't disagree. Noindex is the route head's robots: noindex, follow, as on /me and /themes.

Pages Noindex when Sitemap
/mods/unreviewed/* (ADR 0014's included) always dropped
/status-lines/<facet> not token-usage, themed, quota, git or cost (INDEXABLE_FACET_SLUGS), or under 3 entries as before only indexable facets
/alternatives/*, /compare/* (all six) always dropped
/mods/<slug> it's a theme plugin (themeOnly) theme plugins dropped
/themes/<palette> no reviewed theme under it only palettes with a reviewed theme, the same helper llms.txt uses
/?page=N never (still loads, still canonical to itself) dropped
  • PageSection gets a nosnippet prop that sets Google's data-nosnippet. "More like this", "More status lines" and "Related mods" use it. Nothing visible changes.
  • Facets split in two. isPromotedFacet (3+ entries) still drives breadcrumbs, "More ways to browse" and llms.txt, so visitors see the same links. isIndexableFacet is promoted and on the list.
  • ADRs 0011 and 0014 record the pilot's early end: 0 impressions in 18 days, and Google never crawled the pages. docs/deploy.md no longer mentions a sitemap line for them.

Scope

  • Leaves src/mods/page-meta.ts and src/content/page-copy-prompt.ts alone; Fix mod titles cut off mid-phrase #353 owns them. Changes no title, copy, structured data or address.
  • liveComparePages is deleted, because only the sitemap read it.

Tradeoffs

  • The facet list sits in facet-queries.ts beside isIndexableFacet, not in facets.ts beside the titles: adding it there put facets.ts past the 250-line file gate (261 lines).
  • Facet pages off the list keep their internal links, so a visitor's path through them is unchanged. Google follows the links and doesn't index the pages.

Blast Radius

Only crawler-facing output changes: robots meta on five page kinds, the sitemap, and one attribute on three sections. Visible markup, routes, installs and "Request a review" are untouched. To undo it, revert the PR; Google re-reads the pages at its next crawl.

Verification

  • bun run check: 439 files and 4,281 tests passed, 13 skipped, exit 0.
  • A local dev server ran on a copy of the dev database, seeded with an unreviewed mod, shown curated drafts and a 3-entry off-list facet. Every one of the 70 sitemap URLs returned 200 with no noindex. Each page kind above returned 200 with the expected robots meta and sitemap state (details below).
  • Each new test failed on a planted break, and passed again once the break was reverted (table below).
  • Not proved live: comparison pages and an unreviewed-only palette. The dev data has too few status lines for a comparison page to render (404 before and after this change), and no recorded unreviewed theme. Tests cover both.
Acceptance criteria, with evidence

Local dev server on localhost:3152. The script fetches /sitemap.xml, checks that every URL in it returns 200 without noindex, then checks each listed page.

== sitemap: 70 urls
every sitemap url: 200 and no noindex
noindex   /mods/unreviewed/OctoCat/meter               200 noindex, follow  not-in-sitemap
noindex   /mods/unreviewed/hamzafer/interstellar       200 noindex, follow  not-in-sitemap   (ADR 0014 draft)
noindex   /mods/unreviewed/NelsonBrandao/dracula       200 noindex, follow  not-in-sitemap   (ADR 0014 draft)
noindex   /status-lines/burn-rate                      200 noindex, follow  not-in-sitemap   (3 entries, off the list)
noindex   /mods/catppuccin                             200 noindex, follow  not-in-sitemap   (theme plugin)
noindex   /mods/dracula                                200 noindex, follow  not-in-sitemap   (theme plugin)
noindex   /mods/nord                                   200 noindex, follow  not-in-sitemap   (theme plugin)
indexed   /  /mods  /themes  /status-lines/best  /status-lines/themed  /guide  /resources
          /themes/catppuccin  /themes/nord  /mods/abyss  /mods/akatsuki-night
          /c/needs-network  /c/framed-pill-row     200 no robots meta   in-sitemap
/?page=2  200, no robots meta, <link rel="canonical" href="…/?page=2">; 0 `page=` entries in the sitemap
  • Unreviewed page still offers "Request a review". /mods/catppuccin still shows "Copy install prompt", and catppuccin is still in /marketplace.json.
  • data-nosnippet appears only on <section data-nosnippet=""><h2>More like this (/mods/look-mocha), and on More status lines and Related mods (/c/needs-network). No other section has it.
Criterion Test, and the planted break that turned it red
Unreviewed noindex + out of sitemap unreviewed-mod-page.test.tsx "is noindex…"; discovery.test.ts "leaves every unreviewed mod page out" (from the starting patch, seen red, then green)
Unreviewed-only palette noindex + out palette-meta.test.ts noindex case: condition forced false, then true. discovery.test.ts palette case: reviewedPalettePages returning every page (also failed four llms tests)
Facets off the list facet-discovery.test.ts: isIndexableFacet returning isPromotedFacet alone; sitemap filter dropped; network-access added to the list. Links unchanged: liveFacetLinks switched to isIndexableFacet. primary-facet.test.ts: primaryFacet switched to isIndexableFacet
Six comparison pages compare/head.test.ts (one case per path): robots meta removed, all six red. sitemap-lastmod.test.ts: /alternatives/ccstatusline added back
Theme plugin pages mod-page.test.tsx head case: condition forced false, then true. discovery.test.ts: all passed in place of mods
/?page=N out of sitemap discovery.test.ts (10 status lines + 1 mod) and sitemap.test.ts (21 configs): page entries re-emitted. Canonical: existing home-meta.test.ts
Related cards out of snippets page-section.test.tsx: attribute never set, then always set. config-page.test.tsx: prop dropped from each section. mod-page.test.tsx: prop dropped from ModRelated

Closes #352

🤖 Generated with Claude Code

NathanAB and others added 10 commits November 30, 2026 12:31
The unreviewed-mods pilot ends early: 0 search impressions in 18 days,
and Google never crawled these pages. Each page is now noindex, follow
and leaves the sitemap; it still loads and Request a review still works.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Most facet pages repeat each other. A fixed list of five facets
(token-usage, themed, quota, git, cost: 3 or more Google clicks in the
90 days to 2026-11-28) may be indexed; every other facet page is
noindex, follow and leaves the sitemap, while it still loads and stays
linked from breadcrumbs, More ways to browse and llms.txt.

isIndexableFacet is now the list AND the inventory threshold, and reads
the head and the sitemap alike. The threshold alone is isPromotedFacet,
which drives the site's own links.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emap

The six /alternatives and /compare pages repeat the gallery's listings.
Each is now noindex, follow and leaves the sitemap; they still load for
visitors. The sitemap's best page keeps its date, now from the top ten
cards alone, and liveComparePages, which only dated the comparison
pages, is gone.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A theme plugin's page repeats what /themes and its palette pages show.
It is now noindex, follow and leaves the sitemap; the page still loads
and installs as before. Reviewed mods stay indexed and listed.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A palette page of unreviewed themes alone offers nothing to install.
It is now noindex, follow and leaves the sitemap; the page still loads.
One helper, reviewedPalettePages, now feeds the sitemap and both llms
files, so the three can't disagree about which palette pages count.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/?page=N repeats the home page's listings. The sitemap no longer lists
those pages, and sitemapResponse loses its pageCount parameter. The
pages still load and keep their self-canonical.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PageSection takes a nosnippet flag that puts data-nosnippet on its
section. More status lines, Related mods and More like this pass it, so
cards describing other pages no longer write this page's snippet.
Nothing visitors see changes.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and 0014

The group /mods/unreviewed/* had 0 Google impressions in 18 days and
Google crawled none of its pages. Every unreviewed page, and every
palette page of unreviewed themes alone, leaves search and stays up.
deploy.md no longer says a hidden unreviewed page drops a sitemap line.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comparison and theme plugin pages share most of their text with each
other; a palette page of unreviewed themes alone describes code nobody
here read (ADR 0014).

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NathanAB
NathanAB merged commit 543a849 into search-recovery Nov 30, 2026
2 checks passed
NathanAB added a commit that referenced this pull request Nov 30, 2026
…temap line

The verify map had no feature for what search engines are told about each
page, and themes.md still said theme packs are in the sitemap (#358 made
them noindex). Driven on the shared branch on 2026-11-30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NathanAB added a commit that referenced this pull request Nov 30, 2026
…od titles (#359)

* fix(mods): stop modPageTitle cutting headlines mid-phrase (#356)

A headline too long for the 60-character title was cut at its last
phrase break, which left live titles like "Context Meter mod: Know when".
Now a headline that doesn't fit whole gives way to the plain title,
"<Name> — Claude Code mod | statuslin.es" or the theme wording. Titles
whose headline fits are unchanged.

The page copy prompt now asks for a headline and FAQ questions that say
what the mod does in plain words, not the words someone would search.

Refs #353

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(deploy): record the daily Google traffic drop alert (#357)

PostHog now emails the maintainer when Google-referred pageviews over the
last 2 complete days fall below 40% of the same 2 days a week before. A
replay of November 2026 fires on Nov 23 and on no day before the Nov 21
drop. docs/deploy.md records the query, the threshold and why, and
CLAUDE.md points search and traffic questions at the Search Console
script and the Composio Search Console and PostHog query tools.

Refs #354

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(sitemap): keep repeat and unreviewed pages out of Google's index (#358)

* feat(mods): keep unreviewed mod pages out of the index and the sitemap

The unreviewed-mods pilot ends early: 0 search impressions in 18 days,
and Google never crawled these pages. Each page is now noindex, follow
and leaves the sitemap; it still loads and Request a review still works.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(gallery): index only the facet pages searchers chose

Most facet pages repeat each other. A fixed list of five facets
(token-usage, themed, quota, git, cost: 3 or more Google clicks in the
90 days to 2026-11-28) may be indexed; every other facet page is
noindex, follow and leaves the sitemap, while it still loads and stays
linked from breadcrumbs, More ways to browse and llms.txt.

isIndexableFacet is now the list AND the inventory threshold, and reads
the head and the sitemap alike. The threshold alone is isPromotedFacet,
which drives the site's own links.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(compare): keep the comparison pages out of the index and the sitemap

The six /alternatives and /compare pages repeat the gallery's listings.
Each is now noindex, follow and leaves the sitemap; they still load for
visitors. The sitemap's best page keeps its date, now from the top ten
cards alone, and liveComparePages, which only dated the comparison
pages, is gone.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(mods): keep theme plugin pages out of the index and the sitemap

A theme plugin's page repeats what /themes and its palette pages show.
It is now noindex, follow and leaves the sitemap; the page still loads
and installs as before. Reviewed mods stay indexed and listed.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(themes): keep palette pages with no reviewed theme out of the index

A palette page of unreviewed themes alone offers nothing to install.
It is now noindex, follow and leaves the sitemap; the page still loads.
One helper, reviewedPalettePages, now feeds the sitemap and both llms
files, so the three can't disagree about which palette pages count.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(gallery): stop listing numbered gallery pages in the sitemap

/?page=N repeats the home page's listings. The sitemap no longer lists
those pages, and sitemapResponse loses its pageCount parameter. The
pages still load and keep their self-canonical.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(ui): keep related cards out of a page's search snippet

PageSection takes a nosnippet flag that puts data-nosnippet on its
section. More status lines, Related mods and More like this pass it, so
cards describing other pages no longer write this page's snippet.
Nothing visitors see changes.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(gallery): say a facet page is in the sitemap only when indexable

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(adr): record the unreviewed-mods pilot's early end in ADRs 0011 and 0014

The group /mods/unreviewed/* had 0 Google impressions in 18 days and
Google crawled none of its pages. Every unreviewed page, and every
palette page of unreviewed themes alone, leaves search and stays up.
deploy.md no longer says a hidden unreviewed page drops a sitemap line.

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: give the real reason in the new noindex comments

Comparison and theme plugin pages share most of their text with each
other; a palette page of unreviewed themes alone describes code nobody
here read (ADR 0014).

Refs #352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(verify): add a search indexing feature and correct the themes sitemap line

The verify map had no feature for what search engines are told about each
page, and themes.md still said theme packs are in the sitemap (#358 made
them noindex). Driven on the shared branch on 2026-11-30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant