Admin about page with dynamic content
Created by: jedmund
Summary
- Adds Prisma models for Profile, SocialLink, WorkHistory, Mention, and GardenItem (schema only for garden)
- Adds admin API routes with batch save pattern for social links, work history, and mentions
- Adds admin About page with Bio, Social, Work History, and Mentions tabs
- Wires up public about page, footer, home intro card, and JSON-LD to use database data with hardcoded fallbacks
- Includes seed script to populate existing hardcoded content into the database
Test plan
-
Run npx prisma db push— schema syncs -
Run npx tsx prisma/seed-about.ts— data populates -
Navigate to /admin/about— page loads, all 4 tabs work -
Edit and save bio, social links, work history, mentions — verify persistence on reload -
Toggle social link/mention active state — verify it hides on public pages -
Check /about— bio and mentions render from database -
Check /— intro card shows short bio from database -
Check footer — social links come from database -
npm run build— no build errors