feat: add speech telemetry and bundle guard

This commit is contained in:
colinislit
2025-11-25 13:37:00 +01:00
parent b6c5d1a6d3
commit 7033329e0f
17 changed files with 2258 additions and 481 deletions

View File

@@ -1,7 +1,26 @@
import { NewIntakeForm } from '../components/new-intake-form';
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { ChevronLeft } from 'lucide-react';
const NewIntakeForm = dynamic(
() => import('../components/new-intake-form').then((m) => m.NewIntakeForm),
{ ssr: false, loading: () => <FormSkeleton /> }
);
function FormSkeleton() {
return (
<div className="space-y-4 animate-pulse">
<div className="h-5 w-1/3 rounded bg-slate-200" />
<div className="h-10 rounded bg-slate-100" />
<div className="h-5 w-1/4 rounded bg-slate-200" />
<div className="h-10 rounded bg-slate-100" />
<div className="h-5 w-1/4 rounded bg-slate-200" />
<div className="h-10 rounded bg-slate-100" />
<div className="h-10 rounded bg-slate-200" />
</div>
);
}
interface NewIntakePageProps {
params: Promise<{ id: string }>;
}
@@ -31,4 +50,3 @@ export default async function NewIntakePage({ params }: NewIntakePageProps) {
</div>
);
}