# Interviewer and Project Manager Workflow Implementation
## Current State Analysis
This plan outlines the steps required to complete Task 1 (Building PM and Interviewer Dashboards & Interview Views) and Task 2 (Finalizing the PDF Document Generation & Download workflow).
## Task 1: Interviewer and Project Manager Platforms
-**Issues**: Guards mostly commented out, dark-only theme, no quiz editing, no assignment system, no AI generation, no HR role
Currently, the `ProjectManager` and `Interviewer` folders have shell components (e.g., `dashboard`, `individual-interview`, `group-interview`). We need to populate these and wire up the navigation.
## Changes Required
### Proposed Changes
### Phase 1: Backend - Models & Roles
1.**User Model** - Add `hr` role to enum: `['admin', 'hr', 'candidate']` (rename student → candidate)
4.**Angular Material** integration for polished UI components
We will mirror the look of the admin/hr dashboard but simplify it for these roles. They do not need to create quizzes or manage users. The dashboard will strictly show their pending evaluation metrics and a quick action link to navigate to their interviews.
For both PM and Interviewer roles, we will copy the functionality from the Admin/HR `individual-interview` and `group-interview` modules. However, we will restrict administrative capabilities:
2.**Quiz assignment UI** - Multi-select users/groups for assignment
-**Remove** the "Final Decision" accept/reject section since only Admin/HR should finalize the overall hiring decision.
5.**Role-based navigation** - Different sidebars for Admin/HR/Candidate
-**Keep** the interview list (which correctly filters to only the interviews they are assigned to).
6.**Guard updates** - Enable all guards with HR role support
-**Keep** the "Evaluation" form inside the interview detail modal so they can submit their own comments and recommendations.
### Phase 5: Polish
## Task 2: Evaluation Summary Document & Download
1. Professional LeetCode-like UI with clean white theme
2. Smooth transitions and micro-animations
Once the PM and Interviewer can successfully submit their evaluations, we will solidify the PDF download button logic.
3. Responsive design
4. Google Material icons instead of emojis
Currently, we added a "Download PDF" button in the HR/Admin individual interview modal. Based on your request, we will ensure that:
1. The **Download Evaluation Summary** button is prominently visible in the Interview Details modal across all roles (Admin, HR, PM, Interviewer).
2. The button will generate the structured PDF form (matching Images 3 & 4), containing pre-filled sections for:
- Interviewer Comments, Recommendation, Signature, and Date
- PM Comments, Recommendation, Signature, and Date
- HR Comments, Recommendation, Signature, and Date
3. Data from the database will seamlessly populate these sections. If a specific crew member hasn't evaluated yet, their section will print blank so it can be physically filled if desired, just like we implemented for HR in the previous session.
## User Review Required
> [!IMPORTANT]
> - Are you okay with removing the "Create New Interview" and "Finalize Decision" buttons from the PM and Interviewer views? (Usually, only Admins or HR schedule the interviews and make the final hire/reject decision).
> - Should the "Download Evaluation Summary" button only be enabled/visible after **everyone** (HR, PM, Interviewers) has completed their evaluations, or should they be able to download a partially filled document at any time? Currently, the logic restricts downloading until everyone has finished.
Please approve this plan so I can start executing Task 1 immediately!