From e1a99f32f5275e9dd66ea4e5a20bd9cbee87f1e2 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Fri, 17 Jan 2025 17:25:30 -0300 Subject: [PATCH] fix: Consolidando StudentDashbord --- src/pages/demo/DemoPage.tsx | 106 ------------------ .../student-dashboard/StudentDashboard.tsx | 12 -- .../StudentSettingsPage_old.tsx | 71 ------------ 3 files changed, 189 deletions(-) delete mode 100644 src/pages/demo/DemoPage.tsx delete mode 100644 src/pages/student-dashboard/StudentDashboard.tsx delete mode 100644 src/pages/student-dashboard/StudentSettingsPage_old.tsx diff --git a/src/pages/demo/DemoPage.tsx b/src/pages/demo/DemoPage.tsx deleted file mode 100644 index b229328..0000000 --- a/src/pages/demo/DemoPage.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import React, { useState } from 'react'; -import { AudioRecorderDemo } from '../../components/demo/AudioRecorderDemo'; -import { ArrowRight, Sparkles } from 'lucide-react'; -import { useNavigate } from 'react-router-dom'; -import { analytics } from '../../lib/analytics'; - -export function DemoPage() { - const navigate = useNavigate(); - const [demoResult, setDemoResult] = useState<{ - fluency?: number; - accuracy?: number; - confidence?: number; - feedback?: string; - } | null>(null); - - const handleDemoComplete = (result: typeof demoResult) => { - setDemoResult(result); - // Rastreia quando o resultado é exibido - if (result) { - analytics.track('demo_completed', { - fluency: result.fluency, - accuracy: result.accuracy, - confidence: result.confidence, - has_feedback: !!result.feedback - }); - } - }; - - return ( -
-
-
-

- Experimente Agora! -

-

- Grave um trecho de leitura e veja como nossa IA avalia seu desempenho -

-
- -
-
-

Texto Sugerido para Leitura:

-
- "O pequeno príncipe sentou-se numa pedra e levantou os olhos para o céu: - — Pergunto-me se as estrelas são iluminadas para que cada um possa um dia encontrar a sua." -
-
- - -
- - {demoResult && ( -
-

- - Resultado da Análise -

- -
-
-
- {demoResult.fluency}% -
-
Fluência
-
- -
-
- {demoResult.accuracy}% -
-
Precisão
-
- -
-
- {demoResult.confidence}% -
-
Confiança
-
-
- -
-

- Feedback da IA -

-

- {demoResult.feedback} -

-
- -
- -
-
- )} -
-
- ); -} \ No newline at end of file diff --git a/src/pages/student-dashboard/StudentDashboard.tsx b/src/pages/student-dashboard/StudentDashboard.tsx deleted file mode 100644 index 6b75d01..0000000 --- a/src/pages/student-dashboard/StudentDashboard.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; - -export function StudentDashboard(): JSX.Element { - return ( -
-

- Bem-vindo ao Dashboard -

- {/* Conteúdo do dashboard será implementado aqui */} -
- ); -} \ No newline at end of file diff --git a/src/pages/student-dashboard/StudentSettingsPage_old.tsx b/src/pages/student-dashboard/StudentSettingsPage_old.tsx deleted file mode 100644 index bd25e42..0000000 --- a/src/pages/student-dashboard/StudentSettingsPage_old.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { AvatarUpload } from "@/components/ui/avatar-upload"; -import { DatePicker } from "@/components/ui/date-picker"; -import { Input } from "@/components/ui/input"; -import { Select } from "@/components/ui/select"; -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@radix-ui/react-tabs"; - -export function StudentSettingsPage() { - return ( -
-

- Configurações do Perfil -

- - {/* Seções em Tabs */} - - - Informações Pessoais - Preferências - Acessibilidade - Notificações - - - -
- {/* Avatar Upload */} -
- -
-

Foto do Perfil

-

- JPG ou PNG, máximo 2MB -

-
-
- - {/* Informações Básicas */} -
- - - -