Skip to content

Add XR Performance Lab pages, routing, components, and experiment data#6

Open
JamesDeRaja wants to merge 1 commit intomainfrom
codex/refactor-lab-into-scalable-architecture
Open

Add XR Performance Lab pages, routing, components, and experiment data#6
JamesDeRaja wants to merge 1 commit intomainfrom
codex/refactor-lab-into-scalable-architecture

Conversation

@JamesDeRaja
Copy link
Copy Markdown
Owner

Motivation

  • Introduce a navigable XR Performance Lab to publish profiling experiments and results within the site.
  • Add client-side routing so lab index and individual experiment pages can be routed and bookmarked.
  • Provide typed data models and presentational components to standardize experiment display and evidence.

Description

  • Added react-router-dom dependency and updated package-lock.json, and wrapped the app in BrowserRouter in src/main.tsx while replacing the single HomePage render with route definitions in src/App.tsx.
  • Implemented lab pages src/lab/pages/LabIndexPage.tsx and src/lab/pages/LabExperimentPage.tsx, plus routing-safe nav components (ExperimentNav) and updated header Navbar links to use site paths.
  • Added typed domain models and data: src/lab/types.ts and src/lab/data/experiments.ts with a sample experiment and getExperimentBySlug helper.
  • Added presentational components for experiments: EvidenceGallery, ExperimentHeader, MetricsSummary, and TechnicalTakeaways, and updated XRLabSection.tsx to surface the new experiments list and link into the lab.
  • Added vercel.json rewrite to route all requests to the SPA entrypoint.

Testing

  • Ran TypeScript type-check with tsc --noEmit and it completed successfully.
  • Ran linting with npm run lint and there were no blocking lint errors.
  • Built the site with npm run build (Vite) and the production build completed successfully.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment Feb 25, 2026 3:37am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant