feat: add CertificateForm and CertificateResult components for managing intern certificates

- Implemented CertificateForm for uploading certificate templates and displaying project details.
- Created CertificateResult to show generated certificates with pagination and search functionality.
- Added EligibleInternTable component to display eligible interns and their progress.
- Updated CertificateListPage to reflect changes in project listing styles.
- Enhanced MentorProjectCard with dynamic icon rendering.
- Introduced useProjectInternProgress hook for fetching intern progress data.
- Modified ProjectService to include task details in project responses.
- Updated project types to accommodate new task structures.
This commit is contained in:
Kemas M. Aryadary Rasyad
2026-06-28 22:22:03 +07:00
parent 37e21a1f39
commit 732684200f
17 changed files with 612 additions and 371 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ export const getProjectById = async (
): Promise<ProjectDetail> => {
const res = await api.get(`/project-api/get/${id}`);
const raw = res.data.data;
console.log("raw fields:", Object.keys(raw));
console.log("raw full:", raw);
return {
...raw,
members: raw.members.map((m: any) => ({