Skip to content

fix(core): fix local font warnings and document hooks for 0.4.5 - #65

Merged
Austin1serb merged 4 commits into
mainfrom
feat/fix-local-font-css-and-hook-docs
Oct 25, 2026
Merged

Austin1serb merged 4 commits into
mainfrom
feat/fix-local-font-css-and-hook-docs

Conversation

@Austin1serb

@Austin1serb Austin1serb commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Prepares @react-zero-ui/core@0.4.5 with a fix for repeated Warning: Parsing CSS source code failed warnings in Next.js apps using next/font/local. Zero UI injects variants only into stylesheets with directives recognized by Tailwind's PostCSS plugin. Plain font CSS stays unchanged, while Tailwind entrypoints and CSS modules using @reference, @apply, or @variant retain global and scoped variants.

Adds editor hover documentation for useUI, useScopedUI, cssVar, setter types, and scoped refs. The docs explain DOM updates without React re-renders, the initial-value tuple, generated Tailwind variants, and the ref element as the scope root, with typed examples and API links.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Test improvement
  • Docs update
  • CI/tooling

Checklist

  • Relevant local test suites pass (details below)
  • Lint, TypeScript build, and whitespace checks pass
  • PR title follows semantic commit format
  • Changes are documented in JSDoc, comments, and the wiki
  • Patch version and publishable tarball validated
  • Required CI and Vercel checks pass
  • Ready for review

Validation

  • GitHub CI and Vercel passed for 681524a (CI run); all configured suites passed on Linux.
  • Reproduced the warning with a real local font in the packed Next.js fixture; the browser regression failed before the fix and passes afterward, with zero CSS parsing warnings.
  • Next.js against the 0.4.5 tarball: 12 passed, 2 existing skips. Used port 3107 locally because port 3000 was occupied; repository configuration is unchanged.
  • The font-loading assertion checks the bundled font alone. Next's generated family list also includes a local Arial fallback; requiring that fallback reproduced NetworkError when the system font was unavailable on the test host.
  • Vite: 19 passed. Source unit tests: 164 passed, 2 existing skips. PostCSS integration tests: 36 passed. CLI suite: 45 passed.
  • pnpm release:pack packages/core 0.4.5 dist passed: manifest/version, repository metadata, published entry points, dependency protocols, and package contents validated.
  • Package smoke test, lint, and TypeScript build passed. Verified TypeScript hover text from packed declarations and type-checked both JSDoc examples. Hook runtime output is unchanged.
  • Wiki audit: all 9 scoped pages current.

Release

  • Core patch version: 0.4.4 → 0.4.5.
  • create-zero-ui stays at 2.0.5; its published dependency range, ^0.4.4, already accepts this patch. No dependency or public API changes are required.
  • After required checks and review pass, merge into main and publish the GitHub Release core-v0.4.5 from the merged commit. The existing trusted-publishing workflow validates and publishes @react-zero-ui/core@0.4.5 to npm.

Notes for Reviewer

The font fix and JSDoc changes remain separate commits:

  • 3b5bd4b — font CSS fix, regression coverage, fixture font and license, related wiki updates.
  • 5f20dfc — hook JSDoc and scoped-root clarification.
  • 4c328cf — make the local-font assertion independent of installed fallback fonts.
  • 681524a — core patch version and wiki freshness metadata.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
react-zero-ui Ignored Ignored Preview Oct 24, 2026 10:01pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T21:53:32.333329Z 5f20dfc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Austin1serb Austin1serb changed the title fix(core): resolve local font CSS warnings and document hooks fix(core): fix local font warnings and document hooks for 0.4.5 Oct 24, 2026
@Austin1serb
Austin1serb merged commit 7f11745 into main Oct 25, 2026
3 checks passed
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