[scanner] site: tag-filtered indexes (/tags/<tag>/) - #139
Open
kubestellar-hive[bot] wants to merge 2 commits into
Open
[scanner] site: tag-filtered indexes (/tags/<tag>/)#139kubestellar-hive[bot] wants to merge 2 commits into
kubestellar-hive[bot] wants to merge 2 commits into
Conversation
Adds two new statically-generated page templates and makes existing
TagChip components clickable so a reader mid-incident with their RAG
pipeline at 3am can click `evals` on an issue page and land on every
featured-eval item across every issue.
Pages:
/tags/ — landing page. Enumerates every distinct tag
encountered on any featured item with an
occurrence count. Sorted by count desc,
then alpha.
/tags/<tag>/ — every featured item carrying <tag>, sorted
date desc, then score desc. Shows title,
date (linking back to the issue), section,
source, score bar, and summary.
Implementation notes (from the issue):
- Uses `getCollection("issues")` and flattens `featured[].tags`
to drive both getStaticPaths and the counts on /tags/.
- Tags are the closed 13-tag vocabulary from the ranker prompt,
but the routing is data-driven — any tag that appears on a
featured item gets its own page. Defensive against future
vocabulary growth.
- Appendix items intentionally excluded (they carry no tags —
only featured items get the editorial treatment that includes
tagging).
- Hyphenated tags (`tool-use`, `cost-latency`) round-trip through
Astro's default routing without URL encoding gymnastics.
- Light and dark modes use existing --border / --accent CSS
variables; no new theme tokens.
TagChip is now a link by default (`<a class="chip chip--link">`).
Callers that need a static chip (e.g. inside a larger clickable
container) can pass `static` — I didn't find any such caller in the
current codebase, but the escape hatch is there.
Verified with `astro build`: the existing test issue produces
`/tags/agents/index.html`, `/tags/index.html`, and the issue-page
chips render as `<a class="chip chip--link" href="/tags/agents/">`.
Fixes #7
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.
Adds two new statically-generated page templates and makes existing
TagChipcomponents clickable so a reader mid-incident with their RAG pipeline at 3am can clickevalson an issue page and land on every featured-eval item across every issue.Pages
/tags/— landing page. Enumerates every distinct tag encountered on any featured item with an occurrence count. Sorted by count desc, then alpha./tags/<tag>/— every featured item carrying<tag>, sorted date desc, then score desc. Shows title (linking to source), date (linking to/issues/<date>/), section, source, score bar, and summary excerpt.Implementation notes
Straight from the issue:
getCollection("issues")and flattensfeatured[].tagsto drive bothgetStaticPaths()and the counts on/tags/.tool-use,cost-latency) round-trip through Astro's default routing without URL encoding gymnastics.--border/--accentCSS variables — no new theme tokens.TagChip
Now a link by default (
<a class="chip chip--link">). Callers that need a plain span (e.g. inside a larger clickable container) can passstatic— no such caller exists today but the escape hatch is there.Verification
Ran
astro buildlocally against the existing test issue. Output:/tags/agents/index.htmlgenerated with the featured item listed and score bar rendered./tags/index.htmlgenerated withagents (1)link.<a class="chip chip--link" href="/tags/agents/">agents</a>.Pitfalls addressed
Fixes #7