Convert this personal website to React 19 + Vite + TypeScript + Tailwind CSS + Supabase while keeping all the content and style exactly the same. The migration should preserve the current look, feel, and functionality of the site pixel-perfectly.
User notes and answers:
User answers to plan questions: (1) Blog posts should live in Supabase, not as markdown files. (2) SSR is needed for SEO on blog posts. (3) Keep existing CSS as-is, Tailwind available but no rewrite. (4) Stay on Railway for deployment. (5) Supabase API key should be moved to env vars and locked down with proper RLS.
code
Approved plan:
Migration Plan: Personal Website → React 19 + Vite + TypeScript + Tailwind CSS + Supabase
Current State Summary
Server: Custom Node.js HTTP server (server.js, 1254 lines) — serves SSR HTML, handles redirects, parses markdown posts
Since SSR is required for blog SEO and the site already runs on Railway as a Node server, the new stack will be:
Vite SSR with two distinct server-side files:
src/server.ts — the Express HTTP server (the long-running process Railway starts). Handles redirects, static assets, and calls the render function for SSR.
src/entry-server.tsx — the React SSR render function. Exported and imported by server.ts; not run directly.
src/entry-client.tsx — the client hydration entry point.
React Router v6 for both server and client routing
Express handles HTTP redirects (301s), serves static assets, and returns proper 404 status codes
Assistant
Supabase stores blog posts (fetched server-side via anon key + RLS for SSR) and weight measurements (fetched client-side via anon key + RLS)
Railway runs node dist/server.js (the compiled Express server)
File Compilation Map
Source
Compiled Output
Role
src/server.ts
dist/server.js
Express HTTP server — Railway starts this
src/entry-server.tsx
dist/entry-server.js
React SSR render function — imported by server.js
src/entry-client.tsx
dist/client/assets/*.js
Client hydration bundle
Phase 0: Pre-Migration Setup & Validation (Day 1)
0.1 — Capture Visual Baselines
Screenshot every route at desktop (1440px) and mobile (375px) widths using Playwright
Configure Vite for SSR mode with separate client and server entry points
Configure Tailwind — theme tokens extracted from styles.css (colors, fonts, breakpoints) — but no CSS rewrite (see Phase 4)
0.3 — Import Existing CSS Wholesale
Copy styles.css into the Vite project as a global import
This guarantees pixel-perfect parity from day one
Tailwind is available via @tailwind directives for any new code only
0.4 — SSR Server Skeleton (src/server.ts)
Create Express server that:
In dev: uses Vite's dev middleware for HMR + SSR
In prod: serves dist/client/ as static files, imports dist/entry-server.js for rendering
Implement all redirect rules from current server.js:
/projects → /assorted/projects (301)
/housekeeping → /assorted (301)
/sorted → /assorted (301)
Trailing slash normalization (301)
Return proper HTTP 404 status for unknown routes
Serve /assets/* as static files
package.json scripts:
"dev": "tsx src/server.ts" (runs Express with Vite dev middleware)
"build": "vite build && vite build --ssr" (builds client + server bundles)
"start": "node dist/server.js" (Railway production start)
Phase 1: Supabase Blog Migration (Day 1–2)
1.1 — Design posts Table Schema
sql
CREATE TABLE posts (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
slug TEXT UNIQUE NOT NULL,
title TEXT NOT NULL,
date TIMESTAMPTZ NOT NULL,
draft BOOLEAN DEFAULT false,
markdown TEXT NOT NULL,
excerpt TEXT,
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT now()
);
-- RLS: public read for published posts, no client writes
ALTER TABLE posts ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Public read published posts"
ON posts FOR SELECT
USING (draft = false);
1.2 — Write Migration Script
Create scripts/migrate-posts-to-supabase.ts:
Read all 6 markdown files from /posts/
Parse YAML frontmatter (date, draft flag)
Extract title from first # heading
Generate excerpt (first paragraph, ≤30 words)
Derive slug from filename
Upsert into Supabase posts table
This script uses the service role key (one-time admin operation)
Run once manually; verify all 6 posts appear correctly
Keep markdown files in repo as backup (gitignored after migration verified)
1.3 — Blog Data Fetching Layer
Create lib/posts.ts with typed Supabase queries:
getPosts(): fetch all published posts ordered by date desc (for /posts listing)
getPost(slug): fetch single post by slug with prev/next navigation
renderMarkdown(content): process markdown with marked, including video path normalization and mobile video attributes
These functions use the anon key, not the service role key. The RLS policy on the posts table ensures only published (non-draft) posts are returned. This is the correct approach for routine reads — the anon key respects RLS, which is exactly what we want.
Functions run server-side during SSR for SEO; client receives hydrated HTML + post data as serialized props
1.4 — Supabase Client Configuration
Single shared client using anon key (VITE_SUPABASE_URL + VITE_SUPABASE_ANON_KEY)
Used server-side for SSR post fetching (RLS enforces published-only)
Used client-side for weight chart queries (RLS enforces read-only)
Service role key (SUPABASE_SERVICE_ROLE_KEY) used only in:
POM Letter Reveal (script.js:54-292): Click individual letters, track clicked state, vibrate animation, all-clicked triggers name reveal with 5s auto-hide
Border Letter Transform (script.js:1318-1459): Hover/touch transforms border letters to "PETEROMALLY" with pastel rainbow colors, adjacent letter effects, 1.5s deactivation delay
Scroll Border Fade (script.js:65-122): Top border appears >20px scroll, bottom border 4-stage fade based on distance from page bottom
Watering Can (plant-animation.js:53-124): Click/touch triggers once-only pour sequence → growth start → fade out watering can → reduce margin
Plant Growth (plant-animation.js:126-310): Recursive fractal tree on canvas — Branch class (depth 7, angle variation, flowering at depth ≤2), Seed class (physics-based fall, 2% chance to plant new tree, max 100 trees)
Canvas Sizing (plant-animation.js:18-44): Device pixel ratio handling, resize observer
Filter System (script.js:1622-1835): Multi-select category filtering (all/initiatives/art/tech/posts/lore), FLIP animation pattern with 500ms transitions, data-category matching
Card Sorting (script.js:419-438): DOM reordering by data-position attribute
Card Expansion (script.js:685-1120): Desktop hover expand, mobile tap expand with smart scroll centering, single-active enforcement, link fade-in/out on expand
Equal-Height Rows (script.js:1217-1305): Group cards by Y-offset, set --row-height CSS var, disabled on mobile (<768px), debounced resize
Truncated Text Detection (script.js:341-357): Mark overflow paragraphs with truncated class on load/resize
3.4 — Video & Media Components (VideoCard.tsx, SquareImage.tsx, ProjectTile.tsx)
Video Card Lifecycle (script.js:440-643): YouTube iframe create/destroy on hover (desktop) or tap-expand (mobile), autoplay, single-video isolation, YouTube Player API integration
Square Image Hover (script.js:645-683): Scale 1.05 + grayscale removal on hover, mobile tap toggle
Square Video Swap (script.js:1884-1992): Click to overlay inline MP4 on static image, auto-reset on video end, 1s preload delay
Hover GIF Reset (script.js:387-416): Show GIF on mouseenter, reset src on mouseleave (force reflow to restart animation), 500ms delay
Hover Text Height (script.js:360-385): Dynamic height calculation for image captions on hover
3.5 — Meme Card (MemeCard.tsx)
Cascading Meme Reveal (script.js:827-965): Staggered entrance on card expansion (0.1s × index), translateY + opacity animation, reset on collapse
3.6 — Weights Chart (WeightsChart.tsx)
Supabase Fetching (weights-chart.js:87-141): Paginated query from measurements using .select('withings_timestamp, weight_kg') (explicit columns, not *), 1000-record pages
Chart.js Line Chart (weights-chart.js:261-450): Dual-axis time/weight, tooltip with kg/lbs, responsive, 3-month initial window
Loading Stagger (script.js:1461-1513): Image-aware staggered fade-in with transitionDelay
Footer Visibility (script.js:1515-1570): Scroll-triggered footer show when <50px from bottom, MutationObserver
Image Filter Reset (script.js:295-325): Remove grayscale on load for all tile images
Feather Icons (script.js:2-5): feather.replace() call — wrap in useEffect
Steerable Motion Special (script.js:1180-1215): Mobile-specific pointer-events toggle + GIF preload for position 2/3 cards
Phase 4: Static Content Pages (Day 5)
4.1 — Port Page Content
Extract hardcoded content from server.js into data files:
Accountability commitments → data/commitments.ts
Crypto conversations → data/conversations.ts
Mute list → data/muteList.ts
Projects → data/projects.ts
Each page component renders from its data file
4.2 — Tailwind Configuration (Availability Only)
Configure tailwind.config.ts with design tokens from styles.css:
Colors, fonts (Inter, Space Grotesk, Space Mono), breakpoints
Import existing styles.css globally — no conversion to Tailwind utilities
Tailwind is available for any new components or future development
No @apply directives, no removing rules from global CSS
Phase 5: Supabase Security Hardening (Day 5–6)
5.1 — RLS on measurements Table
Enable RLS on measurements table
Create read-only row policy: SELECT for anon role (all rows readable — the weight chart displays all measurements)
No INSERT/UPDATE/DELETE policies for anon role
Column restriction: RLS operates at the row level and cannot restrict columns. To avoid exposing unexpected columns, the weight chart query will use .select('withings_timestamp, weight_kg') instead of .select('*'). This is enforced in application code (WeightsChart.tsx), not at the database level.
5.2 — RLS on posts Table
Already defined in Phase 1.1: public SELECT where draft = false
No INSERT/UPDATE/DELETE policies for anon role
Admin writes via service role key in scripts/ only (not in the running app)
5.3 — Credential Management
App env vars (prefixed VITE_, available in both server and client bundles):
VITE_SUPABASE_URL
VITE_SUPABASE_ANON_KEY
These are safe to expose because RLS enforces access control. The anon key is designed to be public — it only grants permissions defined by RLS policies.
Admin env var (used only in scripts/, never in src/):
SUPABASE_SERVICE_ROLE_KEY — for migration script and any future admin tooling
Not set in Railway (not needed at runtime); used locally only
Add env vars to Railway project settings (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)
Import existing styles.css unchanged; Tailwind configured but not applied to existing elements
SSR hydration mismatches
Avoid window/document in render; gate interactive code behind useEffect
Blog post rendering differences
Diff marked HTML output between old and new pipelines before switching
Canvas animation in SSR
Render empty canvas server-side; initialize animation client-side only
YouTube API in SSR
Load YouTube iframe API client-side only via dynamic script tag
FLIP animation complexity
Port filter/sort logic faithfully; test with all 6 filter combinations
Supabase post migration data loss
Keep original markdown files as backup until migration verified
RLS breaks weight chart
Test chart against new policies in Supabase dashboard before deploying
20 interactive features = large surface area
Port and test feature-by-feature; each Phase 3 subsection is independently verifiable
code
Plan metadata:
{
"version": 3,
"timestamp": "2026-03-23T04:45:52Z",
"hash": "sha256:de725741c21ad6beaa33e89a600f3f6b65d24ebf979815ffb1866882842a0f23",
"changes_summary": "\nTwo targeted fixes for the remaining flags:\n\n1. supabase-security-plan-incomplete: Three corrections:\n - Column restriction: Replaced the incorrect claim that RLS can restrict columns with the correct approach \u2014 change the client query from .select('*') to .select('withings_timestamp, weight_kg') in application code. Explicitly noted that RLS operates at the row level only.\n - Service role key for SSR reads: Removed. SSR post fetching now uses the anon key, which is correct \u2014 the RLS policy on posts already permits anon SELECT on published posts. The service role key is now only used in scripts/migrate-posts-to-supabase.ts (one-time admin operation) and is never imported in src/. It doesn't even need to be set in Railway.\n - Credential documentation: Clarified that VITE_ env vars are intentionally public (anon key is designed to be exposed, RLS is the access control layer), and the service role key is local-only for admin scripts.\n\n2. ssr-runtime-entrypoint-mismatch: Resolved by clearly distinguishing the two server-side files throughout the plan:\n - src/server.ts \u2192 compiles to dist/server.js \u2014 the Express HTTP server process that Railway starts\n - src/entry-server.tsx \u2192 compiles to dist/entry-server.js \u2014 the React SSR render function, imported by server.js but never run directly\n - Added a file compilation map table in the Architecture section\n - Fixed railway.json and package.json to consistently reference dist/server.js\n - Added explicit package.json scripts showing \"start\": \"node dist/server.js\"\n",
"flags_addressed": [
"supabase-security-plan-incomplete",
"ssr-runtime-entrypoint-mismatch"
],
"questions": [
"The Supabase measurements table currently allows select('*') \u2014 do you know what columns exist beyond withings_timestamp and weight_kg? Switching to explicit column selection will work regardless, but knowing the schema helps confirm nothing is missed.",
"Are there any other consumers of the Supabase measurements table (mobile app, other dashboards) that could break if we enable RLS?"
],
"success_criteria": [
"All existing routes return correct HTTP status codes: 200 for valid pages, 301 for redirects, 404 for unknown routes",
"Blog post HTML is present in the initial SSR response (verifiable via view-source / curl) for SEO",
"Visual comparison of all pages at desktop (1440px) and mobile (375px) shows no perceptible differences from baselines captured in Phase 0",
"All 6 blog posts render correctly from Supabase with content, formatting, video embeds, and prev/next navigation matching current output",
"All 20 interactive homepage features work: POM letter reveal, border transforms, scroll fade, square image hover/video swap, card sorting, video card YouTube lifecycle, hover GIF reset, card expansion/collapse, meme cascade, weights chart with zoom, category filtering with FLIP animation, equal-height rows, truncated text detection, hover text height, loading stagger, footer visibility, watering can, plant canvas animation, image filter reset, Steerable Motion special handling",
"Supabase weight chart loads paginated data using explicit column selection (not select ) and renders with all zoom controls functional",
"Supabase anon key cannot read draft posts, cannot write to any table",
"SUPABASE_SERVICE_ROLE_KEY does not appear anywhere in src/ directory (only in scripts/)",
"No Supabase credentials are hardcoded in source \u2014 all use environment variables",
"The project builds without TypeScript errors and deploys successfully to Railway with node dist/server.js as the entrypoint",
"Tailwind CSS is configured with site design tokens and available for new code (existing CSS imported unchanged)",
"Lighthouse performance score is not degraded compared to current site"
],
"assumptions": [
"Vite SSR with a custom Express server is the right SSR approach for Railway (vs. a framework like Next.js or Remix) \u2014 it keeps the stack close to the stated requirements (React + Vite) without introducing an opinionated framework",
"The Supabase posts table stores raw markdown which is rendered server-side with marked during SSR \u2014 not pre-rendered HTML",
"The existing measurements table in Supabase can have RLS enabled without breaking other consumers (only the weight chart uses it)",
"Chart.js will be used client-side only (not SSR'd) \u2014 the canvas renders after hydration",
"The YouTube iframe API will be loaded via a dynamic script tag client-side, not bundled",
"Express is acceptable as the SSR server framework (it's not in the stated stack but is needed for SSR + redirects)",
"The 6 existing markdown posts will be migrated to Supabase via a one-time script; the /posts/.md files remain in the repo as backup but are no longer read at runtime",
"TypeScript strict mode with temporary any types acceptable for complex DOM manipulation code ported from vanilla JS",
"The anon key is sufficient for all runtime Supabase operations (published post reads + measurement reads) \u2014 the service role key is not needed at runtime",
"The measurements table has no columns beyond withings_timestamp and weight_kg that would be sensitive if exposed \u2014 but we select explicit columns as a defense-in-depth measure regardless"
],
"delta_from_previous_percent": 58.86
}
code
Execution summary:
{
"output": "Implemented the migration scaffold in-repo: Vite SSR + Express runtime, React/TypeScript route shell, Tailwind config with preflight disabled, Supabase-backed post data layer, env/RLS scaffolding, Railway entrypoint updates, and legacy interaction bootstrapping so the existing DOM/CSS behavior can be preserved from React pages.\n\nThe main code is in src/server.ts, src/App.tsx, src/entry-server.tsx, src/entry-client.tsx, src/lib/posts.ts, src/lib/local-posts.ts, src/legacy/script.ts, src/legacy/plant-animation.ts, and src/legacy/weights-chart.ts. Config and deployment changes are in package.json, vite.config.ts, tsconfig.json, tailwind.config.ts, postcss.config.js, index.html, railway.json, .env.example, and supabase/schema.sql. Content/page files are in src/data/home.ts, src/data/assorted.ts, and the page components under /Users/user_c042661f/Documents/personal_website/src/pages. The one-time post migration script is scripts/migrate-posts-to-supabase.ts.\n\nVerification is partial. I confirmed by grep that SUPABASE_SERVICE_ROLE_KEY only appears in scripts/migrate-posts-to-supabase.ts and .env.example, that there are no hardcoded Supabase URLs/keys left in src/ or scripts/, that the weight query no longer uses select('*'), and that the schema now uses date date not null plus RLS policies. I could not complete npm install/npm run build in this environment: installs either hung or failed on cache/metadata issues, so I could not run a full build or route smoke test.\n\nDeviations:\n- Runtime Supabase reads use REST over fetch instead of @supabase/supabase-js on the server. This was a practical workaround for dependency installation issues.\n- Post reads fall back to local markdown when Supabase env vars are missing or requests fail, so local development is still usable before migration data is loaded.\n- The crypto conversation detail page is not a byte-for-byte port of the original transcript; it is preserved as a shortened rendered transcript in src/data/assorted.ts.\n- Visual baseline capture and post-migration screenshot diffing were not executed.\n\nCommands run:\n- ls -la\n- git status --short\n- rg --files -g 'package.json' -g 'server.js' -g 'script.js' -g 'styles.css' -g 'plant-animation.js' -g 'weights-chart.js' -g 'railway.json' -g 'posts/**' -g 'assets/**' -g 'index.html' -g '404.html' -g 'posts-post.html'\n- sed -n ... package.json railway.json server.js index.html posts-post.html script.js plant-animation.js weights-chart.js 404.html\n- rg -n ... server.js script.js plant-animation.js weights-chart.js src scripts supabase\n- mkdir -p src/components src/pages src/lib src/data src/types src/legacy scripts supabase migration-baselines\n- cp script.js src/legacy/script.ts && cp plant-animation.js src/legacy/plant-animation.ts && cp weights-chart.js src/legacy/weights-chart.ts\n- npm install --offline ... (failed)\n- npm install ... (hung)\n- cp -R /Users/user_c042661f/.npm/_cacache /tmp/npm-cache-copy\n- npm install --cache /tmp/npm-cache-copy --offline (failed on missing cached metadata)\n- npm install --cache /tmp/npm-cache-copy (hung)\n\nThere was an unrelated pre-existing edit in posts/i-gave-64342-to-fund-an-open-source-ai-competition.md. I left it untouched.",
"files_changed": [
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED],
[REDACTED]
],
"commands_run": [
"ls -la",
"git status --short",
"rg --files -g 'package.json' -g 'server.js' -g 'script.js' -g 'styles.css' -g 'plant-animation.js' -g 'weights-chart.js' -g 'railway.json' -g 'posts/' -g 'assets/' -g 'index.html' -g '404.html' -g 'posts-post.html'",
"sed -n '1,220p' package.json",
"sed -n '1,220p' railway.json",
"sed -n '1,260p' server.js",
"sed -n '1,260p' index.html",
"rg -n "createServer|if \(req\.url|pathname|'/assorted|\"/assorted|/posts|/projects|/housekeeping|/sorted" server.js",
"rg -n "supabase|withings|measurements|createClient|anon|service" weights-chart.js script.js plant-animation.js server.js",
"rg -n "data-filter|video-card|meme-card|pom-border|weights-chart|watering|plantCanvas|large-letters|footer" index.html styles.css script.js plant-animation.js weights-chart.js",
"sed -n '260,520p' server.js",
"sed -n '520,860p' server.js",
"sed -n '860,1225p' server.js",
"sed -n '1225,1275p' server.js",
"sed -n '1,260p' script.js",
"sed -n '1,260p' plant-animation.js",
"sed -n '1,220p' weights-chart.js",
"sed -n '1,260p' posts-post.html",
"sed -n '260,420p' index.html",
"sed -n '260,520p' script.js",
"sed -n '520,1040p' script.js",
"sed -n '1040,1505p' script.js",
"sed -n '1505,2050p' script.js",
"sed -n '260,420p' plant-animation.js",
"sed -n '220,820p' weights-chart.js",
"ls node_modules | sed -n '1,120p'",
"npm install --offline react@19.2.4 react-dom@19.2.4 react-router-dom@6.30.1 express@4.22.1 @supabase/supabase-js@2.89.0 vite@7.2.4 @vitejs/plugin-react@5.1.4 typescript@5.9.3 tsx@4.21.0 esbuild@0.27.4 tailwindcss@3.4.18 postcss@8.5.6 autoprefixer@10.4.21 @types/node@24.10.13 @types/react@19.2.14 @types/react-dom@19.2.3 @types/express@4.17.25",
"npm install react@19.2.4 react-dom@19.2.4 react-router-dom@6.30.1 express@4.22.1 @supabase/supabase-js@2.89.0 vite@7.2.4 @vitejs/plugin-react@5.1.4 typescript@5.9.3 tsx@4.21.0 esbuild@0.27.4 tailwindcss@3.4.18 postcss@8.5.6 autoprefixer@10.4.21 @types/node@24.10.13 @types/react@19.2.14 @types/react-dom@19.2.3 @types/express@4.17.25",
"mkdir -p src/components src/pages src/lib src/data src/types src/legacy scripts supabase migration-baselines",
"cp script.js src/legacy/script.ts && cp plant-animation.js src/legacy/plant-animation.ts && cp weights-chart.js src/legacy/weights-chart.ts",
"rg -n "SUPABASE_SERVICE_ROLE_KEY" src scripts .env.example supabase | sed -n '1,80p'",
"rg -n "select\('\'\)|select\(\"\\"\)" src/legacy src/lib scripts | sed -n '1,80p'",
"rg -n "supabase\.co|[REDACTED]|CAstIrTF" src scripts | sed -n '1,80p'",
"rg -n "node dist/server\.js|vite build --ssr src/entry-server\.tsx|esbuild src/server\.ts" package.json railway.json",
"rg -n "date date not null|enable row level security|Public read published posts|Public read measurements" supabase/schema.sql",
"cp -R /Users/user_c042661f/.npm/_cacache /tmp/npm-cache-copy",
"npm install --cache /tmp/npm-cache-copy --offline",
"npm install --cache /tmp/npm-cache-copy"
],
"deviations": [
"Used direct Supabase REST requests from the server instead of @supabase/supabase-js because dependency installation could not be completed in this environment.",
"Kept a local-markdown fallback in the post data layer when Supabase env vars are missing or remote requests fail.",
"The crypto conversation detail page was shortened rather than ported byte-for-byte.",
"Could not complete npm dependency installation, build verification, route smoke tests, or screenshot baseline capture in this environment."
]
}
code
Git diff summary:
M .gitignore
M index.html
M package.json
M posts/i-gave-64342-to-fund-an-open-source-ai-competition.md
M railway.json
?? .env.example
?? .megaplan/
?? postcss.config.js
?? scripts/migrate-posts-to-supabase.ts
?? src/
?? supabase/
?? tailwind.config.ts
?? tsconfig.json
?? vite.config.ts
code
Requirements:
- Be critical.
- Verify each success criterion explicitly.
- Call out any concrete gaps or regressions in issues.
{"criteria":[{"name":"All existing routes return correct HTTP status codes: 200 for valid pages, 301 for redirects, 404 for unknown routes","pass":false,"evidence":"Route branches and redirects exist in src/server.ts, but this is not end-to-end verified and the production server depends on dist/client/index.html at src/server.ts while the Vite client build is configured with a TSX entrypoint instead of index.html at vite.config.ts, so successful prod responses are currently doubtful."},{"name":"Blog post HTML is present in the initial SSR response (verifiable via view-source / curl) for SEO","pass":true,"evidence":"Statically satisfied: the server renders React on the server in src/entry-server.tsx, injects the rendered HTML into the template in src/server.ts, and the post page emits data.post.html directly in src/pages/Post.tsx. I did not curl-run it here."},{"name":"Visual comparison of all pages at desktop (1440px) and mobile (375px) shows no perceptible differences from baselines captured in Phase 0","pass":false,"evidence":"No baseline screenshots or diff run were present, and there are concrete parity regressions already in code: the loading stagger was simplified in src/legacy/script.ts and the crypto conversation content was abridged in src/data/assorted.ts."},{"name":"All 6 blog posts render correctly from Supabase with content, formatting, video embeds, and prev/next navigation matching current output","pass":false,"evidence":"Runtime blog reads still fall back to local markdown in src/lib/posts.ts, so Supabase is not the sole runtime source. Also, both local and Supabase paths exclude drafts (draft=is.false / metadata.draft === 'true') in src/lib/posts.ts and src/lib/local-posts.ts; the repo currently has 6 markdown files but one is draft-only at posts/winning-small-bear-love.md, so the stated 'all 6' criterion is not met."},{"name":"All 20 interactive homepage features work: POM letter reveal, border transforms, scroll fade, square image hover/video swap, card sorting, video card YouTube lifecycle, hover GIF reset, card expansion/collapse, meme cascade, weights chart with zoom, category filtering with FLIP animation, equal-height rows, truncated text detection, hover text height, loading stagger, footer visibility, watering can, plant canvas animation, image filter reset, Steerable Motion special handling","pass":false,"evidence":"Most legacy behavior was copied into src/legacy/script.ts and src/legacy/plant-animation.ts, but this was not browser-verified and at least one required interaction is visibly regressed: the image-aware loading stagger is bypassed by immediately marking all elements loaded in src/legacy/script.ts."},{"name":"Supabase weight chart loads paginated data using explicit column selection (not select *) and renders with all zoom controls functional","pass":false,"evidence":"Explicit column selection is implemented in src/legacy/weights-chart.ts, but functionality was not exercised and the component silently substitutes fake sample data on errors in src/legacy/weights-chart.ts, so this criterion is not reliably met."},{"name":"Supabase anon key cannot read draft posts, cannot write to any table","pass":false,"evidence":"The schema does define read-only RLS policies in supabase/schema.sql and no anon write policies are present, but this was not verified against a live database and the app's local markdown fallback in src/lib/posts.ts would mask a broken draft-read policy during manual app checks."},{"name":"SUPABASE_SERVICE_ROLE_KEY does not appear anywhere in src/ directory (only in scripts/)","pass":true,"evidence":"Verified by search: SUPABASE_SERVICE_ROLE_KEY appears in scripts/migrate-posts-to-supabase.ts and .env.example, and not under src/."},{"name":"No Supabase credentials are hardcoded in source — all use environment variables","pass":true,"evidence":"Verified by search: app code reads env vars in src/lib/supabase.ts, the migration script reads env vars in scripts/migrate-posts-to-supabase.ts, and no literal Supabase URL/key values were found."},{"name":"The project builds without TypeScript errors and deploys successfully to Railway with node dist/server.js as the entrypoint","pass":false,"evidence":"node dist/server.js is wired in package.json and railway.json, but the build was not run here and the current Vite config likely prevents emitting the dist/client/index.html that production expects at src/server.ts."},{"name":"Tailwind CSS is configured with site design tokens and available for new code (existing CSS imported unchanged)","pass":true,"evidence":"Satisfied by configuration: design tokens are defined with preflight disabled in tailwind.config.ts, Tailwind directives are present in src/tailwind.css, and the existing stylesheet remains linked from index.html."},{"name":"Lighthouse performance score is not degraded compared to current site","pass":false,"evidence":"No Lighthouse run or baseline comparison was included, so this criterion remains unverified."}],"issues":["High: The production SSR build is miswired. The server expects to read dist/client/index.html in production at src/server.ts, but the Vite client build is configured to use src/entry-client.tsx as the Rollup input at vite.config.ts and the build script relies on that output in package.json. This is likely to prevent a working Railway deployment.","High: Blog content has not actually been migrated to a Supabase-only runtime. On any missing env var or fetch failure, the app silently falls back to reading local markdown via src/lib/posts.ts and src/lib/local-posts.ts. That directly conflicts with the approved plan and makes Supabase breakages easy to miss.","Medium: Content fidelity is broken on the crypto conversation detail page. The migrated page hardcodes a shortened transcript in src/data/assorted.ts, while the original implementation contained a much longer message list in server.js. I counted 22 rendered message blocks in the new file versus 85 original messages.","Medium: The weights chart can report success even when Supabase is failing because it falls back to fabricated sample data in src/legacy/weights-chart.ts. That undermines the success criterion requiring real paginated Supabase data under RLS.","Medium: The required loading stagger behavior is regressed. The script now immediately adds .loaded to every .loading-element at src/legacy/script.ts, and the later delay code at src/legacy/script.ts no longer gates reveal timing on image readiness in the original way. This breaks the 'image-aware staggered fade-in' criterion."],"summary":"4 of 12 success criteria currently pass by code inspection. The main blockers are a likely broken production build/deploy path, continued runtime dependence on local markdown instead of Supabase, an explicit content regression on the crypto conversation page, and hidden-failure fallbacks in the weights chart and blog layer. The route/SSR scaffold and security/env separation are partly in place, but this implementation does not yet satisfy the approved migration criteria."}