Skip to content

Commit c7c59d1

Browse files
committed
refactor: remove the old AI quiz generator page
1 parent 1f30ef0 commit c7c59d1

8 files changed

Lines changed: 7754 additions & 679 deletions

File tree

apps/api/src/quizzes/quizzes.controller.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ describe('QuizzesController', () => {
7676
expect(controller).toBeDefined();
7777
});
7878

79-
8079
describe('getMyQuizzes', () => {
8180
it('should return quizzes for the current instructor', async () => {
8281
const quizzes = [mockQuiz as Quiz];

apps/web/lint-results-final.json

Lines changed: 3591 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/lint-results.json

Lines changed: 3815 additions & 1 deletion
Large diffs are not rendered by default.

apps/web/src/App.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ const LessonViewerPage = lazy(
4141
const MyLearningPage = lazy(() => import('@/pages/courses/my-learning-page'));
4242
const DashboardPage = lazy(() => import('@/pages/dashboard/dashboard-page'));
4343
const HomePage = lazy(() => import('@/pages/home/home-page'));
44-
const QuizGeneratorPage = lazy(
45-
() => import('@/pages/instructor/quiz-generator-page'),
46-
);
4744
const PrivacyPage = lazy(() => import('@/pages/legal/privacy-page'));
4845
const TermsPage = lazy(() => import('@/pages/legal/terms-page'));
4946
const NotFoundPage = lazy(() => import('@/pages/not-found-page'));
@@ -203,14 +200,6 @@ function App() {
203200
/>
204201

205202
{/* Instructor Protected Routes */}
206-
<Route
207-
path="/instructor/quiz-generator"
208-
element={
209-
<ProtectedRoute allowedRoles={['instructor', 'admin']}>
210-
<QuizGeneratorPage />
211-
</ProtectedRoute>
212-
}
213-
/>
214203
<Route
215204
path="/instructor/courses"
216205
element={

apps/web/src/components/layout/header.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
Settings,
2626
LogOut,
2727
Shield,
28-
Wand2,
2928
Users,
3029
BarChart3,
3130
ChevronDown,
@@ -140,12 +139,6 @@ const instructorNavItems: NavItem[] = [
140139
href: '/instructor/courses',
141140
roles: ['instructor', 'admin'],
142141
},
143-
{
144-
icon: Wand2,
145-
label: 'AI Quiz Generator',
146-
href: '/instructor/quiz-generator',
147-
roles: ['instructor', 'admin'],
148-
},
149142
];
150143

151144
const adminNavItems: NavItem[] = [

0 commit comments

Comments
 (0)