Skip to content

fix: drop graph CSS chunking (chat launcher misplaced) - #77

Merged
gfazioli merged 1 commit into
mainfrom
fix/css-order
Oct 6, 2026
Merged

gfazioli merged 1 commit into
mainfrom
fix/css-order

Conversation

@gfazioli

@gfazioli gfazioli commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

On wpbones.com the chat launcher only showed at the foot of the page, shifted left, instead of fixed bottom right.

Cause: cssChunking: 'graph' (added in #75 to keep the home's CSS off the docs) orders the CSS chunks by its own cost model, and Mantine's core stylesheet landed after the component modules. Every module rule overriding a Mantine component at the same specificity lost: the launcher's position: fixed became Mantine's relative, and the docs' GitHub buttons got Mantine's border.

Measured with getComputedStyle:

wpbones.com (graph) local production build, no graph
launcher relative, at the foot of the page, 20 px off the left fixed, right edge 1420, bottom 880 at 1440x900
GitHub button border Mantine's (9%) ours (16%)

Price: the home's CSS is on the docs pages again, about 9 KB gzip (docs LCP ~2.2 s locally instead of ~2.0 s). CLAUDE.md records the trap and what a layered Mantine would need before trying again.

yarn test (65) and yarn build pass.

cssChunking 'graph' (added in #75 to keep the home's CSS off the docs)
orders the chunks by its own cost model, and Mantine's core stylesheet
landed after the component modules: every module rule overriding a
Mantine component at the same specificity lost. On wpbones.com the chat
launcher was position: relative at the foot of the page, 20 px off its
left edge, instead of fixed bottom right, and the docs' GitHub buttons
had Mantine's border. Measured with getComputedStyle on production and
on a local production build without graph (launcher fixed at 1420,880;
border back to ours).

The price is the home's CSS on the docs again, about 9 KB gzip.
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
wpbones-website-docs Ready Ready Preview Oct 6, 2026 6:00am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused configuration rollback addresses the documented regression and clearly records its performance tradeoff.

Review effort: Balanced
Findings: None

What changed in this PR

Removes graph CSS chunking to restore correct Mantine component styling in production.

Changes:

  • Reverts cssChunking: 'graph'.
  • Documents the regression, tradeoff, and future verification requirements.
File Description
next.config.mjs Removes unsafe graph CSS chunking.
CLAUDE.md Records the cause, impact, and mitigation guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gfazioli
gfazioli merged commit 0b05416 into main Oct 6, 2026
3 checks passed
@gfazioli
gfazioli deleted the fix/css-order branch October 6, 2026 06:02

This branch was successfully deployed

2 active deployments
Production — 0b054161 Deployed Oct 6, 2026 by vercel[bot]
Preview — 0b054161 Deployed Oct 6, 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.

2 participants