"use client"; import { useEffect } from "react"; import { useRouter } from "next/navigation"; import Link from "next/link"; import { FlaskConical, ArrowRight } from "lucide-react"; import { Button } from "~/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "~/components/ui/card"; import { useStudyContext } from "~/lib/study-context"; export default function ExperimentsRedirect() { const router = useRouter(); const { selectedStudyId } = useStudyContext(); useEffect(() => { // If user has a selected study, redirect to study experiments if (selectedStudyId) { router.replace(`/studies/${selectedStudyId}/experiments`); } }, [selectedStudyId, router]); return (
Experiments Moved Experiment management is now organized by study for better workflow organization.

To manage experiments:

  • • Select a study from your studies list
  • • Navigate to that study's experiments page
  • • Create and manage experiment protocols for that specific study
); }