Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Monthly-checking Feature for Mentees, Mentors and Admins #199

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

mayura-andrew
Copy link
Member

@mayura-andrew mayura-andrew commented Sep 30, 2024

Purpose

The purpose of this PR is to fix #198 by introducing a comprehensive monthly check-in feature for mentees, mentors, and admins.

Goals

  • Mentees: Allow mentees to submit their monthly progress, view mentor feedback, and see the history of their submissions.
  • Mentors: Enable mentors to view their mentees' submissions, provide feedback, and track the history of check-ins.
  • Admins: Provide admins with the ability to oversee the progress of all mentees, ensuring that mentors are providing timely feedback and that mentees are completing their check-ins.

Approach

  • Implemented a submission form UI for mentees to submit their monthly progress.
  • Created a view for mentors to see the submitted check-ins and provide feedback.
  • Developed an admin dashboard to monitor the progress of all mentees.
  • Integrated the feedback form into the mentor dashboard.
  • Integrated the check-in status view into the mentee dashboard.
  • Integrated the admin dashboard view to oversee the check-in process.
  • Added necessary hooks and schemas for form validation and submission.

Screenshots

New Mentor Dashboard

image

New Mentee Monthly-checking UI

image

Mentee Monthly-checking Form Modal

image

View New Submissions UI

image

Mentor Feedback UI

image

History of Submission UI (Mentee Side)

image

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

NodeJS: 20.15.0
FireFox: 129.0

Learning

  • Researched best practices for form validation using react-hook-form and zod.
  • Reviewed UI/UX patterns for feedback forms and admin dashboards.

mayura-andrew and others added 17 commits September 20, 2024 01:19
- Refactor MonthlyChecking component to include UI changes for viewing submissions in both mentor and mentee side.
- Add TagInput functionality to allow users to input and display tags for monthly check-ins.
…ogress Towards Goals; Prevent multiple submissions
Remove menteeName property from MonthlyCheckIn interface in types.ts

Refactor useMonthlyCheckIns hook: Update return type to include MonthlyCheckIn[]

Update formatDate function in utils.ts: Handle null and invalid date strings

Add HistoryClockIcon component

Add NewSubmissionsIcon component

Refactor MentorFeedbackForm component: Update submit button styling

Update MenteeCheckInSchema in schemas.ts: Update validation rules for generalUpdatesAndFeedback and progressTowardsGoals

Add HistoryToggle component

Add NotificationBadge component

Refactor MenteeCheckIn component: Update remove button styling

Refactor MenteeMonthlyChecking component: Update media link text and date format
@mayura-andrew mayura-andrew requested review from anjula-sack and Madhawa97 and removed request for anjula-sack October 1, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant