Skip to content

fix(fileSize): simplify gzip size coloring#6750

Merged
chenjiahan merged 1 commit intomainfrom
gzip_color_1210
Dec 11, 2025
Merged

fix(fileSize): simplify gzip size coloring#6750
chenjiahan merged 1 commit intomainfrom
gzip_color_1210

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Remove default green color from gzip size and only mark oversized bundles in red or yellow.

This reduces visual noise and focus on real size changes.

Before

Screenshot 2025-12-10 at 22 30 07

After

Screenshot 2025-12-10 at 22 30 59

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 10, 2025 14:38
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 10, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 4f669f3
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/693985ea47b7c100089bc290
😎 Deploy Preview https://deploy-preview-6750--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67 (🟢 up 6 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the visual presentation of gzip file sizes by removing the default green coloring, reducing visual noise while maintaining red and yellow highlights for oversized bundles.

  • Replaced color.green return with an identity function in getAssetColor()
  • Size thresholds (>300KB red, >100KB yellow) remain unchanged
  • Normal-sized bundles now display without color emphasis

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit c9d3f2a into main Dec 11, 2025
18 checks passed
@chenjiahan chenjiahan deleted the gzip_color_1210 branch December 11, 2025 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants