feat: canonical taxonomy v0 (categories, component types, aliases)#8
Merged
Conversation
Closes #7. - taxonomy/v0/taxonomy.json: versioned vocabulary — 12 categories (what a thing is for) and 65 component types (what it is, the shadcn-style vocabulary), plus alias and deprecation machinery. Discovery metadata only: taxonomy changes never touch a release's source content or digest. - schemas/v0/taxonomy.schema.json validates the taxonomy document itself (kebab ids, label/description limits, alias map shape). - modulora-item schema gains optional category, componentType, and tags (max 10, normalized kebab) — additive, so existing v0 artifacts stay valid; registries require category at publish time. - Validation gains a taxonomy resolution layer (resolve aliases → id must exist → not deprecated for new publishes) exercised by fixtures: canonical values, alias migration (forms-inputs → forms), unknown id, malformed casing, tag flooding, markup-in-tag. 27/27 tests pass. The web app's src/lib/taxonomy.ts is the same vocabulary; this document is now the canonical home. Signed-off-by: Justin Levine <20596508+jal-co@users.noreply.github.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.
What
Canonical, versioned category + component-type vocabulary with alias/deprecation machinery, its own schema, item-manifest fields (category/componentType/tags), and a taxonomy-resolution validation layer.
Why
Closes #7 — one taxonomy across web authoring, CLI publishing, registry metadata, and catalog filters.
How
Testing
27/27 (fixtures incl. alias migration, unknown, malformed, tag-flooding, markup-in-tag; taxonomy document self-validates).
Screenshots
n/a