Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 63 additions & 62 deletions apps/examlense/AGENTS.md

Large diffs are not rendered by default.

119 changes: 61 additions & 58 deletions apps/examlense/CLAUDE.md

Large diffs are not rendered by default.

25 changes: 10 additions & 15 deletions apps/examlense/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ import { Toaster } from "@/components/ui/toaster";
import { TooltipProvider } from "@/components/ui/tooltip";
import { Navigate } from "react-router-dom";
import NotFound from "./pages/NotFound.tsx";
import Exams from "./pages/Exams.tsx";
import ExamEdit from "./pages/ExamEdit.tsx";
import GradeRoute from "./pages/GradeRoute.tsx";
import ExamResults from "./pages/ExamResults.tsx";
import AdminDashboard from "./pages/AdminDashboard.tsx";
import Auth from "./pages/Auth.tsx";
import ResetPassword from "./pages/ResetPassword.tsx";
import { RequireAuth } from "./components/RequireAuth";
import Exams from "./pages/exams/Exams.tsx";
import ExamEdit from "./pages/exam-edit/ExamEdit.tsx";
import GradeRoute from "./pages/exam-grading/GradeRoute.tsx";
import ExamResults from "./pages/exam-results/ExamResults.tsx";
import AdminDashboard from "./pages/admin/AdminDashboard.tsx";

const queryClient = new QueryClient();

Expand All @@ -26,13 +23,11 @@ const AppRoutes = () => {
<BrowserRouter basename={routerBasename}>
<Routes>
<Route path="/" element={<Navigate to="/exams" replace />} />
<Route path="/auth" element={<Auth />} />
<Route path="/reset-password" element={<ResetPassword />} />
<Route path="/exams" element={<RequireAuth><Exams /></RequireAuth>} />
<Route path="/exams/:id/edit" element={<RequireAuth><ExamEdit /></RequireAuth>} />
<Route path="/exams/:id/grade" element={<RequireAuth><GradeRoute /></RequireAuth>} />
<Route path="/exams/:id/results" element={<RequireAuth><ExamResults /></RequireAuth>} />
<Route path="/admin" element={<RequireAuth><AdminDashboard /></RequireAuth>} />
<Route path="/exams" element={<Exams />} />
<Route path="/exams/:id/edit" element={<ExamEdit />} />
<Route path="/exams/:id/grade" element={<GradeRoute />} />
<Route path="/exams/:id/results" element={<ExamResults />} />
<Route path="/admin" element={<AdminDashboard />} />
<Route path="/admin/feedback" element={<Navigate to="/admin" replace />} />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} />
Expand Down
23 changes: 0 additions & 23 deletions apps/examlense/frontend/src/components/HestiaMark.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/examlense/frontend/src/components/NavLink.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions apps/examlense/frontend/src/components/RequireAuth.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions apps/examlense/frontend/src/components/exam-edit/MetaChip.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions apps/examlense/frontend/src/components/landing/Footer.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions apps/examlense/frontend/src/components/landing/Hero.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions apps/examlense/frontend/src/components/landing/HowItWorks.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions apps/examlense/frontend/src/components/landing/Navbar.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions apps/examlense/frontend/src/components/landing/WhyThisMatters.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
import { solverModelMeta } from "@/lib/solver-model-meta";
import { cn } from "@/lib/utils/utils";
import { solverModelMeta } from "@/lib/exam/solver-model-meta";

interface Props {
modelId: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Moon, Sun } from "lucide-react";
import { useTheme } from "@/hooks/use-theme";
import { useTheme } from "@/hooks/ui/use-theme";

export const ThemeToggle = () => {
const { theme, toggle } = useTheme();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReactNode } from "react";
import { Link } from "react-router-dom";
import { ArrowLeft } from "lucide-react";
import { cn } from "@/lib/utils";
import { cn } from "@/lib/utils/utils";

interface Props {
/** Title slot — typically an InlineTitle or StaticTitle. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeToggle } from "@/components/ThemeToggle";
import { ThemeToggle } from "@/components/shared/ThemeToggle";
import { HelpDialog } from "./HelpDialog";

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
StepGuide,
EDIT_STEPS,
GRADING_STEPS,
} from "../IntroStepGuide";
} from "./IntroStepGuide";

interface Props {
variant: "edit" | "grading";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
SlidersHorizontal,
Sparkles,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { cn } from "@/lib/utils/utils";

export interface GuideStep {
title: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CSSProperties, ReactNode } from "react";
import { cn } from "@/lib/utils";
import { cn } from "@/lib/utils/utils";

export type BlockCardVariant = "primary" | "muted";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { HTMLAttributes, ReactNode } from "react";
import { ChevronDown, ChevronRight, GripVertical, AlertCircle } from "lucide-react";
import { cn } from "@/lib/utils";
import { cn } from "@/lib/utils/utils";

interface Props {
expanded: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import "katex/dist/katex.min.css";
import { cn } from "@/lib/utils";
import { cn } from "@/lib/utils/utils";

interface Props {
content: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useRef, useState } from "react";
import { useQueryClient } from "@tanstack/react-query";
import { ImagePlus, Trash2, Loader2 } from "lucide-react";
import { uploadFigure, patchFigure, deleteFigure } from "@/lib/api-client";
import { useFigureUrl } from "@/hooks/use-figure-url";
import { useSectionFigures, figuresKey } from "@/hooks/use-sections";
import type { SectionFigure } from "@/lib/exam-helpers";
import { useToast } from "@/hooks/use-toast";
import { uploadFigure, patchFigure, deleteFigure } from "@/lib/api/api-client";
import { useFigureUrl } from "@/hooks/data/use-figure-url";
import { useSectionFigures, figuresKey } from "@/hooks/data/use-sections";
import type { SectionFigure } from "@/lib/exam/exam-helpers";
import { useToast } from "@/hooks/ui/use-toast";

const MAX_BYTES = 5 * 1024 * 1024;
const MIME = ["image/png", "image/jpeg", "image/webp", "image/gif"];
Expand Down
Loading
Loading