Merge branch 'main' of https://github.com/classroomio/classroomio into feat/release-v2

This commit is contained in:
Rotimi Best
2025-12-24 04:18:39 +00:00
193 changed files with 10584 additions and 6399 deletions
@@ -30,17 +30,18 @@
isLoading = true;
const accessToken = await getAccessToken();
const response = await fetch('/api/analytics/course', {
method: 'POST',
const response = await fetch(`/api/courses/analytics?courseId=${courseId}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: accessToken
},
body: JSON.stringify({ courseId })
}
});
if (response.ok) {
courseAnalytics = (await response.json()) as CourseAnalytics;
const { data } = await response.json();
courseAnalytics = data as CourseAnalytics;
} else {
console.error('Failed to fetch course analytics:', response);
snackbar.error('Failed to load analytics data');
@@ -133,4 +134,3 @@
className="h-screen"
/>
{/if}
@@ -1,10 +1,4 @@
<script lang="ts">
interface Props {
courseId: string;
}
let { courseId }: Props = $props();
import { page } from '$app/state';
import { goto } from '$app/navigation';
import { Input } from '@cio/ui/base/input';