diff --git a/app/javascript/pages/dashboard/charts/QuestionsByCheckType.tsx b/app/javascript/pages/dashboard/charts/QuestionsByCheckType.tsx index 7ebb5db..92c9b28 100644 --- a/app/javascript/pages/dashboard/charts/QuestionsByCheckType.tsx +++ b/app/javascript/pages/dashboard/charts/QuestionsByCheckType.tsx @@ -75,16 +75,16 @@ export const QuestionByCheckType: FC = () => { const {loading, data} = useQuery( QuestionsByCheckTypeCount, { variables: { - uniqueAnswer: {checkType: ['unique_answer'], ...where}, - incompleteAffirmation: {checkType: ['incomplete_affirmation'], ...where}, - multipleAnswer: {checkType: ['multiple_answer'], ...where}, - negativeFocus: {checkType: ['negative_focus'], ...where}, - assertionAndReason: {checkType: ['assertion_and_reason'], ...where}, - gap: {checkType: ['gap'], ...where}, - interpretation: {checkType: ['interpretation'], ...where}, - association: {checkType: ['association'], ...where}, - orderingOrRanking: {checkType: ['ordering_or_ranking'], ...where}, - constantAlternatives: {checkType: ['constant_alternatives'], ...where}, + uniqueAnswer: {checkType: ['UNIQUE_ANSWER'], ...where}, + incompleteAffirmation: {checkType: ['INCOMPLETE_AFFIRMATION'], ...where}, + multipleAnswer: {checkType: ['MULTIPLE_ANSWER'], ...where}, + negativeFocus: {checkType: ['NEGATIVE_FOCUS'], ...where}, + assertionAndReason: {checkType: ['ASSERTION_AND_REASON'], ...where}, + gap: {checkType: ['GAP'], ...where}, + interpretation: {checkType: ['INTERPRETATION'], ...where}, + association: {checkType: ['ASSOCIATION'], ...where}, + orderingOrRanking: {checkType: ['ORDERING_OR_RANKING'], ...where}, + constantAlternatives: {checkType: ['CONSTANT_ALTERNATIVES'], ...where}, } }) diff --git a/app/javascript/pages/dashboard/charts/QuestionsByDifficulty.tsx b/app/javascript/pages/dashboard/charts/QuestionsByDifficulty.tsx index e2060ba..951a544 100644 --- a/app/javascript/pages/dashboard/charts/QuestionsByDifficulty.tsx +++ b/app/javascript/pages/dashboard/charts/QuestionsByDifficulty.tsx @@ -40,9 +40,9 @@ export const QuestionsByDifficulty: FC = () => { const {loading, data} = useQuery( QuestionsByDifficultyCount, { variables: { - easyWhere: {difficulty: ['easy'], ...where}, - mediumWhere: {difficulty: ['medium'], ...where}, - hardWhere: {difficulty: ['hard'], ...where}, + easyWhere: {difficulty: ['EASY'], ...where}, + mediumWhere: {difficulty: ['MEDIUM'], ...where}, + hardWhere: {difficulty: ['HARD'], ...where}, }, }) diff --git a/app/javascript/utils/types.ts b/app/javascript/utils/types.ts index ecd3028..fd6a1b4 100644 --- a/app/javascript/utils/types.ts +++ b/app/javascript/utils/types.ts @@ -1,27 +1,27 @@ export const CHECK_TYPE = [ - { value: "unique_answer", label: "Resposta Única" }, - { value: "incomplete_affirmation", label: "Afirmação Incompleta" }, - { value: "multiple_answer", label: "Resposta Múltipla" }, - { value: "negative_focus", label: "Foco Negativo" }, - { value: "assertion_and_reason", label: "Asserção e Razão" }, - { value: "gap", label: "Lacuna" }, - { value: "interpretation", label: "Interpretação" }, - { value: "association", label: "Associação" }, - { value: "ordering_or_ranking", label: "Ordenação ou Seriação" }, - { value: "constant_alternatives", label: "Alternativas Constantes" }, + { value: "UNIQUE_ANSWER", label: "Resposta Única" }, + { value: "INCOMPLETE_AFFIRMATION", label: "Afirmação Incompleta" }, + { value: "MULTIPLE_ANSWER", label: "Resposta Múltipla" }, + { value: "NEGATIVE_FOCUS", label: "Foco Negativo" }, + { value: "ASSERTION_AND_REASON", label: "Asserção e Razão" }, + { value: "GAP", label: "Lacuna" }, + { value: "INTERPRETATION", label: "Interpretação" }, + { value: "ASSOCIATION", label: "Associação" }, + { value: "ORDERING_OR_RANKING", label: "Ordenação ou Seriação" }, + { value: "CONSTANT_ALTERNATIVES", label: "Alternativas Constantes" }, ]; export const DIFFICULTY = [ - { value: "easy", label: "Fácil" }, - { value: "medium", label: "Média" }, - { value: "hard", label: "Difícil" }, + { value: "EASY", label: "Fácil" }, + { value: "MEDIUM", label: "Média" }, + { value: "HARD", label: "Difícil" }, ]; export const BLOOM_TAXONOMY = [ - { value: "remember", label: "Recordar" }, - { value: "understand", label: "Compreender" }, - { value: "apply", label: "Aplicar" }, - { value: "analyze", label: "Analisar" }, - { value: "evaluate", label: "Avaliar" }, - { value: "create", label: "Criar" }, + { value: "REMEMBER", label: "Recordar" }, + { value: "UNDERSTAND", label: "Compreender" }, + { value: "APPLY", label: "Aplicar" }, + { value: "ANALYZE", label: "Analisar" }, + { value: "EVALUATE", label: "Avaliar" }, + { value: "CREATE", label: "Criar" }, ];