Skip to content

Commit

Permalink
Moving Interview Questions Config to Own Page (#187)
Browse files Browse the repository at this point in the history
* moving question config to new page

* fixing weird scrolling

* scrolling to question on question add

* Adding delete confirmation dialog

* removing old dialog

* moving dnd package in client package json
  • Loading branch information
niclasheun authored Feb 17, 2025
1 parent 5d9d500 commit 93877bb
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 211 deletions.
1 change: 0 additions & 1 deletion clients/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"dependencies": {
"@dagrejs/dagre": "^1.1.4",
"@hello-pangea/dnd": "^17.0.0",
"@xyflow/react": "^12.3.6",
"date-fns-tz": "^3.2.0",
"external-remotes-plugin": "^1.0.0",
Expand Down
10 changes: 10 additions & 0 deletions clients/interview_component/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Role } from '@tumaet/prompt-shared-state'
import { InterviewDataShell } from '../src/interview/pages/InterviewDataShell'
import { ProfileDetailPage } from '../src/interview/pages/ProfileDetail/ProfileDetailPage'
import { MailingPage } from '../src/interview/pages/Mailing/MailingPage'
import { QuestionConfiguration } from '../src/interview/pages/QuestionConfiguration/QuestionConfiguration'

const interviewRoutes: ExtendedRouteObject[] = [
{
Expand All @@ -24,6 +25,15 @@ const interviewRoutes: ExtendedRouteObject[] = [
),
requiredPermissions: [Role.PROMPT_ADMIN, Role.COURSE_LECTURER],
},
{
path: '/question-configuration',
element: (
<InterviewDataShell>
<QuestionConfiguration />
</InterviewDataShell>
),
requiredPermissions: [Role.PROMPT_ADMIN, Role.COURSE_LECTURER],
},
{
path: '/mailing',
element: (
Expand Down
5 changes: 5 additions & 0 deletions clients/interview_component/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ const interviewSidebarItems: SidebarMenuItemProps = {
goToPath: '',
requiredPermissions: [Role.PROMPT_ADMIN, Role.COURSE_LECTURER],
subitems: [
{
title: 'Question Config',
goToPath: '/question-configuration',
requiredPermissions: [Role.PROMPT_ADMIN, Role.COURSE_LECTURER],
},
{
title: 'Mailing',
goToPath: '/mailing',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useLocation, useNavigate } from 'react-router-dom'
import { useScreenSize } from '@/hooks/useScreenSize'
import { useState } from 'react'
import { SortDropdownMenu } from '../../components/SortDropdownMenu'
import { InterviewQuestionsDialog } from '../../components/InterviewQuestionsDialog'
import { InterviewTimesDialog } from '../../components/InterviewTimesDialog'
import { useSorting } from '../../hooks/useSorting'

Expand All @@ -25,7 +24,6 @@ export const OverviewPage = (): JSX.Element => {
<div className='flex space-x-2'>
<SortDropdownMenu sortBy={sortBy} setSortBy={setSortBy} />
<InterviewTimesDialog />
<InterviewQuestionsDialog />
</div>
</div>
<div
Expand Down
Loading

0 comments on commit 93877bb

Please sign in to comment.