From 32f4afb1901196c2f7b1ceaff24ab1868c3b6fdf Mon Sep 17 00:00:00 2001 From: jcomrade Date: Sat, 18 Oct 2025 17:14:26 +0800 Subject: [PATCH 1/3] fix: Update Admin UI to view User Evaluations --- .../admin/event/evaluations/EvaluationInfoModal.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx index a4d627cd..7a0c6dc9 100644 --- a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx +++ b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx @@ -29,7 +29,7 @@ const EvaluationInfoModal: FC = ({ fullName, evaluationList }) => { modalTitle={fullName + ' Evaluation Answers'} visible={showModal} onOpenChange={setShowModal} - className="md:max-w-[80%]" + className="md:max-w-[80%] max-h-[80%] overflow-scroll overflow-x-hidden" trigger={ } > -
- {evaluationList.map((evaluation) => ( +
+ {evaluationList.map((evaluation) => { + return ( -

{QUESTIONS.get(evaluation.question!)}

+
+

{evaluation.question?.split('_').join(' ')}?

{DisplayAnswerSwitch(evaluation)}

+
- ))} + )})}
); From b4b6c10223f5797a25bb49bc1d44298d75790728 Mon Sep 17 00:00:00 2001 From: jcomrade Date: Sat, 18 Oct 2025 17:32:38 +0800 Subject: [PATCH 2/3] fix: use linter for ci issues --- .../event/evaluations/EvaluationInfoModal.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx index 7a0c6dc9..5143d3f7 100644 --- a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx +++ b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx @@ -40,13 +40,14 @@ const EvaluationInfoModal: FC = ({ fullName, evaluationList }) => {
{evaluationList.map((evaluation) => { return ( - -
-

{evaluation.question?.split('_').join(' ')}?

-

{DisplayAnswerSwitch(evaluation)}

-
-
- )})} + +
+

{evaluation.question?.split('_').join(' ')}?

+

{DisplayAnswerSwitch(evaluation)}

+
+
+ ); + })}
); From 0559f594d56ceb8fdb0cdb374e97bacca64802be Mon Sep 17 00:00:00 2001 From: seangaaab Date: Fri, 24 Oct 2025 21:03:46 +0800 Subject: [PATCH 3/3] fix: fix question display --- .../event/evaluations/EvaluationInfoModal.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx index 5143d3f7..47ba500b 100644 --- a/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx +++ b/frontend/src/pages/admin/event/evaluations/EvaluationInfoModal.tsx @@ -3,7 +3,7 @@ import Button from '@/components/Button'; import { FormItemContainer } from '@/components/Form'; import Modal from '@/components/Modal'; import { EvaluationResponse } from '@/model/evaluations'; -import { QUESTIONS } from '@/pages/client/evaluate/questionBuilder/questionsConfig'; +import { QUESTIONS } from '@/pages/client/pycon/evaluate/questionBuilder/questionsConfig'; const DisplayAnswerSwitch = (evaluation: EvaluationResponse) => { const { questionType } = evaluation; @@ -14,6 +14,8 @@ const DisplayAnswerSwitch = (evaluation: EvaluationResponse) => { return {evaluation.answerScale}; case 'boolean': return {evaluation.booleanAnswer ? 'Yes' : 'No'}; + default: + return {evaluation.answer || evaluation.answerScale || evaluation.booleanAnswer || evaluation.multipleAnswers}; } }; @@ -29,7 +31,7 @@ const EvaluationInfoModal: FC = ({ fullName, evaluationList }) => { modalTitle={fullName + ' Evaluation Answers'} visible={showModal} onOpenChange={setShowModal} - className="md:max-w-[80%] max-h-[80%] overflow-scroll overflow-x-hidden" + className="md:max-w-[80%] max-h-[80%]" trigger={ } > -
+
{evaluationList.map((evaluation) => { return ( -
-

{evaluation.question?.split('_').join(' ')}?

-

{DisplayAnswerSwitch(evaluation)}

-
+

{QUESTIONS.get(evaluation.question!)}

+

{DisplayAnswerSwitch(evaluation)}

); })}