diff --git a/.flowbite-react/pid b/.flowbite-react/pid index f75f5ed..fa606e0 100644 --- a/.flowbite-react/pid +++ b/.flowbite-react/pid @@ -1 +1 @@ -3518 \ No newline at end of file +21636 \ No newline at end of file diff --git a/src/components/feedback/components/ReportTitleInput.tsx b/src/components/feedback/components/ReportTitleInput.tsx index f9656e8..9792775 100644 --- a/src/components/feedback/components/ReportTitleInput.tsx +++ b/src/components/feedback/components/ReportTitleInput.tsx @@ -1,9 +1,11 @@ import React, { ChangeEvent } from 'react'; +import { Tooltip } from '../../../shared'; interface ReportTitleInputProps { title: string; onChange: (value: string) => void; label?: string; + tooltipText?: string; placeholder?: string; } @@ -11,13 +13,18 @@ const ReportTitleInput: React.FC = ({ title, onChange, label = "Título do Relatório", + tooltipText, placeholder = "Digite o título do relatório" }) => { return (
- +
+ + {tooltipText && } +
+ ) => void; } -const ToggleSwitch: React.FC = ({ id, label, isChecked, onChange }) => { +const ToggleSwitch: React.FC = ({ id, label, tooltipText, isChecked, onChange }) => { const containerId = `toggle-${id}`; return (
- {label} +
+ {label} + {tooltipText && } +
= ({ onSave, feedbackMode = 'ai' }) => { // Custom hook for feedback form state and logic const feedbackForm = useFeedbackForm(feedbackMode); - + // Array states for resources and reading files const readingFilesState = useArrayState([]); const currentFileInput = useFormInput(""); const resourcesState = useArrayState([]); - + // Save state hook const { isSaved, showSuccess: showSaveSuccess, showAnimation: saveButtonAnimation, triggerSave, cancelSave } = useSaveState(); @@ -66,45 +67,54 @@ const FeedbackForm: React.FC = ({ onSave, feedbackMode = 'ai'

Geral

- +
- - {/* Configurações Booleanas (Toggles) */} + {/* Configurações Booleanas */}
- feedbackForm.handleToggle('show_score')} + label="Exibir Pontuação" + tooltipText={TooltipContent.geral.Exibir_pontuacao} /> - feedbackForm.handleToggle('show_passed_tests')} + label="Exibir Testes Aprovados" + tooltipText={TooltipContent.geral.Exibir_testes_aprovados} /> - feedbackForm.handleToggle('add_report_summary')} + label="Adicionar Resumo" + tooltipText={TooltipContent.geral.Adicionar_resumo} /> +
{/* Conteúdo Online */}
-

- Adicionar Conteúdo Online de Apoio -

+
+

+ Adicionar Conteúdo Online de Apoio +

+ +
- @@ -117,125 +127,144 @@ const FeedbackForm: React.FC = ({ onSave, feedbackMode = 'ai'

Inteligência Artificial + Beta

-
- {/* Fornecimento de Soluções */} -
-

Fornecimento de Soluções

-
- {(["hint", "yes", "no"] as const).map((type) => ( - - ))} + }`} + > + {type === "hint" ? "Dica" : type === "yes" ? "Sim" : "Não"} + + ))} +
-
- - {/* Tom do Feedback */} - - - {/* Persona do Feedback */} - - - {/* Contexto da Atividade */} -
-

Contexto da Atividade

-