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
Generate Island Explorer's Tailwind utilities separately and import them from the existing lazy game entry. Keep the shared theme and scope the game utilities to the game container so they only apply there after client-side navigation.
The production build already keeps XState, Three.js, Troika, and the rendered game modules behind the /explore dynamic import. This change extends that boundary to the game's styles.
Bundle impact
Asset
Before
After
Shared CSS, minified
606,371 B
595,364 B
Shared CSS, gzip
78,279 B
77,110 B
Island Explorer CSS, gzip
—
6,565 B
The game pays for its own stylesheet when opened. Its stylesheet includes some shared utilities, so the combined CSS for an uncached game visit grows by 5,396 B gzip.
Verification
Built both versions with pnpm build and inspected Vite's emitted chunks and the Start route manifest. Across 157 route entries, the game JS and CSS are absent from initial preloads and static imports. The /explore dynamic import loads them together.
Verified that all 87 utility selectors removed from shared CSS are present in the scoped game stylesheet and that it keeps the site's custom shadow values.
Formatting and the stylesheet boundary test pass. The direct unit run passed 729 tests, skipped six, and hit three local runtime failures involving Chrome startup and a blocked loopback listener.
Summary by CodeRabbit
Style
Updated styling support for the island game view and site UI, including dynamically styled backgrounds, hover states, category labels, dark themes, and documentation accents. Existing game loading, scene, and interface elements remain within the game’s viewport.
Updated the site’s stylesheet setup so game and visitor chat components are handled consistently by style scanning.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
No actionable comments were generated in the recent review.
Walkthrough
The root route now imports site.css, which configures Tailwind source scanning and inline utility sources. IslandExplorer imports a scoped stylesheet and wraps its existing viewport and overlays in an island-explorer container.
Changes: Tailwind CSS source and game styles
Layer / File(s)
Summary
Site stylesheet source configuration src/routes/__root.tsx, src/styles/site.css, src/styles/app.css
The root route imports site.css, which imports app.css, excludes component directories from source scanning, and defines inline utility sources. The previous exclusion and inline safelists were removed from app.css.
IslandExplorer imports a scoped stylesheet and wraps its existing viewport and overlays in an island-explorer container. The stylesheet configures utility generation for that container.
This change moves Island Explorer's utility styles into a stylesheet that loads with the game, which reduces the shared CSS size. No concrete problem was found, and the change looks safe to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Load Island Explorer styles with the game" matches the main change. The PR moves Island Explorer's Tailwind utilities into a separate stylesheet (IslandExplorer.css) that is imported with t…
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 "Load Island Explorer styles with the game" matches the main change. The PR moves Island Explorer's Tailwind utilities into a separate stylesheet (IslandExplorer.css) that is imported with the game component, and the shared site stylesheet is now split from it. The title is specific and describes the primary intent stated in the objectives and commit message.
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: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 419713d4-7cc0-49eb-a6e3-07a12db699ba
Commits
Reviewing files that changed from the base of the PR and between a205832 and e12b39f.
Files selected for processing: 5
src/components/game/IslandExplorer.client.tsx
src/components/game/IslandExplorer.css
src/routes/__root.tsx
src/styles/app.css
src/styles/site.css
Files with no reviewable changes: 1
src/styles/app.css
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 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
Generate Island Explorer's Tailwind utilities separately and import them from the existing lazy game entry. Keep the shared theme and scope the game utilities to the game container so they only apply there after client-side navigation.
The production build already keeps XState, Three.js, Troika, and the rendered game modules behind the
/exploredynamic import. This change extends that boundary to the game's styles.Bundle impact
The game pays for its own stylesheet when opened. Its stylesheet includes some shared utilities, so the combined CSS for an uncached game visit grows by 5,396 B gzip.
Verification
pnpm buildand inspected Vite's emitted chunks and the Start route manifest. Across 157 route entries, the game JS and CSS are absent from initial preloads and static imports. The/exploredynamic import loads them together.Summary by CodeRabbit