From ec99d736db52d902973e8e879dcf6923d8ae606e Mon Sep 17 00:00:00 2001 From: ruchiralak Date: Wed, 25 Mar 2026 20:43:13 +0530 Subject: [PATCH 001/167] Enhance Mentor Review Pop Model --- server/src/components/MentorPopUp.tsx | 138 +++++++++----- server/src/components/mentorDashboard.tsx | 7 +- .../mentorStudentTaskDetailDialog.tsx | 168 ++++++++++++------ .../src/components/mentorTaskDetailDialog.tsx | 141 ++++++++++----- server/src/components/ui/dialog.tsx | 6 - 5 files changed, 305 insertions(+), 155 deletions(-) diff --git a/server/src/components/MentorPopUp.tsx b/server/src/components/MentorPopUp.tsx index 332a4c9a..a309a63b 100644 --- a/server/src/components/MentorPopUp.tsx +++ b/server/src/components/MentorPopUp.tsx @@ -1,17 +1,11 @@ 'use client'; import React, { useState, useEffect } from 'react'; -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, - AlertDialogTrigger -} from "@/components/ui/alert-dialog"; +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'; +import { Button } from '@/components/ui/button'; +import { Label } from '@/components/ui/label'; +import { Textarea } from '@/components/ui/textarea'; +import { CalendarDays, Clock, FileText, MessageSquare, CheckCircle2, XCircle } from 'lucide-react'; interface MentorPopUpProps { isOpen: boolean; @@ -80,54 +74,106 @@ const MentorPopUp: React.FC = ({ isOpen, onClose, mentorDetail }; return ( + + + {/* Gradient Header */} +
+ + + Mentor Task Detail + +

Review and respond to the student`s activity

+
+
- - -
- - - - Mentor Task Detail - - -
-
- Date -
-

{mentorDetails.selectedDate || 'No date selected'}

+ {/* Body */} +
+ + {/* Stat Cards: Date & Working Hours */} +
+
+
+ +
+
+

Date

+

+ {mentorDetails.selectedDate || '—'} +

-
- Working Hours -
-

{mentorDetails.workingHours || 'No working hours'}

+
+
+ +
+
+

Working Hours

+

+ {mentorDetails.workingHours ? `${mentorDetails.workingHours} hrs` : '—'} +

-
-

Activity

-
-

{mentorDetails.studentActivity || ''}

+ + {/* Activity Card */} +
+
+ + Student Activity +
+
+ {mentorDetails.studentActivity || No activity recorded}
-
-

Review

-