From e46f32ddafbfdc29b8f17fd0ccacc2bb7d144691 Mon Sep 17 00:00:00 2001 From: Dhinesh Date: Mon, 19 Jan 2026 19:52:24 +0530 Subject: [PATCH 1/2] feat: Add mentor performance page for team leads - Introduced a new page for team leads to view mentor performance, including academic and review metrics. - Created separate components for academic and review performance tables, displaying relevant data such as attendance, average ratings, and total reviews. - Implemented a filter group for enhanced search functionality and navigation. - Updated the team lead menu to include a link to the new mentor performance page. - Enhanced the layout and design for improved user experience and consistency across the dashboard. --- src/_data/review_performance.json | 117 ++++++++ src/_data/top_accademic_performers.json | 81 ++++++ .../includes/performance_overview.html | 34 +-- src/simba/partials/menus/team_lead_menu.html | 43 +++ .../academic_performance_content.html | 180 ++++++++++++ .../includes/filter_group.html | 63 +++++ .../mentor_performance/includes/header.html | 15 + .../mentor_performance/includes/nav_tab.html | 27 ++ .../includes/review_performance_content.html | 265 ++++++++++++++++++ .../team_lead/mentor_performance/index.html | 35 +++ 10 files changed, 831 insertions(+), 29 deletions(-) create mode 100644 src/simba/team_lead/mentor_performance/includes/academic_performance_content.html create mode 100644 src/simba/team_lead/mentor_performance/includes/filter_group.html create mode 100644 src/simba/team_lead/mentor_performance/includes/header.html create mode 100644 src/simba/team_lead/mentor_performance/includes/nav_tab.html create mode 100644 src/simba/team_lead/mentor_performance/includes/review_performance_content.html create mode 100644 src/simba/team_lead/mentor_performance/index.html diff --git a/src/_data/review_performance.json b/src/_data/review_performance.json index d8b3ba2318..28ff2e3dcf 100644 --- a/src/_data/review_performance.json +++ b/src/_data/review_performance.json @@ -89,5 +89,122 @@ "two_star_count": 1, "one_star_count": 0, "rank": 7 + }, + { + "id": 8, + "name": "Kavita Iyer", + "image_url": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 4.1, + "total_reviews": 85, + "five_star_count": 55, + "four_star_count": 23, + "three_star_count": 6, + "two_star_count": 1, + "one_star_count": 0, + "rank": 8 + }, + { + "id": 9, + "name": "Suresh Menon", + "image_url": "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 4.0, + "total_reviews": 82, + "five_star_count": 52, + "four_star_count": 24, + "three_star_count": 5, + "two_star_count": 1, + "one_star_count": 0, + "rank": 9 + }, + { + "id": 10, + "name": "Divya Sharma", + "image_url": "https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.9, + "total_reviews": 78, + "five_star_count": 48, + "four_star_count": 23, + "three_star_count": 6, + "two_star_count": 1, + "one_star_count": 0, + "rank": 10 + }, + { + "id": 11, + "name": "Rohit Verma", + "image_url": "https://images.unsplash.com/photo-1507591064344-4c6ce005b128?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.8, + "total_reviews": 75, + "five_star_count": 45, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 11 + }, + { + "id": 12, + "name": "Sneha Desai", + "image_url": "https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.7, + "total_reviews": 72, + "five_star_count": 42, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 12 + }, + { + "id": 13, + "name": "Amit Joshi", + "image_url": "https://images.unsplash.com/photo-1506277886164-e25aa3f4ef7f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.6, + "total_reviews": 68, + "five_star_count": 38, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 13 + }, + { + "id": 14, + "name": "Pooja Nair", + "image_url": "https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.5, + "total_reviews": 65, + "five_star_count": 35, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 14 + }, + { + "id": 15, + "name": "Neha Gupta", + "image_url": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.4, + "total_reviews": 62, + "five_star_count": 32, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 15 + }, + { + "id": 16, + "name": "Rahul Kapoor", + "image_url": "https://images.unsplash.com/photo-1508341591423-4347099e1f19?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "average_rating": 3.3, + "total_reviews": 58, + "five_star_count": 28, + "four_star_count": 22, + "three_star_count": 7, + "two_star_count": 1, + "one_star_count": 0, + "rank": 16 } ] diff --git a/src/_data/top_accademic_performers.json b/src/_data/top_accademic_performers.json index 5760d5cdbd..66b5a1e056 100644 --- a/src/_data/top_accademic_performers.json +++ b/src/_data/top_accademic_performers.json @@ -61,5 +61,86 @@ "student_attendance_percentage": 72, "average_student_score_percentage": 74, "rank": 7 + }, + { + "id": 8, + "name": "Kavita Iyer", + "image_url": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 14, + "student_attendance_percentage": 88, + "average_student_score_percentage": 85, + "rank": 8 + }, + { + "id": 9, + "name": "Suresh Menon", + "image_url": "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 11, + "student_attendance_percentage": 81, + "average_student_score_percentage": 78, + "rank": 9 + }, + { + "id": 10, + "name": "Divya Sharma", + "image_url": "https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 9, + "student_attendance_percentage": 79, + "average_student_score_percentage": 76, + "rank": 10 + }, + { + "id": 11, + "name": "Rohit Verma", + "image_url": "https://images.unsplash.com/photo-1507591064344-4c6ce005b128?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 15, + "student_attendance_percentage": 90, + "average_student_score_percentage": 86, + "rank": 11 + }, + { + "id": 12, + "name": "Sneha Desai", + "image_url": "https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 10, + "student_attendance_percentage": 76, + "average_student_score_percentage": 73, + "rank": 12 + }, + { + "id": 13, + "name": "Amit Joshi", + "image_url": "https://images.unsplash.com/photo-1506277886164-e25aa3f4ef7f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 12, + "student_attendance_percentage": 84, + "average_student_score_percentage": 80, + "rank": 13 + }, + { + "id": 14, + "name": "Pooja Nair", + "image_url": "https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 8, + "student_attendance_percentage": 73, + "average_student_score_percentage": 71, + "rank": 14 + }, + { + "id": 15, + "name": "Neha Gupta", + "image_url": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 13, + "student_attendance_percentage": 86, + "average_student_score_percentage": 83, + "rank": 15 + }, + { + "id": 16, + "name": "Rahul Kapoor", + "image_url": "https://images.unsplash.com/photo-1508341591423-4347099e1f19?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=320&h=320&q=80", + "batches_handled": 9, + "student_attendance_percentage": 77, + "average_student_score_percentage": 75, + "rank": 16 } ] diff --git a/src/simba/dashboard/team_lead/includes/performance_overview.html b/src/simba/dashboard/team_lead/includes/performance_overview.html index 6895dc3362..bc05fe9648 100644 --- a/src/simba/dashboard/team_lead/includes/performance_overview.html +++ b/src/simba/dashboard/team_lead/includes/performance_overview.html @@ -1,30 +1,8 @@
- -
-

- Top Performers -

- - - - -
- - - -
- -
diff --git a/src/simba/team_lead/mentor_performance/includes/academic_performance_content.html b/src/simba/team_lead/mentor_performance/includes/academic_performance_content.html new file mode 100644 index 0000000000..c7c9c82689 --- /dev/null +++ b/src/simba/team_lead/mentor_performance/includes/academic_performance_content.html @@ -0,0 +1,180 @@ + +
+ +
+
+ + + + + + + + + + + + + + + + + {% for performer in top_accademic_performers %} + + + + + + + + + {% endfor %} + +
+ +
+ + + {% include 'src/simba/partials/dropdowns/table_sort.html' %} +
+ +
+ +
+ + + {% include 'src/simba/partials/dropdowns/table_sort.html' %} +
+ +
+ +
+ + + {% include 'src/simba/partials/dropdowns/table_sort.html' %} +
+ +
+ +
+ + + {% include 'src/simba/partials/dropdowns/table_sort.html' %} +
+ +
+ +
+ + + {% include 'src/simba/partials/dropdowns/table_sort.html' %} +
+ +
+ {% if performer.rank == 1 %} + + + + + + {% elif performer.rank == 2 %} + + + + + + {% elif performer.rank == 3 %} + + + + + + {% else %} + #{{loop.index}} + {% endif %} + + + + {{ performer.batches_handled }} + + {{ performer.student_attendance_percentage + }}% + + {{ + performer.average_student_score_percentage + }}% +
+ +
+
+ +
+ \ No newline at end of file diff --git a/src/simba/team_lead/mentor_performance/includes/filter_group.html b/src/simba/team_lead/mentor_performance/includes/filter_group.html new file mode 100644 index 0000000000..f857b1c2ec --- /dev/null +++ b/src/simba/team_lead/mentor_performance/includes/filter_group.html @@ -0,0 +1,63 @@ + +
+
+ +
+
+ + + + +
+ + +
+ +
+ + +
+ + + + +
+ +
+ \ No newline at end of file diff --git a/src/simba/team_lead/mentor_performance/includes/header.html b/src/simba/team_lead/mentor_performance/includes/header.html new file mode 100644 index 0000000000..78688cca39 --- /dev/null +++ b/src/simba/team_lead/mentor_performance/includes/header.html @@ -0,0 +1,15 @@ + +
+
+

+ Mentor Performance +

+

+ View mentor performance for all batches assigned to you. +

+
+ +
+ +
+
\ No newline at end of file diff --git a/src/simba/team_lead/mentor_performance/includes/nav_tab.html b/src/simba/team_lead/mentor_performance/includes/nav_tab.html new file mode 100644 index 0000000000..f795a1be35 --- /dev/null +++ b/src/simba/team_lead/mentor_performance/includes/nav_tab.html @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/src/simba/team_lead/mentor_performance/includes/review_performance_content.html b/src/simba/team_lead/mentor_performance/includes/review_performance_content.html new file mode 100644 index 0000000000..aa31f0f4c7 --- /dev/null +++ b/src/simba/team_lead/mentor_performance/includes/review_performance_content.html @@ -0,0 +1,265 @@ + + + \ No newline at end of file diff --git a/src/simba/team_lead/mentor_performance/index.html b/src/simba/team_lead/mentor_performance/index.html new file mode 100644 index 0000000000..b30aa239a5 --- /dev/null +++ b/src/simba/team_lead/mentor_performance/index.html @@ -0,0 +1,35 @@ +--- +tags: simba +role: "Team Lead" +view: "Mentor Performance" +date: 2024-08-20 +parent_page: Overview +current_page: Mentor Performance +tailwindv4: true +batch_limit: 4 +--- + +{% extends "src/simba/base.html" %} {% block title %} Assigned Mentors | Simba {% endblock title %} {% block content +%} + +
+
+ {% include './includes/header.html' %} + +
+ {% include './includes/nav_tab.html' %} + {% include './includes/filter_group.html' %} + +
+ {% include './includes/academic_performance_content.html' %} + + {% include './includes/review_performance_content.html' %} +
+ +
+ +
+
+ +{% endblock content %} \ No newline at end of file From f2bf8d0788c22ff61b7196736aceeb535f5f71a4 Mon Sep 17 00:00:00 2001 From: Dhinesh Date: Tue, 20 Jan 2026 11:26:23 +0530 Subject: [PATCH 2/2] feat: Enhance performance overview layout for team leads - Updated the performance overview HTML to improve the layout and design, including a new header section for "Top Performers." - Added a link to view full reports, enhancing navigation for team leads. - Improved the structure of the navigation tab for better usability and visual clarity. --- .../includes/performance_overview.html | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/src/simba/dashboard/team_lead/includes/performance_overview.html b/src/simba/dashboard/team_lead/includes/performance_overview.html index bc05fe9648..290ecf396c 100644 --- a/src/simba/dashboard/team_lead/includes/performance_overview.html +++ b/src/simba/dashboard/team_lead/includes/performance_overview.html @@ -1,8 +1,30 @@
- - + + +
+