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
Keep homepage layout stable during hydration - #1545
Hydrate the homepage stats, prompt, principles, and partner and release sections with the route so their layout stays in the document. The maintainer globe loads from a separate chunk. Its placeholder reserves room for the globe and its help text.
Scroll verification
Reloaded and scrolled immediately in the browser. The fix was checked twice at each viewport on the Cloudflare preview.
Viewport
Production
PR preview
Desktop (1280 × 720)
The document shrank from 8,220 px to 3,519 px. A downward wheel step then jumped from 2,160 px to 6,575 px as the sections returned.
Document height held at 8,191 px. Downward input advanced the viewport in 720 px steps.
Mobile width (390 × 844)
The document shrank from 10,756 px to 4,157 px. The viewport moved backward from 5,064 px to 3,313 px during downward scrolling.
Document height held throughout each run. The viewport continued downward through the affected region.
The prompt CTA scrolled to the form and focused the textarea. The globe, Partners and Blog sections loaded in the preview.
Production build, TypeScript, lint, formatting, and six focused unit tests passed locally. The full local test command stopped when the sandbox blocked the TSX IPC socket.
Router regression checks passed for hydration, forward and Back navigation, and hash links.
The homepage's initial assets increase by 27.17 KiB gzip (+4.78%) in the bundle report.
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.
Homepage sections now render directly instead of using visibility-gated hydration. Shared fallback components were removed, and the community map fallback spacing changed. The prompt handler now focuses and selects the textarea without scrolling.
Changes: Homepage rendering
Layer / File(s)
Summary
Direct rendering for starter and social proof src/components/home/HomeApplicationStarter.tsx, src/components/home/HomeSocialProofSection.tsx, src/components/home/HomeSectionFallbacks.tsx
The application starter and social-proof content render directly instead of using visibility-gated hydration. The shared home-section fallback components were removed.
Community section rendering src/components/home/HomeCommunitySection.tsx
The community section renders directly. Its map fallback now uses 1rem + 1lh bottom padding and small, relaxed-leading text.
Route sections and prompt focus src/routes/index.tsx
Stats and principle proofs render directly. The prompt handler focuses the textarea with preventScroll: true and selects it when present.
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Keep homepage layout stable during hydration" matches the main change. The objectives state the goal is to keep homepage sections in the document during hydration and avoid a layout collaps…
Full details: Title check
Explanation
The title "Keep homepage layout stable during hydration" matches the main change. The objectives state the goal is to keep homepage sections in the document during hydration and avoid a layout collapse. The raw summary shows the change removes the visibility-gated Hydrate wrappers and fallback placeholders, which the title does not name directly but which serve that goal. The title is specific and concise, and a teammate scanning history would understand the primary change.
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.
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.
What changed
Hydrate the homepage stats, prompt, principles, and partner and release sections with the route so their layout stays in the document. The maintainer globe loads from a separate chunk. Its placeholder reserves room for the globe and its help text.
Scroll verification
Reloaded and scrolled immediately in the browser. The fix was checked twice at each viewport on the Cloudflare preview.
The prompt CTA scrolled to the form and focused the textarea. The globe, Partners and Blog sections loaded in the preview.
Cloudflare preview