diff --git a/artifacts/ai-readiness/package.json b/artifacts/ai-readiness/package.json index b784d11..5a75982 100644 --- a/artifacts/ai-readiness/package.json +++ b/artifacts/ai-readiness/package.json @@ -72,6 +72,7 @@ "zod": "catalog:" }, "dependencies": { + "@vercel/analytics": "^2.0.1", "react-error-boundary": "^6.1.1" } } diff --git a/artifacts/ai-readiness/src/App.tsx b/artifacts/ai-readiness/src/App.tsx index a54869d..7b393aa 100644 --- a/artifacts/ai-readiness/src/App.tsx +++ b/artifacts/ai-readiness/src/App.tsx @@ -8,6 +8,7 @@ import { AuthProvider, useAuth } from "@/context/auth-context"; import { AlertCircle, Zap } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useState, useEffect, type ComponentType } from "react"; +import { Analytics } from "@vercel/analytics/react"; import NotFound from "@/pages/not-found"; import Landing from "@/pages/landing"; @@ -34,7 +35,10 @@ const queryClient = new QueryClient({ }, }); -function ProtectedRoute({ component: Component, ...props }: { component: ComponentType } & any) { +function ProtectedRoute({ + component: Component, + ...props +}: { component: ComponentType } & any) { const { user, isLoading } = useAuth(); const [, navigate] = useLocation(); @@ -48,10 +52,12 @@ function ProtectedRoute({ component: Component, ...props }: { component: Compone return (
-
- +
+
-

Initializing Intelligence...

+

+ Initializing Intelligence... +

); } @@ -61,7 +67,13 @@ function ProtectedRoute({ component: Component, ...props }: { component: Compone return ; } -function ErrorFallback({ error, resetErrorBoundary }: { error: Error; resetErrorBoundary: () => void }) { +function ErrorFallback({ + error, + resetErrorBoundary, +}: { + error: Error; + resetErrorBoundary: () => void; +}) { const [showDetails, setShowDetails] = useState(false); return ( @@ -71,30 +83,33 @@ function ErrorFallback({ error, resetErrorBoundary }: { error: Error; resetError
- -

Unexpected Error

+ +

+ Unexpected Error +

- You encountered a technical issue. You can try refreshing or contact support if the issue persists. + You encountered a technical issue. You can try refreshing or contact + support if the issue persists.

-
- -
- - + {showDetails && (
@@ -128,7 +143,10 @@ function ErrorFallback({ error, resetErrorBoundary }: { error: Error; resetError
 
 function Router() {
   return (
-     queryClient.resetQueries()}>
+     queryClient.resetQueries()}
+    >
       
         
         
@@ -138,7 +156,9 @@ function Router() {
           {() => }
         
         
-          {(params) => }
+          {(params) => (
+            
+          )}
         
         
           {() => }
@@ -202,6 +222,7 @@ function App() {
           
         
       
+      
     
   );
 }
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index dffc124..6601729 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -152,6 +152,9 @@ importers:
 
   artifacts/ai-readiness:
     dependencies:
+      '@vercel/analytics':
+        specifier: ^2.0.1
+        version: 2.0.1(react@19.1.0)
       react-error-boundary:
         specifier: ^6.1.1
         version: 6.1.1(react@19.1.0)
@@ -1467,6 +1470,35 @@ packages:
   '@types/serve-static@2.2.0':
     resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==}
 
+  '@vercel/analytics@2.0.1':
+    resolution: {integrity: sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==}
+    peerDependencies:
+      '@remix-run/react': ^2
+      '@sveltejs/kit': ^1 || ^2
+      next: '>= 13'
+      nuxt: '>= 3'
+      react: ^18 || ^19 || ^19.0.0-rc
+      svelte: '>= 4'
+      vue: ^3
+      vue-router: ^4
+    peerDependenciesMeta:
+      '@remix-run/react':
+        optional: true
+      '@sveltejs/kit':
+        optional: true
+      next:
+        optional: true
+      nuxt:
+        optional: true
+      react:
+        optional: true
+      svelte:
+        optional: true
+      vue:
+        optional: true
+      vue-router:
+        optional: true
+
   '@vitejs/plugin-react@5.1.4':
     resolution: {integrity: sha512-VIcFLdRi/VYRU8OL/puL7QXMYafHmqOnwTZY50U1JPlCNj30PxCMx65c494b1K9be9hX83KVt0+gTEwTWLqToA==}
     engines: {node: ^20.19.0 || >=22.12.0}
@@ -2588,6 +2620,7 @@ packages:
 
   uuid@10.0.0:
     resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
+    deprecated: uuid@10 and below is no longer supported.  For ESM codebases, update to uuid@latest.  For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
     hasBin: true
 
   vary@1.1.2:
@@ -3718,6 +3751,10 @@ snapshots:
       '@types/http-errors': 2.0.5
       '@types/node': 25.3.5
 
+  '@vercel/analytics@2.0.1(react@19.1.0)':
+    optionalDependencies:
+      react: 19.1.0
+
   '@vitejs/plugin-react@5.1.4(vite@7.3.1(@types/node@25.3.5)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))':
     dependencies:
       '@babel/core': 7.29.0