Skip to content

perf(css): reduce generated global CSS for #235 - #475

Merged
hrx01-dev merged 1 commit into
mainfrom
fix/235-reduce-global-css-size
Aug 26, 2026
Merged

hrx01-dev merged 1 commit into
mainfrom
fix/235-reduce-global-css-size

Conversation

@hrx01-dev

@hrx01-dev hrx01-dev commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • narrow Tailwind v4 source scanning to runtime source trees instead of the broad src/** glob
  • avoid scanning tests/non-runtime files that can contribute unused utilities
  • keep all runtime app, admin, dashboard, Firebase, and entrypoint sources covered

Issue

Closes #235

Validation

The repository's existing CI/build and bundle-budget workflows should validate the generated CSS size and runtime coverage.

Summary by CodeRabbit

  • Bug Fixes
    • Improved styling build accuracy by limiting source scanning to active application files.
    • Prevented test and other non-runtime files from affecting generated styles.

@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
servio Ready Ready Preview Aug 26, 2026 5:16pm

@hrx01-dev hrx01-dev mentioned this pull request Aug 26, 2026
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8fc24d82-3b7a-4e8a-abf5-0a0ef68ec804

📥 Commits

Reviewing files that changed from the base of the PR and between 66e4ac9 and b5eab2a.

📒 Files selected for processing (1)
  • src/styles/tailwind.css

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Tailwind source scanning now targets the app, admin, dashboard, and Firebase runtime trees plus main.tsx. Tests and other non-runtime files are excluded from scanning.

Changes

Tailwind CSS optimization

Layer / File(s) Summary
Restrict runtime source scanning
src/styles/tailwind.css
The broad recursive glob is replaced with explicit JavaScript and TypeScript globs for runtime directories and main.tsx.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to b5eab

This change narrows Tailwind scanning to runtime source trees to reduce generated CSS, with no identified correctness or tooling issue; no actionable merge-blocking risk remains beyond normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The change directly supports issue #235 by limiting Tailwind source scanning to runtime trees and excluding tests and other non-runtime files. This should remove unused utilities while preserving the … Provide CI or build results that confirm the generated CSS size decreases and all required runtime source trees retain their styles.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the performance change: reducing generated global CSS for issue #235.
Out of Scope Changes check ✅ Passed The pull request changes only Tailwind source scanning in src/styles/tailwind.css. The change is directly related to reducing generated global CSS and contains no unrelated code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

The change directly supports issue #235 by limiting Tailwind source scanning to runtime trees and excluding tests and other non-runtime files. This should remove unused utilities while preserving the existing architectural theme. The provided context does not include build output to verify the final CSS size or runtime coverage.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/235-reduce-global-css-size

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

@hrx01-dev
hrx01-dev merged commit 61edc77 into main Aug 26, 2026
3 checks passed
@hrx01-dev
hrx01-dev deleted the fix/235-reduce-global-css-size branch August 26, 2026 17:22
@github-actions

Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit b5eab2a):

https://servio-0--pr475-fix-235-reduce-globa-jt8ptbwl.web.app

(expires Wed, 02 Sep 2026 17:26:09 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 15915abb5951eb298a844eda460b24f444d93a69

This branch was successfully deployed

1 active deployment
Preview — b5eab2ad Deployed Aug 26, 2026 by vercel[bot]
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.

Reduce Global CSS Size

1 participant