Repository navigation
Migrate website to vinext and Cloudflare Workers - #54
Merged
Merged
Conversation
Migrate FirstData, first page, and outreach page away from MUI Grid, Card, and Typography to use CSS classes from globals.css. FirstData now uses string image paths instead of StaticImageData imports.
Remove @mui/material, @mui/icons-material, @emotion/react, @emotion/cache, and @emotion/styled dependencies. Replace all MUI components (AppBar, Box, Card, Container, Grid, Paper, Typography, etc.) with plain HTML elements and CSS classes from a new globals.css design system. The design system uses CSS custom properties for the existing color palette (#861f41 primary, #d35401 secondary, #eeeeee background) and provides responsive grid, typography, card, and button utilities. Keep FullCalendar on /calendar and react-medium-image-zoom for robot image zoom. The mobile navigation menu remains a client component with its own state.
Replace MUI Dialog, Box, Button, and DialogActions in calendar page with plain HTML modal. Update ContentCards component to use plain HTML. Fix lazy loading on involved, projects, resources, robots, and sponsors pages. Move images from src/app/img to public/img so they participate in the build-time optimization pipeline. Add npm scripts for image building and update .gitignore to exclude generated assets.
- Bundle size budget: fails if total client JavaScript exceeds 1000 KiB - Image manifest coverage check: warns if source and manifest counts differ - Eager image loading check: warns if more than 5 images use eager loading - Optimized image verification: fails if any manifest entry is missing generated WebP/AVIF variants
Images smaller than 640px natively dont get a 640px variant; the check now verifies that at least one variant exists for each manifest entry.
PChild
force-pushed
the
feat/cloudflare-vinext
branch
from
November 28, 2026 21:19
adea04b to
d5a5fff
Compare
Revert the MUI-to-HTML rewrite that broke the desktop navigation, header color, homepage section layout, and multi-column content grids. Components, pages, theme, and the Emotion cache return to their pre-migration implementations. Retained from the image work: build-time AVIF/WebP variants with a dimension manifest, the new RespImage, lazy loading corrections, moved image sources under public/img, and CI image checks. Bump the CI JS budget to 1400 KiB to account for the restored MUI runtime.
PChild
force-pushed
the
feat/cloudflare-vinext
branch
from
November 28, 2026 21:31
c35a030 to
8f41819
Compare
The pages were already fully styled, so the MUI runtime only added client JavaScript. Rebuild the same markup and measured styles with plain elements and one stylesheet, keeping the DOM, spacing, typography, images, calendar, zoom behaviour and responsive layouts pixel-identical. The mobile drawer and event dialog are reimplemented without MUI while keeping their behaviour.
The calendar route already had its own chunk, but the Calendar nav link's viewport prefetch pulled that 293 KiB chunk into every page. Disable prefetch for that route so only the calendar loads FullCalendar. The base stylesheet was a render-blocking request, which pushed first paint back roughly 80 ms on home and robots. Inline the same compiled CSS into the document head instead; HTML grows but compressed page weight stays level with the original build while FCP returns to parity.
The root layout wrapped every page in Suspense, so static output placed the real content in a hidden segment that only became visible after client hydration. On the Cloudflare preview a slow or failed hydration left the sponsor section blank even though the page and images were present.
The calendar was the only consumer of the FullCalendar packages, its Google Calendar API key, and the calendar/modal styles. Removing it also drops the route-only JavaScript chunk and the unused environment variable from CI.
The zoom overlay inherited the thumbnail's srcset, so the browser kept choosing the small candidate even after the full image was assigned. Give the overlay its own srcset so it renders the full-resolution version.
EasyList contains a generic `##.sponsor-link` rule, so content blockers hide every sponsor anchor on the page. Rename the class so the logos are not mistaken for sponsored ad links.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Validation
Follow-up in this PR
A separate optimization commit will audit and simplify the frontend dependencies and bundles without changing appearance or functionality.