Skip to content

Commit

Permalink
clean: removed exam hall listing and page
Browse files Browse the repository at this point in the history
  • Loading branch information
amjed-ali-k committed Oct 28, 2023
1 parent e36c564 commit b7af6fc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 283 deletions.
17 changes: 0 additions & 17 deletions src/app/api/secure/exam-seating/exams/all/route.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { sum, flat, group, sift } from "radash";
import { assignHallsCustom } from "@/lib/examTools/customHallAsiign";
import { AllocatedSeat, allocateSeats } from "@/lib/examTools/hallSort";
import { SeatObjectType } from "../../../new-class/_components/newClass";
import { SeatObjectType } from "../../new-class/_components/newClass";
import {
GenerateAttendanceSheet,
GenerateHallsAssignment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { ArrangedResult } from "./NewExamForm";
import React, { useMemo } from "react";
import { group, max } from "radash";
import { SeatType } from "../../../new-class/_components/newClass";
import { SeatType } from "../../new-class/_components/newClass";
import { AllocatedSeat } from "@/lib/examTools/hallSort";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
Expand Down
19 changes: 0 additions & 19 deletions src/app/dashboard/tools/exam-seating/exam/new/page.tsx

This file was deleted.

29 changes: 5 additions & 24 deletions src/app/dashboard/tools/exam-seating/exam/page.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
import React from "react";
import { Button } from "@/components/ui/button";
import { Plus } from "lucide-react";
import Link from "next/link";
import { ExamListTable } from "./_components/ExamListTable";
import NewExamForm from "./_components/NewExamForm";

async function page() {
return (
<div className="flex flex-col gap-8 py-8 md:gap-10 md:py-10">
<div className="flex flex-col md:py-10">
<div className="container">
<h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">
Add Exams
<h1 className="mb-4 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">
Generate Exam Seating Plan
</h1>
<p className=" max-w-[69ch] text-lg text-neutral-600 dark:text-white/50">
Here you can see the list of{" "}
<span className="font-semibold dark:text-neutral-200">
exams and seat plans
</span>{" "}
you created. You can create a new exam along with seat arrangement by
clicking Add new exam button.
</p>
</div>
<div className="container">
<div className="flex mb-3 justify-end">
<Link href="/dashboard/tools/exam-seating/exam/new">
<Button className="">
<Plus className="mr-2 h-4 w-4" />
Add new exam
</Button>
</Link>
</div>
<ExamListTable />
<NewExamForm />
</div>
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ export function NavBar() {
</ListItem>
<ListItem
href="/dashboard/tools/exam-seating/student-batches"
title="Student Batches"
title="Student batches"
>
Student directory and their batches
</ListItem>
<ListItem
href="/dashboard/tools/exam-seating/exam"
title="Add Exams"
title="Generate seating plan"
>
Create seating arrangements for each exams
Generate printable seating arrangements and files for exam
</ListItem>
</ul>
</NavigationMenuContent>
Expand Down

0 comments on commit b7af6fc

Please sign in to comment.