You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(devtools): bundle branding logos instead of loading from nuxt.com and jsDelivr - #1166
The DevTools UI loaded its branding images from third-party hosts every time it opened:
tab logo from https://nuxt.com/assets/design-kit/icon-green.svg
wordmarks from cdn.jsdelivr.net/gh/nuxt/devtools@main/... (also unpinned, tracks main)
the onboarding panel (@nuxt/devtools-onboard) used the same nuxt.com logo
Offline or on locked-down networks these images break, and opening DevTools sends a request to a third party.
This PR inlines the SVGs from assets/ as data:image/svg+xml URIs (packages/devtools/src/branding.ts). The Devframe hub UI and onboard panel render these values as <img src> / <link href>, so data URIs work as-is. The light and dark wordmarks differ only in text fill, so they share one template.
It also sets branding.favicon to the Nuxt logo. Before, it was not set, so the shallow merge kept the Vite+ favicon from Vite DevTools defaults.
devtools-onboard gets its own copy of the logo constant, because it must work without @nuxt/devtools installed (optional peer).
User prompts
Model: Claude Opus 5.5 in Claude Code (Paseo).
After upgrading to Nuxt 4.7 and installing @nuxt/devtools 4.2, the user noticed the tab logo loads from nuxt.com and asked whether it should be bundled instead.
Asked to fix it and open a PR.
Verification
Decoded each data URI and compared it to assets/nuxt.svg, assets/nuxt-devtools-light.svg, assets/nuxt-devtools-dark.svg (whitespace-normalized): all 4 equal, onboard logo identical to devtools logo.
pnpm build in packages/devtools and packages/devtools-onboard: pass. grep -r "nuxt.com/assets\|jsdelivr" dist: no matches.
pnpm vitest run: 23 files, 134 tests passed.
eslint on changed files: clean.
Not verified: rendering in a running dev server (no screenshot taken). Rendering path checked by reading @devframes/hub-ui and @devframes/hub-ui-onboard dist (img.src / link[rel=icon]).
Written with an AI agent. The user reported the issue and approved the fix approach; they have not reviewed the diff yet.
No actionable comments were generated in the recent review.
Walkthrough
The onboarding and DevTools modules now use embedded SVG data URLs for Nuxt branding. The DevTools branding uses a local logo and favicon, plus wordmarks for light and dark modes. The changes replace remote image URLs in both modules.
This change embeds the Nuxt branding images directly in the DevTools and onboarding modules so they work offline and make no third-party requests. No merge-blocking problems were found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: DevTools branding logos are now bundled locally instead of being loaded from nuxt.com and jsDelivr. The raw summary and objectives confirm the change inlines the SVGs …
Description check
The description explains the problem (third-party image loads from nuxt.com and jsDelivr), the fix (inlined SVG data URIs in branding.ts), the onboard logo copy, the favicon change, and the verificati…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: DevTools branding logos are now bundled locally instead of being loaded from nuxt.com and jsDelivr. The raw summary and objectives confirm the change inlines the SVGs as data URIs in branding.ts. The title is specific and matches the changeset.
Full details: Description check
Explanation
The description explains the problem (third-party image loads from nuxt.com and jsDelivr), the fix (inlined SVG data URIs in branding.ts), the onboard logo copy, the favicon change, and the verification steps. It relates directly to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: c7921e4e-bee7-47a4-b81c-9bf76c40ba0a
Commits
Reviewing files that changed from the base of the PR and between b83b0cd and a977cf1.
Files selected for processing: 1
skills-lock.json
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
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
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.
Summary
The DevTools UI loaded its branding images from third-party hosts every time it opened:
https://nuxt.com/assets/design-kit/icon-green.svgcdn.jsdelivr.net/gh/nuxt/devtools@main/...(also unpinned, tracksmain)@nuxt/devtools-onboard) used the same nuxt.com logoOffline or on locked-down networks these images break, and opening DevTools sends a request to a third party.
This PR inlines the SVGs from
assets/asdata:image/svg+xmlURIs (packages/devtools/src/branding.ts). The Devframe hub UI and onboard panel render these values as<img src>/<link href>, so data URIs work as-is. The light and dark wordmarks differ only in text fill, so they share one template.It also sets
branding.faviconto the Nuxt logo. Before, it was not set, so the shallow merge kept the Vite+ favicon from Vite DevTools defaults.devtools-onboardgets its own copy of the logo constant, because it must work without@nuxt/devtoolsinstalled (optional peer).User prompts
Model: Claude Opus 5.5 in Claude Code (Paseo).
@nuxt/devtools4.2, the user noticed the tab logo loads from nuxt.com and asked whether it should be bundled instead.Verification
assets/nuxt.svg,assets/nuxt-devtools-light.svg,assets/nuxt-devtools-dark.svg(whitespace-normalized): all 4 equal, onboard logo identical to devtools logo.pnpm buildinpackages/devtoolsandpackages/devtools-onboard: pass.grep -r "nuxt.com/assets\|jsdelivr" dist: no matches.pnpm vitest run: 23 files, 134 tests passed.eslinton changed files: clean.@devframes/hub-uiand@devframes/hub-ui-onboarddist (img.src/link[rel=icon]).Written with an AI agent. The user reported the issue and approved the fix approach; they have not reviewed the diff yet.