Skip to content

feat: generate fallback metrics for global families where used - #915

Merged
danielroe merged 1 commit into
feat/webpackfrom
feat/global-metrics
Sep 22, 2026
Merged

danielroe merged 1 commit into
feat/webpackfrom
feat/global-metrics

Conversation

@danielroe

@danielroe danielroe commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

this adds font fallback metrics for global fonts! 🎉

@danielroe
danielroe added this pull request to stack #916 September 22, 2026 20:34
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 4abcb5af-bda9-4fd8-9e2e-f6dfb574b991

📥 Commits

Reviewing files that changed from the base of the PR and between 7f7e89b and cd8d586.

📒 Files selected for processing (6)
  • docs/content/1.get-started/2.configuration.md
  • docs/content/1.get-started/5.upgrade.md
  • playgrounds/basic/nuxt.config.ts
  • playgrounds/basic/pages/global.vue
  • src/module.ts
  • test/basic.test.ts

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

Global font families now resolve fallback metric faces during CSS transformation. Their original @font-face rules and preload hints remain in the global stylesheet. The basic playground adds global Anton usage and tests fallback generation, font-stack output, and duplicate suppression. Documentation describes detectable usage, unscannable usage, unchanged preload behavior, and disabling fallbacks with fallbacks: [].

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to cd8d5

Global fonts gain fallback metrics without duplicating their original faces or preload hints, so the change is mergeable with normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (3 skipped: 3 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: generating fallback metrics for global font families where they are used.
Description check ✅ Passed The description directly relates to the changeset by stating that it adds font fallback metrics for global fonts.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (3 skipped: 3 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Deploying fonts with  Cloudflare Pages  Cloudflare Pages

Latest commit: f730646
Status: ✅  Deploy successful!
Preview URL: https://69c16fc3.fonts-dsw.pages.dev
Branch Preview URL: https://feat-global-metrics.fonts-dsw.pages.dev

View logs

@pkg-pr-new

pkg-pr-new Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/fonts@915

commit: f730646

@danielroe danielroe changed the title feat: generate fallback metrics for global families where they are … feat: generate fallback metrics for global families where used Sep 22, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (feat/webpack@fad0205). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/module.ts 0.00% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             feat/webpack     #915   +/-   ##
===============================================
  Coverage                ?   71.25%           
===============================================
  Files                   ?       15           
  Lines                   ?      668           
  Branches                ?      173           
===============================================
  Hits                    ?      476           
  Misses                  ?      156           
  Partials                ?       36           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@danielroe
danielroe added this pull request to the merge queue Sep 22, 2026
An error occurred while trying to automatically change base from feat/webpack to main September 22, 2026 21:20
Merged via the queue into main with commit 74a6d56 Sep 22, 2026
18 checks passed
@danielroe
danielroe deleted the feat/global-metrics branch September 22, 2026 21:21
@github-actions github-actions Bot mentioned this pull request Sep 22, 2026
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.

2 participants