Repository navigation
A category on every element - #25
Merged
Merged
Conversation
Every catalogue entry now carries `category`, one of seven buyer-facing groups exported as CATEGORIES in display order. superherotech.ai's hub sections and mega-menu columns will be driven by it; the skill mirrors it. scripts/check-categories.mjs runs first in `npm run check`: known category on every element, at least three per category, the full assignment pinned as a golden, CATEGORIES order and labels pinned, CategoryId type in step, and nine mutants that must be caught. The gallery index groups its cards by category with a jump list. Co-Authored-By: Claude Opus 5.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.
Every element in
src/data/catalog.tsnow has a requiredcategory, one of seven buyer-facing groups. The superherotech.ai/elements/hub sections and the mega-menu columns will be driven by it (the site change follows this one), and thesuperhero-ui-libraryskill mirrors it after the drill. The assignment is the one agreed in the hub redesign note.The seven categories
CATEGORIESis exported in display order, typed byCategoryId.motionnavigationcontentmediaconversionfeedbackcontrolsThe assignment (all 43)
The catalogue diff is one inserted
category:line per entry, right after itsid. Every entry is otherwise byte-identical.What the check pins
scripts/check-categories.mjsruns first innpm run check, before the build, so it fails fast.CATEGORIES. A missing or unknown one names the entry.CATEGORIESorder and labels are fixed. Each blurb must be one sentence and must not say "component".CategoryIdtype lists the same ids in the same order. It is read from the source text, since Node strips types.Also
categoryandCATEGORIES.Verified
npm run checkandnpm run buildare green.ELEMENTS_SOURCEset to this checkout, reported 0 errors and 0 warnings. Its vendored catalogue carried all 43 categories.🤖 Generated with Claude Code