Skip to content

docs(appblocks): re-vendor @civitai/components MARKUP.md 0.1.x→0.2.0 + regen components reference - #24

Merged
ZacxDev merged 1 commit into
mainfrom
zach/regen-components-reference-0.2.0
Jul 23, 2026
Merged

docs(appblocks): re-vendor @civitai/components MARKUP.md 0.1.x→0.2.0 + regen components reference#24
ZacxDev merged 1 commit into
mainfrom
zach/regen-components-reference-0.2.0

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

Re-vendors the committed appblocks-snapshots/MARKUP.md from the currently published @civitai/components@0.2.0 and regenerates apps/reference/components.md. The prior snapshot predated 0.2.0, so the generated Components reference on developer.civitai.com was stale (missing the new form components + the 0.2.0 Badge/Card/Alert changes).

Snapshot re-vendor (0.1.x → 0.2.0)

  • appblocks-snapshots/MARKUP.md re-vendored from @civitai/components@0.2.0. The check:snapshots drift-guard diffs the snapshot byte-for-byte (CRLF-normalized) against civitai-app-starters@main:packages/civitai-components/MARKUP.md — verified that source is byte-identical to the published npm 0.2.0 tarball's MARKUP.md (both 9242 bytes, pure LF), so the vendored snapshot matches the guard's authority.

Regenerated reference (new components listed)

apps/reference/components.md regenerated via npm run gen:appblocks:components — now 14 components (was 10). New in 0.2.0:

  • Select (data-civitai-ui="select")
  • Checkbox (data-civitai-ui="checkbox")
  • Radio (data-civitai-ui="radio")
  • RadioGroup (data-civitai-ui="radio-group")

Plus the 0.2.0 Badge/Card/Alert data-color prose reproduced verbatim. Nav already links the Components reference page (no nav change needed — it's a single page listing all components).

The generator's intro count is now derived from components.length (was a hardcoded 10).

Verification

  • npm ci && npm run gen:appblocks:components → 14 components, byte-identical on re-run (deterministic).
  • npm run check:snapshotsPASS✓ MARKUP.md — matches civitai@origin/main (all 4 snapshots up-to-date, 0 drifted).
  • npm run build → exit 0, build complete (VitePress fails on dead links → none).
  • npm run test:snippets:appblocks21 found · 21 passed · 0 skipped · 0 failed.

Note

A @civitai/components@0.2.1 (implementing Badge/component defaults) may follow; if 0.2.1 changes MARKUP.md, another re-vendor + regen will be needed. This PR ships 0.2.0, the current published version.

🤖 Generated with Claude Code

…+ regen components reference

Re-vendor the committed appblocks-snapshots/MARKUP.md from the currently
published @civitai/components@0.2.0 (byte-identical to
civitai-app-starters@main, which the check:snapshots drift-guard diffs
against) and regenerate apps/reference/components.md.

New in 0.2.0: Select, Checkbox, Radio, RadioGroup components (10→14), plus
Badge/Card/Alert data-color changes — all now surfaced in the generated
reference. The gen-appblocks-components.mjs intro count is now derived from
components.length instead of a hardcoded "10".

- npm run gen:appblocks:components → 14 components, deterministic (byte-identical on re-run)
- npm run check:snapshots → PASS (MARKUP.md matches upstream)
- npm run build → exit 0 (no dead links)
- npm run test:snippets:appblocks → 21 passed, 0 failed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ZacxDev
ZacxDev merged commit 55acfb8 into main Jul 23, 2026
4 checks passed
@ZacxDev
ZacxDev deleted the zach/regen-components-reference-0.2.0 branch July 23, 2026 19:27
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