Devlog 4: Added ability to add classes as well as better UI layout.
Here is a snippet of the edited portion!
const [courses, setCourses] = useState<Course[]>(() => {
if (typeof window !== "undefined") {
const stored = localStorage.getItem("gc_courses");
if (stored) return JSON.parse(stored);
}
// Default fallback starter course
return [{
id: "default-course",
title: "Introduction to Calculus",
gradingMode: "weighted",
desiredGrade: 90,
weightedCategories: [
{ id: "1", name: "Exams", weight: 50, currentScore: 85, isExpanded: false, items: [] },
{ id: "2", name: "Homework", weight: 30, currentScore: 95, isExpanded: false, items: [] },
{ id: "3", name: "Final Exam", weight: 20, currentScore: null, isExpanded: false, items: [] }
],
pointsAssignments: [],
credits: 4,
courseLevel: "Regular"
}];
});```
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.