diff --git a/package-lock.json b/package-lock.json index 4dd2d83..778e85f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -718,9 +718,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -738,9 +735,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -758,9 +752,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -778,9 +769,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -798,9 +786,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -818,9 +803,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1672,7 +1654,7 @@ "version": "19.2.14", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "csstype": "^3.2.2" @@ -2491,7 +2473,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/debug": { @@ -3703,9 +3685,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3727,9 +3706,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3751,9 +3727,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3775,9 +3748,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/public/badges.png b/public/badges.png new file mode 100644 index 0000000..eb88ecf Binary files /dev/null and b/public/badges.png differ diff --git a/src/api/session.ts b/src/api/session.ts index d046113..a208538 100644 --- a/src/api/session.ts +++ b/src/api/session.ts @@ -797,6 +797,7 @@ export async function fetchClassSections(params?: { search?: string schoolYear?: string | null semester?: string | null + withStudents?: boolean page?: number perPage?: number }): Promise { @@ -804,6 +805,7 @@ export async function fetchClassSections(params?: { if (params?.search) query.set('search', params.search) if (params?.schoolYear) query.set('school_year', params.schoolYear) if (params?.semester) query.set('semester', params.semester) + if (params?.withStudents) query.set('with_students', '1') if (params?.page) query.set('page', String(params.page)) if (params?.perPage) query.set('per_page', String(params.perPage)) const qs = query.size > 0 ? `?${query.toString()}` : '' diff --git a/src/pages/classProgress/ClassProgressListPage.tsx b/src/pages/classProgress/ClassProgressListPage.tsx index bdc2b91..ea8e8df 100644 --- a/src/pages/classProgress/ClassProgressListPage.tsx +++ b/src/pages/classProgress/ClassProgressListPage.tsx @@ -34,7 +34,7 @@ export function ClassProgressListPage() { try { const [meta, sections, groups] = await Promise.all([ fetchClassProgressMeta(), - fetchClassSections({ perPage: 200 }), + fetchClassSections({ perPage: 200, withStudents: true }), fetchClassProgressGroups({ classSectionId: filters.classSectionId ? Number(filters.classSectionId) : null, status: filters.status || null,