diff --git a/globalSettings.yml b/globalSettings.yml index 1553301..99e25c9 100644 --- a/globalSettings.yml +++ b/globalSettings.yml @@ -1,29 +1,23 @@ courses: - - path: ./4850_AdvancedFE/2025-fall-alex/modules/ - name: Adv Frontend - path: ./1420/2025-fall-alex/modules/ name: "1420" - - path: ./1810/2025-fall-alex/modules/ - name: Web Intro - - path: ./1430/2025-fall-alex/modules/ - name: UX - path: ./1425/2025-fall-alex/modules/ name: "1425" - path: ./4850_AdvancedFE/2026-spring-alex/modules - name: Adv Frontend Spring + name: Adv Frontend - path: ./1400/2026_spring_alex/modules name: "1400" - path: ./1405/2026_spring_alex name: "1405" - - path: ./1810/2026-spring-alex/modules - name: Web Intro Spring - path: ./3840_Telemetry/2026_spring_alex - name: Telem and Ops New + name: Telem and Ops - path: ./4620_Distributed/2026-spring-alex/modules name: Distributed - path: ./4620_Distributed/2025Spring/modules/ name: distributed-old - path: ./3840_Telemetry/2025_spring_alex/modules/ name: telemetry-old - - path: ./3840_Telemetry/2024Spring_alex/modules/ - name: telemetry-old-old + - path: ./4850_AdvancedFE/2025-fall-alex/modules/ + name: adv-frontend-old + - path: ./1810/2026-spring-alex/modules/ + name: Web Intro diff --git a/src/app/course/[courseName]/CollapsableSidebar.tsx b/src/app/course/[courseName]/CollapsableSidebar.tsx index b904747..67572e1 100644 --- a/src/app/course/[courseName]/CollapsableSidebar.tsx +++ b/src/app/course/[courseName]/CollapsableSidebar.tsx @@ -10,12 +10,15 @@ const collapseThreshold = 1400; export default function CollapsableSidebar() { const [windowCollapseRecommended, setWindowCollapseRecommended] = - useState(window.innerWidth <= collapseThreshold); + useState(false); const [userCollapsed, setUserCollapsed] = useState< "unset" | "collapsed" | "uncollapsed" >("unset"); useEffect(() => { + // Initialize on mount + setWindowCollapseRecommended(window.innerWidth <= collapseThreshold); + function handleResize() { if (window.innerWidth <= collapseThreshold) { setWindowCollapseRecommended(true); diff --git a/src/app/course/[courseName]/CourseNavigation.tsx b/src/app/course/[courseName]/CourseNavigation.tsx index 443224c..cedd7ab 100644 --- a/src/app/course/[courseName]/CourseNavigation.tsx +++ b/src/app/course/[courseName]/CourseNavigation.tsx @@ -1,4 +1,5 @@ "use client"; +import { BreadCrumbs } from "@/components/BreadCrumbs"; import { Spinner } from "@/components/Spinner"; import { useCanvasAssignmentsQuery, @@ -19,7 +20,6 @@ import { } from "@/features/canvas/hooks/canvasQuizHooks"; import { useLocalCourseSettingsQuery } from "@/features/local/course/localCoursesHooks"; import { useQueryClient } from "@tanstack/react-query"; -import Link from "next/link"; export function CourseNavigation() { const { data: settings } = useLocalCourseSettingsQuery(); @@ -33,9 +33,8 @@ export function CourseNavigation() { return (
} - targetRef={linkRef} - visible={tooltipVisible} + targetRef={targetRef} + visible={visible} /> )} @@ -81,19 +80,19 @@ export function DayTitle({ day, dayAsDate }: { day: string; dayAsDate: Date }) { xmlns="http://www.w3.org/2000/svg" onClick={openModal} > -