@burdenoff/microfe-support 2026.1109.1 → 2026.1115.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +62 -0
- package/dist/generated/global-operations.js +104 -69
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +17 -15
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportUserRoot.js +32 -28
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.d.ts +1 -0
- package/dist/support/SupportUserRoutes.js +31 -28
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/PageLayout.js +35 -35
- package/dist/support/components/RouteHelpers.d.ts +2 -1
- package/dist/support/components/RouteHelpers.js +3 -3
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/help/RelatedArticles.d.ts +12 -0
- package/dist/support/components/help/RelatedArticles.js +55 -0
- package/dist/support/components/help/RelatedArticles.js.map +1 -0
- package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
- package/dist/support/components/help/RequestDetailHeader.js +129 -0
- package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
- package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
- package/dist/support/components/help/SatisfactionReview.js +103 -0
- package/dist/support/components/help/SatisfactionReview.js.map +1 -0
- package/dist/support/components/help/StarRating.d.ts +16 -0
- package/dist/support/components/help/StarRating.js +63 -0
- package/dist/support/components/help/StarRating.js.map +1 -0
- package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
- package/dist/support/components/help/StatusGroupPill.js +19 -0
- package/dist/support/components/help/StatusGroupPill.js.map +1 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +7 -7
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/ui.js +1 -1
- package/dist/support/constants.d.ts +23 -0
- package/dist/support/constants.js +2 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
- package/dist/support/hooks/useDebouncedValue.js +12 -0
- package/dist/support/hooks/useDebouncedValue.js.map +1 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useSupportVariant.d.ts +11 -0
- package/dist/support/hooks/useSupportVariant.js +11 -0
- package/dist/support/hooks/useSupportVariant.js.map +1 -0
- package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
- package/dist/support/hooks/useTicketCreatedToast.js +25 -0
- package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
- package/dist/support/hooks/useTicketLabels.d.ts +22 -0
- package/dist/support/hooks/useTicketLabels.js +40 -0
- package/dist/support/hooks/useTicketLabels.js.map +1 -0
- package/dist/support/index.d.ts +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
- package/dist/support/pages/ArticleDetailUserPage.js +133 -69
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/AskForHelpPage.d.ts +11 -0
- package/dist/support/pages/AskForHelpPage.js +396 -0
- package/dist/support/pages/AskForHelpPage.js.map +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +73 -73
- package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +4 -0
- package/dist/support/pages/CreateTicketPage.js +121 -117
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/HelpHubPage.d.ts +9 -0
- package/dist/support/pages/HelpHubPage.js +272 -0
- package/dist/support/pages/HelpHubPage.js.map +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +388 -388
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +35 -35
- package/dist/support/pages/JobPostingDetailPage.js +236 -236
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/MyRequestsPage.d.ts +16 -0
- package/dist/support/pages/MyRequestsPage.js +389 -0
- package/dist/support/pages/MyRequestsPage.js.map +1 -0
- package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
- package/dist/support/pages/TicketDetailUserPage.js +285 -192
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +7 -0
- package/dist/support/pages/TicketListPage.js +150 -153
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +8 -7
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.d.ts +5 -0
- package/dist/support/store/supportStore.js +1 -0
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.d.ts +279 -0
- package/dist/support/translations/en.js +270 -1
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/utils/cameFrom.d.ts +16 -0
- package/dist/support/utils/cameFrom.js +22 -0
- package/dist/support/utils/cameFrom.js.map +1 -0
- package/dist/support/utils/dates.d.ts +15 -0
- package/dist/support/utils/dates.js +35 -0
- package/dist/support/utils/dates.js.map +1 -0
- package/dist/support/utils/reopen.d.ts +27 -0
- package/dist/support/utils/reopen.js +27 -0
- package/dist/support/utils/reopen.js.map +1 -0
- package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
- package/dist/support/utils/requestTechnicalDetails.js +38 -0
- package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
- package/dist/support/utils/ticketFilters.d.ts +16 -0
- package/dist/support/utils/ticketFilters.js +24 -12
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
- package/dist/support/utils/ticketStatusGroups.js +39 -0
- package/dist/support/utils/ticketStatusGroups.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobPostingDetailPage.js","names":["DOMPurify","_Fragment","purify_default","postingStatusConfig","JobPostingStatus","employmentTypeLabels","EmploymentType","roundTypeLabels","InterviewRoundType","applicationStatusColors","applicationStatusLabels","formatDate","dateString","linesToArray","text","line","arrayToLines","items","useNotification","notification","setNotification","useState","timerRef","useRef","useEffect","JobPostingDetailPage","useParams","navigate","useNavigate","activeTab","setActiveTab","isPostingModalOpen","setIsPostingModalOpen","roundModalOpen","setRoundModalOpen","editingRound","setEditingRound","roundForm","setRoundForm","assignmentModalOpen","setAssignmentModalOpen","editingAssignment","setEditingAssignment","assignmentForm","setAssignmentForm","pendingDeleteRoundId","setPendingDeleteRoundId","pendingDeleteAssignmentId","setPendingDeleteAssignmentId","useGetJobPostingQuery","id","posting","data","updatePosting","updatePostingLoading","useUpdateJobPostingMutation","createRound","createRoundLoading","useCreateInterviewRoundConfigMutation","updateRound","updateRoundLoading","useUpdateInterviewRoundConfigMutation","deleteRound","deleteRoundLoading","useDeleteInterviewRoundConfigMutation","createAssignment","createAssignmentLoading","useCreateJobAssignmentMutation","updateAssignment","updateAssignmentLoading","useUpdateJobAssignmentMutation","deleteAssignment","deleteAssignmentLoading","useDeleteJobAssignmentMutation","postingForm","setPostingForm","loading","PageLayout","Briefcase","LoadingState","error","EmptyState","AlertCircle","Button","ArrowLeft","statusConfig","sortedRounds","a","b","handlePostingSubmit","parsedOpenings","show","openCreateRound","openEditRound","round","closeRoundModal","handleRoundSubmit","confirmDeleteRound","roundId","openCreateAssignment","openEditAssignment","assignment","closeAssignmentModal","Edit2","cn","CheckCircle","Badge","Building2","MapPin","Clock","Layers","Tabs","TabsList","TabsTrigger","Users","FileText","TabsContent","Plus","index","Check","Loader2","Trash2","application","ResponsiveDialog","ResponsiveDialogContent","ResponsiveDialogHeader","ResponsiveDialogTitle","Fragment","X","type","RichTextEditor","html","AlertDialog","open","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","assignmentId"],"sources":["../../../src/support/pages/JobPostingDetailPage.tsx"],"sourcesContent":["import { useState, useEffect, useRef } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport DOMPurify from 'dompurify';\nimport {\n ArrowLeft,\n Briefcase,\n Building2,\n MapPin,\n Clock,\n Plus,\n Edit2,\n Trash2,\n Loader2,\n AlertCircle,\n CheckCircle,\n Users,\n FileText,\n Layers,\n Check,\n X,\n} from 'lucide-react';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n} from '@burdenoff/fe-libs/ui';\nimport {\n useGetJobPostingQuery,\n type GetJobPostingQuery,\n useUpdateJobPostingMutation,\n useCreateInterviewRoundConfigMutation,\n useUpdateInterviewRoundConfigMutation,\n useDeleteInterviewRoundConfigMutation,\n useCreateJobAssignmentMutation,\n useUpdateJobAssignmentMutation,\n useDeleteJobAssignmentMutation,\n} from '../../generated/global-operations';\nimport { JobPostingStatus, InterviewRoundType, EmploymentType } from '../../generated/global-types';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { Button, Badge, Tabs, TabsList, TabsTrigger, TabsContent } from '../components/ui';\nimport { RichTextEditor } from '../components/careers/RichTextEditor';\nimport { cn } from '../utils/cn';\n\ntype JobPosting = NonNullable<GetJobPostingQuery['jobPosting']>;\ntype RoundConfig = JobPosting['rounds'][number];\ntype Assignment = JobPosting['assignments'][number];\ntype Application = JobPosting['applications'][number];\n\nconst postingStatusConfig: Record<\n string,\n { label: string; variant: 'default' | 'secondary' | 'success' | 'warning' | 'destructive' }\n> = {\n [JobPostingStatus.Draft]: { label: 'Draft', variant: 'secondary' },\n [JobPostingStatus.Open]: { label: 'Open', variant: 'success' },\n [JobPostingStatus.Closed]: { label: 'Closed', variant: 'warning' },\n [JobPostingStatus.Archived]: { label: 'Archived', variant: 'destructive' },\n};\n\nconst employmentTypeLabels: Record<string, string> = {\n [EmploymentType.FullTime]: 'Full-time',\n [EmploymentType.PartTime]: 'Part-time',\n [EmploymentType.Contract]: 'Contract',\n [EmploymentType.Internship]: 'Internship',\n};\n\nconst roundTypeLabels: Record<string, string> = {\n [InterviewRoundType.PhoneScreen]: 'Phone Screen',\n [InterviewRoundType.Technical]: 'Technical',\n [InterviewRoundType.CultureFit]: 'Culture Fit',\n [InterviewRoundType.Hr]: 'HR',\n [InterviewRoundType.TakeHome]: 'Take-home',\n [InterviewRoundType.Final]: 'Final',\n};\n\nconst applicationStatusColors: Record<string, string> = {\n NEW: 'bg-status-info-bg-subtle text-status-info-text',\n SCREENING: 'bg-status-warning-bg-subtle text-status-warning-text',\n SHORTLISTED: 'bg-accent-purple-subtle text-accent-purple',\n INTERVIEW: 'bg-accent-blue-subtle text-accent-blue',\n HIRED: 'bg-status-success-bg-subtle text-status-success-text',\n REJECTED: 'bg-status-error-bg-subtle text-status-error-text',\n ARCHIVED: 'bg-bg-sunken text-text-secondary',\n};\n\nconst applicationStatusLabels: Record<string, string> = {\n NEW: 'New',\n SCREENING: 'Screening',\n SHORTLISTED: 'Shortlisted',\n INTERVIEW: 'Interview',\n HIRED: 'Hired',\n REJECTED: 'Rejected',\n ARCHIVED: 'Archived',\n};\n\nfunction formatDate(dateString: string): string {\n return new Date(dateString).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n });\n}\n\n// List fields are edited one-per-line in a textarea and stored as string arrays.\nfunction linesToArray(text: string): string[] {\n return text\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n}\n\nfunction arrayToLines(items?: string[] | null): string {\n return (items ?? []).join('\\n');\n}\n\nfunction useNotification() {\n const [notification, setNotification] = useState<{\n type: 'success' | 'error';\n message: string;\n } | null>(null);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n return () => {\n if (timerRef.current) clearTimeout(timerRef.current);\n };\n }, []);\n\n const show = (type: 'success' | 'error', message: string) => {\n setNotification({ type, message });\n if (timerRef.current) clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => setNotification(null), 3000);\n };\n\n return { notification, show };\n}\n\nexport function JobPostingDetailPage() {\n const { id } = useParams<{ id: string }>();\n const navigate = useNavigate();\n const { notification, show } = useNotification();\n\n const [activeTab, setActiveTab] = useState('rounds');\n const [isPostingModalOpen, setIsPostingModalOpen] = useState(false);\n\n const [roundModalOpen, setRoundModalOpen] = useState(false);\n const [editingRound, setEditingRound] = useState<RoundConfig | null>(null);\n const [roundForm, setRoundForm] = useState({\n name: '',\n roundType: InterviewRoundType.Technical,\n description: '',\n isAssignmentRound: false,\n isRequired: true,\n });\n\n const [assignmentModalOpen, setAssignmentModalOpen] = useState(false);\n const [editingAssignment, setEditingAssignment] = useState<Assignment | null>(null);\n const [assignmentForm, setAssignmentForm] = useState({\n title: '',\n description: '',\n problemStatement: '',\n difficulty: '',\n isActive: true,\n ownerEmail: '',\n });\n\n const [pendingDeleteRoundId, setPendingDeleteRoundId] = useState<string | null>(null);\n const [pendingDeleteAssignmentId, setPendingDeleteAssignmentId] = useState<string | null>(null);\n\n const { data, loading, error } = useGetJobPostingQuery({\n variables: { id: id! },\n skip: !id,\n });\n\n const posting = data?.jobPosting;\n\n const [updatePosting, { loading: updatePostingLoading }] = useUpdateJobPostingMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n const [createRound, { loading: createRoundLoading }] = useCreateInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [updateRound, { loading: updateRoundLoading }] = useUpdateInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [deleteRound, { loading: deleteRoundLoading }] = useDeleteInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n const [createAssignment, { loading: createAssignmentLoading }] = useCreateJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [updateAssignment, { loading: updateAssignmentLoading }] = useUpdateJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [deleteAssignment, { loading: deleteAssignmentLoading }] = useDeleteJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n // Posting edit form state\n const [postingForm, setPostingForm] = useState({\n title: '',\n department: '',\n location: '',\n employmentType: '' as EmploymentType | '',\n description: '',\n productId: '',\n status: JobPostingStatus.Draft,\n slug: '',\n openings: '',\n overview: '',\n responsibilities: '',\n learnings: '',\n qualifications: '',\n });\n\n useEffect(() => {\n if (posting) {\n setPostingForm({\n title: posting.title,\n department: posting.department ?? '',\n location: posting.location ?? '',\n employmentType: posting.employmentType ?? '',\n description: posting.description ?? '',\n productId: posting.productId ?? '',\n status: posting.status,\n slug: posting.slug ?? '',\n openings: posting.openings != null ? String(posting.openings) : '',\n overview: posting.overview ?? '',\n responsibilities: arrayToLines(posting.responsibilities),\n learnings: arrayToLines(posting.learnings),\n qualifications: arrayToLines(posting.qualifications),\n });\n }\n }, [posting]);\n\n if (loading) {\n return (\n <PageLayout\n title=\"Job Posting\"\n subtitle=\"Loading posting details…\"\n icon={<Briefcase size={24} />}\n >\n <LoadingState message=\"Loading job posting…\" />\n </PageLayout>\n );\n }\n\n if (error || !posting) {\n return (\n <PageLayout title=\"Job Posting\" icon={<Briefcase size={24} />}>\n <EmptyState\n icon={<AlertCircle size={48} />}\n title=\"Posting not found\"\n description={\n error?.message || \"This job posting may have been deleted or you don't have access.\"\n }\n action={\n <Button onClick={() => navigate('/support/applications/postings')}>\n <ArrowLeft size={16} />\n Back to Postings\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n const statusConfig = postingStatusConfig[posting.status];\n const sortedRounds = [...posting.rounds].sort((a, b) => a.roundNumber - b.roundNumber);\n\n const handlePostingSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !postingForm.title.trim()) return;\n const parsedOpenings = postingForm.openings.trim()\n ? parseInt(postingForm.openings.trim(), 10)\n : undefined;\n try {\n await updatePosting({\n variables: {\n id,\n input: {\n title: postingForm.title,\n department: postingForm.department || undefined,\n location: postingForm.location || undefined,\n employmentType: postingForm.employmentType || undefined,\n description: postingForm.description || undefined,\n productId: postingForm.productId || undefined,\n status: postingForm.status,\n slug: postingForm.slug.trim() || undefined,\n openings: parsedOpenings && !Number.isNaN(parsedOpenings) ? parsedOpenings : undefined,\n overview: postingForm.overview.trim() || undefined,\n responsibilities: linesToArray(postingForm.responsibilities),\n learnings: linesToArray(postingForm.learnings),\n qualifications: linesToArray(postingForm.qualifications),\n },\n },\n });\n show('success', 'Job posting updated.');\n setIsPostingModalOpen(false);\n } catch {\n show('error', 'Failed to update job posting.');\n }\n };\n\n const openCreateRound = () => {\n setEditingRound(null);\n setRoundForm({\n name: '',\n roundType: InterviewRoundType.Technical,\n description: '',\n isAssignmentRound: false,\n isRequired: true,\n });\n setRoundModalOpen(true);\n };\n\n const openEditRound = (round: RoundConfig) => {\n setEditingRound(round);\n setRoundForm({\n name: round.name,\n roundType: round.roundType,\n description: round.description ?? '',\n isAssignmentRound: round.isAssignmentRound,\n isRequired: round.isRequired,\n });\n setRoundModalOpen(true);\n };\n\n const closeRoundModal = () => {\n setRoundModalOpen(false);\n setEditingRound(null);\n };\n\n const handleRoundSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !roundForm.name.trim()) return;\n try {\n if (editingRound) {\n await updateRound({\n variables: {\n id: editingRound.id,\n input: {\n name: roundForm.name,\n roundType: roundForm.roundType,\n description: roundForm.description || undefined,\n isAssignmentRound: roundForm.isAssignmentRound,\n isRequired: roundForm.isRequired,\n },\n },\n });\n show('success', 'Round config updated.');\n } else {\n await createRound({\n variables: {\n input: {\n jobPostingId: id,\n name: roundForm.name,\n roundType: roundForm.roundType,\n description: roundForm.description || undefined,\n roundNumber: sortedRounds.length + 1,\n isAssignmentRound: roundForm.isAssignmentRound,\n isRequired: roundForm.isRequired,\n },\n },\n });\n show('success', 'Round config created.');\n }\n closeRoundModal();\n } catch {\n show('error', `Failed to ${editingRound ? 'update' : 'create'} round config.`);\n }\n };\n\n const confirmDeleteRound = async () => {\n const roundId = pendingDeleteRoundId;\n if (!roundId) return;\n setPendingDeleteRoundId(null);\n try {\n await deleteRound({ variables: { id: roundId } });\n show('success', 'Round config deleted.');\n } catch {\n show('error', 'Failed to delete round config.');\n }\n };\n\n const openCreateAssignment = () => {\n setEditingAssignment(null);\n setAssignmentForm({\n title: '',\n description: '',\n problemStatement: '',\n difficulty: '',\n isActive: true,\n ownerEmail: '',\n });\n setAssignmentModalOpen(true);\n };\n\n const openEditAssignment = (assignment: Assignment) => {\n setEditingAssignment(assignment);\n setAssignmentForm({\n title: assignment.title,\n description: assignment.description,\n problemStatement: assignment.problemStatement ?? '',\n difficulty: assignment.difficulty ?? '',\n isActive: assignment.isActive,\n ownerEmail: assignment.ownerEmail ?? '',\n });\n setAssignmentModalOpen(true);\n };\n\n const closeAssignmentModal = () => {\n setAssignmentModalOpen(false);\n setEditingAssignment(null);\n };\n\n const handleAssignmentSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !assignmentForm.title.trim() || !assignmentForm.description.trim()) return;\n try {\n if (editingAssignment) {\n await updateAssignment({\n variables: {\n id: editingAssignment.id,\n input: {\n title: assignmentForm.title,\n description: assignmentForm.description,\n problemStatement: assignmentForm.problemStatement || undefined,\n difficulty: assignmentForm.difficulty || undefined,\n isActive: assignmentForm.isActive,\n ownerEmail: assignmentForm.ownerEmail.trim(),\n },\n },\n });\n show('success', 'Assignment updated.');\n } else {\n await createAssignment({\n variables: {\n input: {\n jobPostingId: id,\n title: assignmentForm.title,\n description: assignmentForm.description,\n problemStatement: assignmentForm.problemStatement || undefined,\n difficulty: assignmentForm.difficulty || undefined,\n isActive: assignmentForm.isActive,\n ownerEmail: assignmentForm.ownerEmail.trim() || undefined,\n },\n },\n });\n show('success', 'Assignment created.');\n }\n closeAssignmentModal();\n } catch {\n show('error', `Failed to ${editingAssignment ? 'update' : 'create'} assignment.`);\n }\n };\n\n const confirmDeleteAssignment = async () => {\n const assignmentId = pendingDeleteAssignmentId;\n if (!assignmentId) return;\n setPendingDeleteAssignmentId(null);\n try {\n await deleteAssignment({ variables: { id: assignmentId } });\n show('success', 'Assignment deleted.');\n } catch {\n show('error', 'Failed to delete assignment.');\n }\n };\n\n return (\n <PageLayout\n title={posting.title}\n subtitle=\"Manage interview rounds, take-home assignments and applications for this posting.\"\n icon={<Briefcase size={24} />}\n headerActions={\n <div className=\"flex items-center gap-2\">\n <Button variant=\"outline\" onClick={() => navigate('/support/applications/postings')}>\n <ArrowLeft size={16} />\n Back\n </Button>\n <Button onClick={() => setIsPostingModalOpen(true)}>\n <Edit2 size={16} />\n Edit Posting\n </Button>\n </div>\n }\n >\n {/* Notification */}\n {notification && (\n <div\n className={cn(\n 'fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200',\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-subtle'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-subtle'\n )}\n >\n {notification.type === 'success' ? (\n <CheckCircle size={20} className=\"text-status-success-text\" />\n ) : (\n <AlertCircle size={20} className=\"text-status-error-text\" />\n )}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n )}\n\n {/* Header card */}\n <div className=\"rounded-xl border border-border-seam bg-bg-surface p-6 shadow-[var(--shadow-pop)]\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n <div>\n <div className=\"flex items-center gap-3 mb-2 flex-wrap\">\n <h1 className=\"text-xl font-bold text-text-primary\">{posting.title}</h1>\n <Badge variant={statusConfig.variant}>{statusConfig.label}</Badge>\n </div>\n <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary\">\n {posting.department && (\n <span className=\"flex items-center gap-1.5\">\n <Building2 size={14} />\n {posting.department}\n </span>\n )}\n {posting.location && (\n <span className=\"flex items-center gap-1.5\">\n <MapPin size={14} />\n {posting.location}\n </span>\n )}\n {posting.employmentType && (\n <span className=\"flex items-center gap-1.5\">\n <Clock size={14} />\n {employmentTypeLabels[posting.employmentType]}\n </span>\n )}\n {posting.productId && (\n <span className=\"flex items-center gap-1.5\">\n <Layers size={14} />\n {posting.productId}\n </span>\n )}\n </div>\n </div>\n </div>\n {posting.description && (\n <p className=\"mt-4 text-sm text-text-primary leading-relaxed whitespace-pre-wrap\">\n {posting.description}\n </p>\n )}\n </div>\n\n {/* Tabs */}\n <Tabs value={activeTab} onValueChange={setActiveTab}>\n <TabsList className=\"mb-6\">\n <TabsTrigger value=\"rounds\" className=\"flex items-center gap-1.5\">\n <Users size={14} />\n Interview Rounds\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.rounds.length}\n </span>\n </TabsTrigger>\n <TabsTrigger value=\"assignments\" className=\"flex items-center gap-1.5\">\n <FileText size={14} />\n Assignments\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.assignments.length}\n </span>\n </TabsTrigger>\n <TabsTrigger value=\"applications\" className=\"flex items-center gap-1.5\">\n <Briefcase size={14} />\n Applications\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.applications.length}\n </span>\n </TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"rounds\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Interview Rounds</h2>\n <Button onClick={openCreateRound}>\n <Plus size={16} />\n Add Round\n </Button>\n </div>\n\n {sortedRounds.length === 0 ? (\n <EmptyState\n icon={<Users size={48} />}\n title=\"No rounds configured\"\n description=\"Add interview rounds to define your hiring pipeline for this posting.\"\n action={\n <Button onClick={openCreateRound}>\n <Plus size={16} />\n Add Round\n </Button>\n }\n />\n ) : (\n <div className=\"space-y-3\">\n {sortedRounds.map((round: RoundConfig, index: number) => (\n <div\n key={round.id}\n className=\"p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-center gap-4\"\n >\n <div className=\"flex-shrink-0 size-10 rounded-full bg-bg-sunken flex items-center justify-center text-sm font-bold text-text-secondary\">\n {index + 1}\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 flex-wrap\">\n <h3 className=\"font-semibold text-text-primary\">{round.name}</h3>\n <Badge variant=\"secondary\">{roundTypeLabels[round.roundType]}</Badge>\n {round.isAssignmentRound && <Badge variant=\"outline\">Assignment</Badge>}\n {round.isRequired && (\n <span className=\"inline-flex items-center gap-1 text-xs text-status-success-text\">\n <Check size={12} />\n Required\n </span>\n )}\n </div>\n {round.description && (\n <p className=\"text-sm text-text-secondary mt-1 line-clamp-2\">\n {round.description}\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => openEditRound(round)}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors\"\n aria-label=\"Edit round config\"\n title=\"Edit round config\"\n >\n <Edit2 size={16} />\n </button>\n <button\n type=\"button\"\n onClick={() => setPendingDeleteRoundId(round.id)}\n disabled={deleteRoundLoading}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50\"\n aria-label=\"Delete round config\"\n title=\"Delete round config\"\n >\n {deleteRoundLoading && pendingDeleteRoundId === round.id ? (\n <Loader2 size={16} className=\"animate-spin\" />\n ) : (\n <Trash2 size={16} />\n )}\n </button>\n </div>\n </div>\n ))}\n </div>\n )}\n </TabsContent>\n\n <TabsContent value=\"assignments\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Take-home Assignments</h2>\n <Button onClick={openCreateAssignment}>\n <Plus size={16} />\n Add Assignment\n </Button>\n </div>\n\n {posting.assignments.length === 0 ? (\n <EmptyState\n icon={<FileText size={48} />}\n title=\"No assignments configured\"\n description=\"Add take-home assignments for candidates to complete during the hiring process.\"\n action={\n <Button onClick={openCreateAssignment}>\n <Plus size={16} />\n Add Assignment\n </Button>\n }\n />\n ) : (\n <div className=\"space-y-3\">\n {posting.assignments.map((assignment: Assignment) => (\n <div\n key={assignment.id}\n className={cn(\n 'p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-start gap-4',\n !assignment.isActive && 'opacity-60'\n )}\n >\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 flex-wrap\">\n <h3 className=\"font-semibold text-text-primary\">{assignment.title}</h3>\n {!assignment.isActive && <Badge variant=\"secondary\">Inactive</Badge>}\n {assignment.difficulty && (\n <Badge variant=\"outline\">{assignment.difficulty}</Badge>\n )}\n </div>\n <div\n className=\"support-richtext text-sm text-text-secondary mt-1 line-clamp-2\"\n // Rendered rich text is already sanitized server-side at write time\n // (career.service.ts); DOMPurify here is defense in depth for this\n // client-rendered preview, same pattern as the KB article detail pages.\n dangerouslySetInnerHTML={{\n __html: DOMPurify.sanitize(assignment.description),\n }}\n />\n {assignment.problemStatement && (\n <div\n className=\"support-richtext mt-3 p-3 rounded-lg bg-bg-sunken text-sm font-semibold text-text-primary\"\n dangerouslySetInnerHTML={{\n __html: DOMPurify.sanitize(assignment.problemStatement),\n }}\n />\n )}\n {assignment.ownerEmail && (\n <p className=\"mt-2 text-xs text-text-secondary\">\n Owner: <span className=\"text-text-primary\">{assignment.ownerEmail}</span>\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => openEditAssignment(assignment)}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors\"\n aria-label=\"Edit assignment\"\n title=\"Edit assignment\"\n >\n <Edit2 size={16} />\n </button>\n <button\n type=\"button\"\n onClick={() => setPendingDeleteAssignmentId(assignment.id)}\n disabled={deleteAssignmentLoading}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50\"\n aria-label=\"Delete assignment\"\n title=\"Delete assignment\"\n >\n {deleteAssignmentLoading && pendingDeleteAssignmentId === assignment.id ? (\n <Loader2 size={16} className=\"animate-spin\" />\n ) : (\n <Trash2 size={16} />\n )}\n </button>\n </div>\n </div>\n ))}\n </div>\n )}\n </TabsContent>\n\n <TabsContent value=\"applications\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Applications</h2>\n </div>\n\n {posting.applications.length === 0 ? (\n <EmptyState\n icon={<Briefcase size={48} />}\n title=\"No applications yet\"\n description=\"Candidates who apply for this posting will appear here.\"\n />\n ) : (\n <div className=\"space-y-3\">\n {posting.applications.map((application: Application) => (\n <button\n type=\"button\"\n key={application.id}\n onClick={() => navigate(`/support/applications/${application.id}`)}\n className=\"w-full text-left p-4 bg-bg-surface border border-border-seam rounded-xl shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group\"\n >\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 mb-1 flex-wrap\">\n <h3 className=\"text-sm font-semibold text-text-primary group-hover:text-primary transition-colors\">\n {application.firstName} {application.lastName}\n </h3>\n <span\n className={cn(\n 'inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium',\n applicationStatusColors[application.status] ||\n applicationStatusColors.NEW\n )}\n >\n {applicationStatusLabels[application.status] || application.status}\n </span>\n </div>\n <p className=\"text-xs text-text-secondary truncate\">{application.email}</p>\n </div>\n <div className=\"text-xs text-text-secondary whitespace-nowrap\">\n {formatDate(application.createdAt)}\n </div>\n </div>\n </button>\n ))}\n </div>\n )}\n </TabsContent>\n </Tabs>\n\n {/* Posting edit modal */}\n <ResponsiveDialog open={isPostingModalOpen} onOpenChange={setIsPostingModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>Edit Job Posting</ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handlePostingSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"posting-title\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Title <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"posting-title\"\n type=\"text\"\n value={postingForm.title}\n onChange={(e) => setPostingForm({ ...postingForm, title: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-slug\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Slug\n </label>\n <input\n id=\"posting-slug\"\n type=\"text\"\n value={postingForm.slug}\n onChange={(e) => setPostingForm({ ...postingForm, slug: e.target.value })}\n placeholder=\"e.g., product-engineering-intern-full-stack\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-openings\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Openings\n </label>\n <input\n id=\"posting-openings\"\n type=\"number\"\n min={1}\n value={postingForm.openings}\n onChange={(e) => setPostingForm({ ...postingForm, openings: e.target.value })}\n placeholder=\"e.g., 2\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-department\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Department\n </label>\n <input\n id=\"posting-department\"\n type=\"text\"\n value={postingForm.department}\n onChange={(e) => setPostingForm({ ...postingForm, department: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-location\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Location\n </label>\n <input\n id=\"posting-location\"\n type=\"text\"\n value={postingForm.location}\n onChange={(e) => setPostingForm({ ...postingForm, location: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-employment-type\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Employment Type\n </label>\n <select\n id=\"posting-employment-type\"\n value={postingForm.employmentType}\n onChange={(e) =>\n setPostingForm({\n ...postingForm,\n employmentType: e.target.value as EmploymentType | '',\n })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value=\"\">Select type</option>\n <option value={EmploymentType.FullTime}>Full-time</option>\n <option value={EmploymentType.PartTime}>Part-time</option>\n <option value={EmploymentType.Contract}>Contract</option>\n <option value={EmploymentType.Internship}>Internship</option>\n </select>\n </div>\n <div>\n <label\n htmlFor=\"posting-status\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Status\n </label>\n <select\n id=\"posting-status\"\n value={postingForm.status}\n onChange={(e) =>\n setPostingForm({ ...postingForm, status: e.target.value as JobPostingStatus })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value={JobPostingStatus.Draft}>Draft</option>\n <option value={JobPostingStatus.Open}>Open</option>\n <option value={JobPostingStatus.Closed}>Closed</option>\n <option value={JobPostingStatus.Archived}>Archived</option>\n </select>\n </div>\n </div>\n <div>\n <label\n htmlFor=\"posting-product-id\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Product ID\n </label>\n <input\n id=\"posting-product-id\"\n type=\"text\"\n value={postingForm.productId}\n onChange={(e) => setPostingForm({ ...postingForm, productId: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description\n </label>\n <textarea\n id=\"posting-description\"\n value={postingForm.description}\n onChange={(e) => setPostingForm({ ...postingForm, description: e.target.value })}\n rows={4}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-overview\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Overview\n </label>\n <textarea\n id=\"posting-overview\"\n value={postingForm.overview}\n onChange={(e) => setPostingForm({ ...postingForm, overview: e.target.value })}\n rows={3}\n placeholder=\"Short pitch shown at the top of the careers page…\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-responsibilities\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Responsibilities\n </label>\n <textarea\n id=\"posting-responsibilities\"\n value={postingForm.responsibilities}\n onChange={(e) =>\n setPostingForm({ ...postingForm, responsibilities: e.target.value })\n }\n rows={4}\n placeholder={'One responsibility per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div>\n <label\n htmlFor=\"posting-learnings\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Learnings\n </label>\n <textarea\n id=\"posting-learnings\"\n value={postingForm.learnings}\n onChange={(e) => setPostingForm({ ...postingForm, learnings: e.target.value })}\n rows={4}\n placeholder={'One learning per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div>\n <label\n htmlFor=\"posting-qualifications\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Qualifications\n </label>\n <textarea\n id=\"posting-qualifications\"\n value={postingForm.qualifications}\n onChange={(e) => setPostingForm({ ...postingForm, qualifications: e.target.value })}\n rows={4}\n placeholder={'One qualification per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={updatePostingLoading || !postingForm.title.trim()}\n className=\"flex-1\"\n >\n {updatePostingLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n Saving…\n </>\n ) : (\n <>\n <Check size={16} />\n Save Changes\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => setIsPostingModalOpen(false)}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Round config modal */}\n <ResponsiveDialog open={roundModalOpen} onOpenChange={setRoundModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>\n {editingRound ? 'Edit Round Config' : 'Add Round Config'}\n </ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handleRoundSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"round-name\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Name <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"round-name\"\n type=\"text\"\n value={roundForm.name}\n onChange={(e) => setRoundForm({ ...roundForm, name: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div>\n <label\n htmlFor=\"round-type\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Round Type\n </label>\n <select\n id=\"round-type\"\n value={roundForm.roundType}\n onChange={(e) =>\n setRoundForm({ ...roundForm, roundType: e.target.value as InterviewRoundType })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n {Object.values(InterviewRoundType).map((type) => (\n <option key={type} value={type}>\n {roundTypeLabels[type]}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label\n htmlFor=\"round-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description\n </label>\n <textarea\n id=\"round-description\"\n value={roundForm.description}\n onChange={(e) => setRoundForm({ ...roundForm, description: e.target.value })}\n rows={3}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div className=\"flex flex-col gap-3\">\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={roundForm.isAssignmentRound}\n onChange={(e) =>\n setRoundForm({ ...roundForm, isAssignmentRound: e.target.checked })\n }\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Assignment round</span>\n </label>\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={roundForm.isRequired}\n onChange={(e) => setRoundForm({ ...roundForm, isRequired: e.target.checked })}\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Required</span>\n </label>\n </div>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={createRoundLoading || updateRoundLoading || !roundForm.name.trim()}\n className=\"flex-1\"\n >\n {createRoundLoading || updateRoundLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n {editingRound ? 'Saving…' : 'Creating…'}\n </>\n ) : (\n <>\n <Check size={16} />\n {editingRound ? 'Update Round' : 'Create Round'}\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={closeRoundModal}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Assignment modal */}\n <ResponsiveDialog open={assignmentModalOpen} onOpenChange={setAssignmentModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>\n {editingAssignment ? 'Edit Assignment' : 'Add Assignment'}\n </ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handleAssignmentSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"assignment-title\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Title <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"assignment-title\"\n type=\"text\"\n value={assignmentForm.title}\n onChange={(e) => setAssignmentForm({ ...assignmentForm, title: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-difficulty\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Difficulty\n </label>\n <input\n id=\"assignment-difficulty\"\n type=\"text\"\n value={assignmentForm.difficulty}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, difficulty: e.target.value })\n }\n placeholder=\"e.g., Easy, Medium, Hard\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-owner-email\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Owner email <span className=\"text-text-secondary font-normal\">(optional)</span>\n </label>\n <input\n id=\"assignment-owner-email\"\n type=\"email\"\n value={assignmentForm.ownerEmail}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, ownerEmail: e.target.value })\n }\n placeholder=\"whoever authored this assignment\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n <p className=\"mt-1.5 text-xs text-text-secondary\">\n So you know who to ask if a candidate has questions about it.\n </p>\n </div>\n <div>\n <label\n htmlFor=\"assignment-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description <span className=\"text-status-error-text\">*</span>\n </label>\n <RichTextEditor\n id=\"assignment-description\"\n value={assignmentForm.description}\n onChange={(html) => setAssignmentForm({ ...assignmentForm, description: html })}\n placeholder=\"What is this assignment about?\"\n aria-required\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-problem-statement\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Problem Statement\n </label>\n <p className=\"mb-2 text-xs text-text-secondary\">\n Shown to the candidate in bold, called out from the rest of the email — this is what\n they need to solve.\n </p>\n <RichTextEditor\n id=\"assignment-problem-statement\"\n value={assignmentForm.problemStatement}\n onChange={(html) =>\n setAssignmentForm({ ...assignmentForm, problemStatement: html })\n }\n placeholder=\"Describe exactly what the candidate needs to build or solve. Use bullet points to break down requirements.\"\n />\n </div>\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={assignmentForm.isActive}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, isActive: e.target.checked })\n }\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Active</span>\n </label>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={\n createAssignmentLoading ||\n updateAssignmentLoading ||\n !assignmentForm.title.trim() ||\n !assignmentForm.description.trim()\n }\n className=\"flex-1\"\n >\n {createAssignmentLoading || updateAssignmentLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n {editingAssignment ? 'Saving…' : 'Creating…'}\n </>\n ) : (\n <>\n <Check size={16} />\n {editingAssignment ? 'Update Assignment' : 'Create Assignment'}\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={closeAssignmentModal}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Delete round confirm */}\n <AlertDialog\n open={pendingDeleteRoundId !== null}\n onOpenChange={(open) => {\n if (!open) setPendingDeleteRoundId(null);\n }}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete round config?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to delete this interview round config? This action cannot be\n undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirmDeleteRound}>Delete</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Delete assignment confirm */}\n <AlertDialog\n open={pendingDeleteAssignmentId !== null}\n onOpenChange={(open) => {\n if (!open) setPendingDeleteAssignmentId(null);\n }}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete assignment?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to delete this assignment? This action cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirm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CAAA,CACD,EAAA,CAAA;GACT,CAAA;GAGb,kBAACmC,IAAD;IACE,MAAMrF,MAA8B;IACpC,eAAe,MAAS;KACtB,AAAKsF,KAAMrF,EAA6B,IAAI;IAC9C;IAEA,UAAA,kBAACsF,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UAAkB,qBAAoC,CAAA,GACtD,kBAACC,GAAD,EAAA,UAAwB,iFAEA,CAAA,CACP,EAAA,CAAA,GACnB,kBAACC,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UAAmB,SAAyB,CAAA,GAC5C,kBAACC,IAAD;KAAmB,SAAS,YA/3BM;MAC1C,IAAMC,IAAe9F;MACrB,IAAK8F,GACL;SAA6B,IAAI;OACjC,IAAI;QAEF,AADA,MAAMtE,GAAiB,EAAE,WAAW,EAAE,IAAIsE,EAAa,EAAE,CAAC,GAC1DlD,EAAK,WAAW,qBAAqB;OACvC,QAAQ;QACN,EAAK,SAAS,8BAA8B;OAC9C;MANiC;KAOnC;KAq3B+D,UAAA;IAAyB,CAAA,CAC7D,EAAA,CAAA,CACD,EAAA,CAAA;GACT,CAAA;EACH;;AAEhB"}
|
|
1
|
+
{"version":3,"file":"JobPostingDetailPage.js","names":["DOMPurify","_Fragment","purify_default","postingStatusConfig","JobPostingStatus","employmentTypeLabels","EmploymentType","roundTypeLabels","InterviewRoundType","applicationStatusColors","applicationStatusLabels","formatDate","dateString","linesToArray","text","line","arrayToLines","items","useNotification","notification","setNotification","useState","timerRef","useRef","useEffect","JobPostingDetailPage","useParams","navigate","useNavigate","activeTab","setActiveTab","isPostingModalOpen","setIsPostingModalOpen","roundModalOpen","setRoundModalOpen","editingRound","setEditingRound","roundForm","setRoundForm","assignmentModalOpen","setAssignmentModalOpen","editingAssignment","setEditingAssignment","assignmentForm","setAssignmentForm","pendingDeleteRoundId","setPendingDeleteRoundId","pendingDeleteAssignmentId","setPendingDeleteAssignmentId","useGetJobPostingQuery","id","posting","data","updatePosting","updatePostingLoading","useUpdateJobPostingMutation","createRound","createRoundLoading","useCreateInterviewRoundConfigMutation","updateRound","updateRoundLoading","useUpdateInterviewRoundConfigMutation","deleteRound","deleteRoundLoading","useDeleteInterviewRoundConfigMutation","createAssignment","createAssignmentLoading","useCreateJobAssignmentMutation","updateAssignment","updateAssignmentLoading","useUpdateJobAssignmentMutation","deleteAssignment","deleteAssignmentLoading","useDeleteJobAssignmentMutation","postingForm","setPostingForm","loading","PageLayout","Briefcase","LoadingState","error","EmptyState","AlertCircle","Button","ArrowLeft","statusConfig","sortedRounds","a","b","handlePostingSubmit","parsedOpenings","show","openCreateRound","openEditRound","round","closeRoundModal","handleRoundSubmit","confirmDeleteRound","roundId","openCreateAssignment","openEditAssignment","assignment","closeAssignmentModal","Edit2","cn","CheckCircle","Badge","Building2","MapPin","Clock","Layers","Tabs","TabsList","TabsTrigger","Users","FileText","TabsContent","Plus","index","Check","Loader2","Trash2","application","ResponsiveDialog","ResponsiveDialogContent","ResponsiveDialogHeader","ResponsiveDialogTitle","Fragment","X","type","RichTextEditor","html","AlertDialog","open","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","assignmentId"],"sources":["../../../src/support/pages/JobPostingDetailPage.tsx"],"sourcesContent":["import { useState, useEffect, useRef } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport DOMPurify from 'dompurify';\nimport {\n ArrowLeft,\n Briefcase,\n Building2,\n MapPin,\n Clock,\n Plus,\n Edit2,\n Trash2,\n Loader2,\n AlertCircle,\n CheckCircle,\n Users,\n FileText,\n Layers,\n Check,\n X,\n} from 'lucide-react';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n} from '@burdenoff/fe-libs/ui';\nimport {\n useGetJobPostingQuery,\n type GetJobPostingQuery,\n useUpdateJobPostingMutation,\n useCreateInterviewRoundConfigMutation,\n useUpdateInterviewRoundConfigMutation,\n useDeleteInterviewRoundConfigMutation,\n useCreateJobAssignmentMutation,\n useUpdateJobAssignmentMutation,\n useDeleteJobAssignmentMutation,\n} from '../../generated/global-operations';\nimport { JobPostingStatus, InterviewRoundType, EmploymentType } from '../../generated/global-types';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { Button, Badge, Tabs, TabsList, TabsTrigger, TabsContent } from '../components/ui';\nimport { RichTextEditor } from '../components/careers/RichTextEditor';\nimport { cn } from '../utils/cn';\n\ntype JobPosting = NonNullable<GetJobPostingQuery['jobPosting']>;\ntype RoundConfig = JobPosting['rounds'][number];\ntype Assignment = JobPosting['assignments'][number];\ntype Application = JobPosting['applications'][number];\n\nconst postingStatusConfig: Record<\n string,\n { label: string; variant: 'default' | 'secondary' | 'success' | 'warning' | 'destructive' }\n> = {\n [JobPostingStatus.Draft]: { label: 'Draft', variant: 'secondary' },\n [JobPostingStatus.Open]: { label: 'Open', variant: 'success' },\n [JobPostingStatus.Closed]: { label: 'Closed', variant: 'warning' },\n [JobPostingStatus.Archived]: { label: 'Archived', variant: 'destructive' },\n};\n\nconst employmentTypeLabels: Record<string, string> = {\n [EmploymentType.FullTime]: 'Full-time',\n [EmploymentType.PartTime]: 'Part-time',\n [EmploymentType.Contract]: 'Contract',\n [EmploymentType.Internship]: 'Internship',\n};\n\nconst roundTypeLabels: Record<string, string> = {\n [InterviewRoundType.PhoneScreen]: 'Phone Screen',\n [InterviewRoundType.Technical]: 'Technical',\n [InterviewRoundType.CultureFit]: 'Culture Fit',\n [InterviewRoundType.Hr]: 'HR',\n [InterviewRoundType.TakeHome]: 'Take-home',\n [InterviewRoundType.Final]: 'Final',\n};\n\nconst applicationStatusColors: Record<string, string> = {\n NEW: 'bg-status-info-bg-subtle text-status-info-text',\n SCREENING: 'bg-status-warning-bg-subtle text-status-warning-text',\n SHORTLISTED: 'bg-accent-purple-subtle text-accent-purple',\n INTERVIEW: 'bg-accent-blue-subtle text-accent-blue',\n HIRED: 'bg-status-success-bg-subtle text-status-success-text',\n REJECTED: 'bg-status-error-bg-subtle text-status-error-text',\n ARCHIVED: 'bg-bg-sunken text-text-secondary',\n};\n\nconst applicationStatusLabels: Record<string, string> = {\n NEW: 'New',\n SCREENING: 'Screening',\n SHORTLISTED: 'Shortlisted',\n INTERVIEW: 'Interview',\n HIRED: 'Hired',\n REJECTED: 'Rejected',\n ARCHIVED: 'Archived',\n};\n\nfunction formatDate(dateString: string): string {\n return new Date(dateString).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n });\n}\n\n// List fields are edited one-per-line in a textarea and stored as string arrays.\nfunction linesToArray(text: string): string[] {\n return text\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean);\n}\n\nfunction arrayToLines(items?: string[] | null): string {\n return (items ?? []).join('\\n');\n}\n\nfunction useNotification() {\n const [notification, setNotification] = useState<{\n type: 'success' | 'error';\n message: string;\n } | null>(null);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n return () => {\n if (timerRef.current) clearTimeout(timerRef.current);\n };\n }, []);\n\n const show = (type: 'success' | 'error', message: string) => {\n setNotification({ type, message });\n if (timerRef.current) clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => setNotification(null), 3000);\n };\n\n return { notification, show };\n}\n\nexport function JobPostingDetailPage() {\n const { id } = useParams<{ id: string }>();\n const navigate = useNavigate();\n const { notification, show } = useNotification();\n\n const [activeTab, setActiveTab] = useState('rounds');\n const [isPostingModalOpen, setIsPostingModalOpen] = useState(false);\n\n const [roundModalOpen, setRoundModalOpen] = useState(false);\n const [editingRound, setEditingRound] = useState<RoundConfig | null>(null);\n const [roundForm, setRoundForm] = useState({\n name: '',\n roundType: InterviewRoundType.Technical,\n description: '',\n isAssignmentRound: false,\n isRequired: true,\n });\n\n const [assignmentModalOpen, setAssignmentModalOpen] = useState(false);\n const [editingAssignment, setEditingAssignment] = useState<Assignment | null>(null);\n const [assignmentForm, setAssignmentForm] = useState({\n title: '',\n description: '',\n problemStatement: '',\n difficulty: '',\n isActive: true,\n ownerEmail: '',\n });\n\n const [pendingDeleteRoundId, setPendingDeleteRoundId] = useState<string | null>(null);\n const [pendingDeleteAssignmentId, setPendingDeleteAssignmentId] = useState<string | null>(null);\n\n const { data, loading, error } = useGetJobPostingQuery({\n variables: { id: id! },\n skip: !id,\n });\n\n const posting = data?.jobPosting;\n\n const [updatePosting, { loading: updatePostingLoading }] = useUpdateJobPostingMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n const [createRound, { loading: createRoundLoading }] = useCreateInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [updateRound, { loading: updateRoundLoading }] = useUpdateInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [deleteRound, { loading: deleteRoundLoading }] = useDeleteInterviewRoundConfigMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n const [createAssignment, { loading: createAssignmentLoading }] = useCreateJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [updateAssignment, { loading: updateAssignmentLoading }] = useUpdateJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n const [deleteAssignment, { loading: deleteAssignmentLoading }] = useDeleteJobAssignmentMutation({\n refetchQueries: ['GetJobPosting'],\n });\n\n // Posting edit form state\n const [postingForm, setPostingForm] = useState({\n title: '',\n department: '',\n location: '',\n employmentType: '' as EmploymentType | '',\n description: '',\n productId: '',\n status: JobPostingStatus.Draft,\n slug: '',\n openings: '',\n overview: '',\n responsibilities: '',\n learnings: '',\n qualifications: '',\n });\n\n useEffect(() => {\n if (posting) {\n setPostingForm({\n title: posting.title,\n department: posting.department ?? '',\n location: posting.location ?? '',\n employmentType: posting.employmentType ?? '',\n description: posting.description ?? '',\n productId: posting.productId ?? '',\n status: posting.status,\n slug: posting.slug ?? '',\n openings: posting.openings != null ? String(posting.openings) : '',\n overview: posting.overview ?? '',\n responsibilities: arrayToLines(posting.responsibilities),\n learnings: arrayToLines(posting.learnings),\n qualifications: arrayToLines(posting.qualifications),\n });\n }\n }, [posting]);\n\n if (loading) {\n return (\n <PageLayout\n title=\"Job Posting\"\n subtitle=\"Loading posting details…\"\n icon={<Briefcase size={24} />}\n >\n <LoadingState message=\"Loading job posting…\" />\n </PageLayout>\n );\n }\n\n if (error || !posting) {\n return (\n <PageLayout title=\"Job Posting\" icon={<Briefcase size={24} />}>\n <EmptyState\n icon={<AlertCircle size={48} />}\n title=\"Posting not found\"\n description={\n error?.message || \"This job posting may have been deleted or you don't have access.\"\n }\n action={\n <Button onClick={() => navigate('/support/applications/postings')}>\n <ArrowLeft size={16} />\n Back to Postings\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n const statusConfig = postingStatusConfig[posting.status];\n const sortedRounds = [...posting.rounds].sort((a, b) => a.roundNumber - b.roundNumber);\n\n const handlePostingSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !postingForm.title.trim()) return;\n const parsedOpenings = postingForm.openings.trim()\n ? parseInt(postingForm.openings.trim(), 10)\n : undefined;\n try {\n await updatePosting({\n variables: {\n id,\n input: {\n title: postingForm.title,\n department: postingForm.department || undefined,\n location: postingForm.location || undefined,\n employmentType: postingForm.employmentType || undefined,\n description: postingForm.description || undefined,\n productId: postingForm.productId || undefined,\n status: postingForm.status,\n slug: postingForm.slug.trim() || undefined,\n openings: parsedOpenings && !Number.isNaN(parsedOpenings) ? parsedOpenings : undefined,\n overview: postingForm.overview.trim() || undefined,\n responsibilities: linesToArray(postingForm.responsibilities),\n learnings: linesToArray(postingForm.learnings),\n qualifications: linesToArray(postingForm.qualifications),\n },\n },\n });\n show('success', 'Job posting updated.');\n setIsPostingModalOpen(false);\n } catch {\n show('error', 'Failed to update job posting.');\n }\n };\n\n const openCreateRound = () => {\n setEditingRound(null);\n setRoundForm({\n name: '',\n roundType: InterviewRoundType.Technical,\n description: '',\n isAssignmentRound: false,\n isRequired: true,\n });\n setRoundModalOpen(true);\n };\n\n const openEditRound = (round: RoundConfig) => {\n setEditingRound(round);\n setRoundForm({\n name: round.name,\n roundType: round.roundType,\n description: round.description ?? '',\n isAssignmentRound: round.isAssignmentRound,\n isRequired: round.isRequired,\n });\n setRoundModalOpen(true);\n };\n\n const closeRoundModal = () => {\n setRoundModalOpen(false);\n setEditingRound(null);\n };\n\n const handleRoundSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !roundForm.name.trim()) return;\n try {\n if (editingRound) {\n await updateRound({\n variables: {\n id: editingRound.id,\n input: {\n name: roundForm.name,\n roundType: roundForm.roundType,\n description: roundForm.description || undefined,\n isAssignmentRound: roundForm.isAssignmentRound,\n isRequired: roundForm.isRequired,\n },\n },\n });\n show('success', 'Round config updated.');\n } else {\n await createRound({\n variables: {\n input: {\n jobPostingId: id,\n name: roundForm.name,\n roundType: roundForm.roundType,\n description: roundForm.description || undefined,\n roundNumber: sortedRounds.length + 1,\n isAssignmentRound: roundForm.isAssignmentRound,\n isRequired: roundForm.isRequired,\n },\n },\n });\n show('success', 'Round config created.');\n }\n closeRoundModal();\n } catch {\n show('error', `Failed to ${editingRound ? 'update' : 'create'} round config.`);\n }\n };\n\n const confirmDeleteRound = async () => {\n const roundId = pendingDeleteRoundId;\n if (!roundId) return;\n setPendingDeleteRoundId(null);\n try {\n await deleteRound({ variables: { id: roundId } });\n show('success', 'Round config deleted.');\n } catch {\n show('error', 'Failed to delete round config.');\n }\n };\n\n const openCreateAssignment = () => {\n setEditingAssignment(null);\n setAssignmentForm({\n title: '',\n description: '',\n problemStatement: '',\n difficulty: '',\n isActive: true,\n ownerEmail: '',\n });\n setAssignmentModalOpen(true);\n };\n\n const openEditAssignment = (assignment: Assignment) => {\n setEditingAssignment(assignment);\n setAssignmentForm({\n title: assignment.title,\n description: assignment.description,\n problemStatement: assignment.problemStatement ?? '',\n difficulty: assignment.difficulty ?? '',\n isActive: assignment.isActive,\n ownerEmail: assignment.ownerEmail ?? '',\n });\n setAssignmentModalOpen(true);\n };\n\n const closeAssignmentModal = () => {\n setAssignmentModalOpen(false);\n setEditingAssignment(null);\n };\n\n const handleAssignmentSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!id || !assignmentForm.title.trim() || !assignmentForm.description.trim()) return;\n try {\n if (editingAssignment) {\n await updateAssignment({\n variables: {\n id: editingAssignment.id,\n input: {\n title: assignmentForm.title,\n description: assignmentForm.description,\n problemStatement: assignmentForm.problemStatement || undefined,\n difficulty: assignmentForm.difficulty || undefined,\n isActive: assignmentForm.isActive,\n ownerEmail: assignmentForm.ownerEmail.trim(),\n },\n },\n });\n show('success', 'Assignment updated.');\n } else {\n await createAssignment({\n variables: {\n input: {\n jobPostingId: id,\n title: assignmentForm.title,\n description: assignmentForm.description,\n problemStatement: assignmentForm.problemStatement || undefined,\n difficulty: assignmentForm.difficulty || undefined,\n isActive: assignmentForm.isActive,\n ownerEmail: assignmentForm.ownerEmail.trim() || undefined,\n },\n },\n });\n show('success', 'Assignment created.');\n }\n closeAssignmentModal();\n } catch {\n show('error', `Failed to ${editingAssignment ? 'update' : 'create'} assignment.`);\n }\n };\n\n const confirmDeleteAssignment = async () => {\n const assignmentId = pendingDeleteAssignmentId;\n if (!assignmentId) return;\n setPendingDeleteAssignmentId(null);\n try {\n await deleteAssignment({ variables: { id: assignmentId } });\n show('success', 'Assignment deleted.');\n } catch {\n show('error', 'Failed to delete assignment.');\n }\n };\n\n return (\n <PageLayout\n title={posting.title}\n subtitle=\"Manage interview rounds, take-home assignments and applications for this posting.\"\n icon={<Briefcase size={24} />}\n headerActions={\n <div className=\"flex items-center gap-2\">\n <Button variant=\"outline\" onClick={() => navigate('/support/applications/postings')}>\n <ArrowLeft size={16} />\n Back\n </Button>\n <Button onClick={() => setIsPostingModalOpen(true)}>\n <Edit2 size={16} />\n Edit Posting\n </Button>\n </div>\n }\n >\n {/* Notification */}\n {notification && (\n <div\n className={cn(\n 'fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200',\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-subtle'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-subtle'\n )}\n >\n {notification.type === 'success' ? (\n <CheckCircle size={20} className=\"text-status-success-text\" />\n ) : (\n <AlertCircle size={20} className=\"text-status-error-text\" />\n )}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n )}\n\n {/* Header card */}\n <div className=\"rounded-xl border border-border-seam bg-bg-surface p-6 shadow-[var(--shadow-pop)]\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n <div>\n <div className=\"flex items-center gap-3 mb-2 flex-wrap\">\n <h1 className=\"text-xl font-bold text-text-primary\">{posting.title}</h1>\n <Badge variant={statusConfig.variant}>{statusConfig.label}</Badge>\n </div>\n <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary\">\n {posting.department && (\n <span className=\"flex items-center gap-1.5\">\n <Building2 size={14} />\n {posting.department}\n </span>\n )}\n {posting.location && (\n <span className=\"flex items-center gap-1.5\">\n <MapPin size={14} />\n {posting.location}\n </span>\n )}\n {posting.employmentType && (\n <span className=\"flex items-center gap-1.5\">\n <Clock size={14} />\n {employmentTypeLabels[posting.employmentType]}\n </span>\n )}\n {posting.productId && (\n <span className=\"flex items-center gap-1.5\">\n <Layers size={14} />\n {posting.productId}\n </span>\n )}\n </div>\n </div>\n </div>\n {posting.description && (\n <p className=\"mt-4 text-sm text-text-primary leading-relaxed whitespace-pre-wrap\">\n {posting.description}\n </p>\n )}\n </div>\n\n {/* Tabs */}\n <Tabs value={activeTab} onValueChange={setActiveTab}>\n <TabsList className=\"mb-6\">\n <TabsTrigger value=\"rounds\" className=\"flex items-center gap-1.5\">\n <Users size={14} />\n Interview Rounds\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.rounds.length}\n </span>\n </TabsTrigger>\n <TabsTrigger value=\"assignments\" className=\"flex items-center gap-1.5\">\n <FileText size={14} />\n Assignments\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.assignments.length}\n </span>\n </TabsTrigger>\n <TabsTrigger value=\"applications\" className=\"flex items-center gap-1.5\">\n <Briefcase size={14} />\n Applications\n <span className=\"ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary\">\n {posting.applications.length}\n </span>\n </TabsTrigger>\n </TabsList>\n\n <TabsContent value=\"rounds\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Interview Rounds</h2>\n <Button onClick={openCreateRound}>\n <Plus size={16} />\n Add Round\n </Button>\n </div>\n\n {sortedRounds.length === 0 ? (\n <EmptyState\n icon={<Users size={48} />}\n title=\"No rounds configured\"\n description=\"Add interview rounds to define your hiring pipeline for this posting.\"\n action={\n <Button onClick={openCreateRound}>\n <Plus size={16} />\n Add Round\n </Button>\n }\n />\n ) : (\n <div className=\"space-y-3\">\n {sortedRounds.map((round: RoundConfig, index: number) => (\n <div\n key={round.id}\n className=\"p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-center gap-4\"\n >\n <div className=\"flex-shrink-0 size-10 rounded-full bg-bg-sunken flex items-center justify-center text-sm font-bold text-text-secondary\">\n {index + 1}\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 flex-wrap\">\n <h3 className=\"font-semibold text-text-primary\">{round.name}</h3>\n <Badge variant=\"secondary\">{roundTypeLabels[round.roundType]}</Badge>\n {round.isAssignmentRound && <Badge variant=\"outline\">Assignment</Badge>}\n {round.isRequired && (\n <span className=\"inline-flex items-center gap-1 text-xs text-status-success-text\">\n <Check size={12} />\n Required\n </span>\n )}\n </div>\n {round.description && (\n <p className=\"text-sm text-text-secondary mt-1 line-clamp-2\">\n {round.description}\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => openEditRound(round)}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors\"\n aria-label=\"Edit round config\"\n title=\"Edit round config\"\n >\n <Edit2 size={16} />\n </button>\n <button\n type=\"button\"\n onClick={() => setPendingDeleteRoundId(round.id)}\n disabled={deleteRoundLoading}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50\"\n aria-label=\"Delete round config\"\n title=\"Delete round config\"\n >\n {deleteRoundLoading && pendingDeleteRoundId === round.id ? (\n <Loader2 size={16} className=\"animate-spin\" />\n ) : (\n <Trash2 size={16} />\n )}\n </button>\n </div>\n </div>\n ))}\n </div>\n )}\n </TabsContent>\n\n <TabsContent value=\"assignments\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Take-home Assignments</h2>\n <Button onClick={openCreateAssignment}>\n <Plus size={16} />\n Add Assignment\n </Button>\n </div>\n\n {posting.assignments.length === 0 ? (\n <EmptyState\n icon={<FileText size={48} />}\n title=\"No assignments configured\"\n description=\"Add take-home assignments for candidates to complete during the hiring process.\"\n action={\n <Button onClick={openCreateAssignment}>\n <Plus size={16} />\n Add Assignment\n </Button>\n }\n />\n ) : (\n <div className=\"space-y-3\">\n {posting.assignments.map((assignment: Assignment) => (\n <div\n key={assignment.id}\n className={cn(\n 'p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-start gap-4',\n !assignment.isActive && 'opacity-60'\n )}\n >\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 flex-wrap\">\n <h3 className=\"font-semibold text-text-primary\">{assignment.title}</h3>\n {!assignment.isActive && <Badge variant=\"secondary\">Inactive</Badge>}\n {assignment.difficulty && (\n <Badge variant=\"outline\">{assignment.difficulty}</Badge>\n )}\n </div>\n <div\n className=\"support-richtext text-sm text-text-secondary mt-1 line-clamp-2\"\n // Rendered rich text is already sanitized server-side at write time\n // (career.service.ts); DOMPurify here is defense in depth for this\n // client-rendered preview, same pattern as the KB article detail pages.\n dangerouslySetInnerHTML={{\n __html: DOMPurify.sanitize(assignment.description),\n }}\n />\n {assignment.problemStatement && (\n <div\n className=\"support-richtext mt-3 p-3 rounded-lg bg-bg-sunken text-sm font-semibold text-text-primary\"\n dangerouslySetInnerHTML={{\n __html: DOMPurify.sanitize(assignment.problemStatement),\n }}\n />\n )}\n {assignment.ownerEmail && (\n <p className=\"mt-2 text-xs text-text-secondary\">\n Owner: <span className=\"text-text-primary\">{assignment.ownerEmail}</span>\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => openEditAssignment(assignment)}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors\"\n aria-label=\"Edit assignment\"\n title=\"Edit assignment\"\n >\n <Edit2 size={16} />\n </button>\n <button\n type=\"button\"\n onClick={() => setPendingDeleteAssignmentId(assignment.id)}\n disabled={deleteAssignmentLoading}\n className=\"min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50\"\n aria-label=\"Delete assignment\"\n title=\"Delete assignment\"\n >\n {deleteAssignmentLoading && pendingDeleteAssignmentId === assignment.id ? (\n <Loader2 size={16} className=\"animate-spin\" />\n ) : (\n <Trash2 size={16} />\n )}\n </button>\n </div>\n </div>\n ))}\n </div>\n )}\n </TabsContent>\n\n <TabsContent value=\"applications\" className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Applications</h2>\n </div>\n\n {posting.applications.length === 0 ? (\n <EmptyState\n icon={<Briefcase size={48} />}\n title=\"No applications yet\"\n description=\"Candidates who apply for this posting will appear here.\"\n />\n ) : (\n <div className=\"space-y-3\">\n {posting.applications.map((application: Application) => (\n <button\n type=\"button\"\n key={application.id}\n onClick={() => navigate(`/support/applications/${application.id}`)}\n className=\"w-full text-left p-4 bg-bg-surface border border-border-seam rounded-xl shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group\"\n >\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2 mb-1 flex-wrap\">\n <h3 className=\"text-sm font-semibold text-text-primary group-hover:text-primary transition-colors\">\n {application.firstName} {application.lastName}\n </h3>\n <span\n className={cn(\n 'inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium',\n applicationStatusColors[application.status] ||\n applicationStatusColors.NEW\n )}\n >\n {applicationStatusLabels[application.status] || application.status}\n </span>\n </div>\n <p className=\"text-xs text-text-secondary truncate\">{application.email}</p>\n </div>\n <div className=\"text-xs text-text-secondary whitespace-nowrap\">\n {formatDate(application.createdAt)}\n </div>\n </div>\n </button>\n ))}\n </div>\n )}\n </TabsContent>\n </Tabs>\n\n {/* Posting edit modal */}\n <ResponsiveDialog open={isPostingModalOpen} onOpenChange={setIsPostingModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>Edit Job Posting</ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handlePostingSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"posting-title\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Title <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"posting-title\"\n type=\"text\"\n value={postingForm.title}\n onChange={(e) => setPostingForm({ ...postingForm, title: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-slug\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Slug\n </label>\n <input\n id=\"posting-slug\"\n type=\"text\"\n value={postingForm.slug}\n onChange={(e) => setPostingForm({ ...postingForm, slug: e.target.value })}\n placeholder=\"e.g., product-engineering-intern-full-stack\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-openings\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Openings\n </label>\n <input\n id=\"posting-openings\"\n type=\"number\"\n min={1}\n value={postingForm.openings}\n onChange={(e) => setPostingForm({ ...postingForm, openings: e.target.value })}\n placeholder=\"e.g., 2\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-department\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Department\n </label>\n <input\n id=\"posting-department\"\n type=\"text\"\n value={postingForm.department}\n onChange={(e) => setPostingForm({ ...postingForm, department: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-location\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Location\n </label>\n <input\n id=\"posting-location\"\n type=\"text\"\n value={postingForm.location}\n onChange={(e) => setPostingForm({ ...postingForm, location: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div>\n <label\n htmlFor=\"posting-employment-type\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Employment Type\n </label>\n <select\n id=\"posting-employment-type\"\n value={postingForm.employmentType}\n onChange={(e) =>\n setPostingForm({\n ...postingForm,\n employmentType: e.target.value as EmploymentType | '',\n })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value=\"\">Select type</option>\n <option value={EmploymentType.FullTime}>Full-time</option>\n <option value={EmploymentType.PartTime}>Part-time</option>\n <option value={EmploymentType.Contract}>Contract</option>\n <option value={EmploymentType.Internship}>Internship</option>\n </select>\n </div>\n <div>\n <label\n htmlFor=\"posting-status\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Status\n </label>\n <select\n id=\"posting-status\"\n value={postingForm.status}\n onChange={(e) =>\n setPostingForm({ ...postingForm, status: e.target.value as JobPostingStatus })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n <option value={JobPostingStatus.Draft}>Draft</option>\n <option value={JobPostingStatus.Open}>Open</option>\n <option value={JobPostingStatus.Closed}>Closed</option>\n <option value={JobPostingStatus.Archived}>Archived</option>\n </select>\n </div>\n </div>\n <div>\n <label\n htmlFor=\"posting-product-id\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Product ID\n </label>\n <input\n id=\"posting-product-id\"\n type=\"text\"\n value={postingForm.productId}\n onChange={(e) => setPostingForm({ ...postingForm, productId: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description\n </label>\n <textarea\n id=\"posting-description\"\n value={postingForm.description}\n onChange={(e) => setPostingForm({ ...postingForm, description: e.target.value })}\n rows={4}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-overview\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Overview\n </label>\n <textarea\n id=\"posting-overview\"\n value={postingForm.overview}\n onChange={(e) => setPostingForm({ ...postingForm, overview: e.target.value })}\n rows={3}\n placeholder=\"Short pitch shown at the top of the careers page…\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div>\n <label\n htmlFor=\"posting-responsibilities\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Responsibilities\n </label>\n <textarea\n id=\"posting-responsibilities\"\n value={postingForm.responsibilities}\n onChange={(e) =>\n setPostingForm({ ...postingForm, responsibilities: e.target.value })\n }\n rows={4}\n placeholder={'One responsibility per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div>\n <label\n htmlFor=\"posting-learnings\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Learnings\n </label>\n <textarea\n id=\"posting-learnings\"\n value={postingForm.learnings}\n onChange={(e) => setPostingForm({ ...postingForm, learnings: e.target.value })}\n rows={4}\n placeholder={'One learning per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div>\n <label\n htmlFor=\"posting-qualifications\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Qualifications\n </label>\n <textarea\n id=\"posting-qualifications\"\n value={postingForm.qualifications}\n onChange={(e) => setPostingForm({ ...postingForm, qualifications: e.target.value })}\n rows={4}\n placeholder={'One qualification per line'}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n <p className=\"mt-1 text-xs text-text-secondary\">Enter one item per line.</p>\n </div>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={updatePostingLoading || !postingForm.title.trim()}\n className=\"flex-1\"\n >\n {updatePostingLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n Saving…\n </>\n ) : (\n <>\n <Check size={16} />\n Save Changes\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => setIsPostingModalOpen(false)}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Round config modal */}\n <ResponsiveDialog open={roundModalOpen} onOpenChange={setRoundModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>\n {editingRound ? 'Edit Round Config' : 'Add Round Config'}\n </ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handleRoundSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"round-name\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Name <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"round-name\"\n type=\"text\"\n value={roundForm.name}\n onChange={(e) => setRoundForm({ ...roundForm, name: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div>\n <label\n htmlFor=\"round-type\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Round Type\n </label>\n <select\n id=\"round-type\"\n value={roundForm.roundType}\n onChange={(e) =>\n setRoundForm({ ...roundForm, roundType: e.target.value as InterviewRoundType })\n }\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary\"\n >\n {Object.values(InterviewRoundType).map((type) => (\n <option key={type} value={type}>\n {roundTypeLabels[type]}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label\n htmlFor=\"round-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description\n </label>\n <textarea\n id=\"round-description\"\n value={roundForm.description}\n onChange={(e) => setRoundForm({ ...roundForm, description: e.target.value })}\n rows={3}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none\"\n />\n </div>\n <div className=\"flex flex-col gap-3\">\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={roundForm.isAssignmentRound}\n onChange={(e) =>\n setRoundForm({ ...roundForm, isAssignmentRound: e.target.checked })\n }\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Assignment round</span>\n </label>\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={roundForm.isRequired}\n onChange={(e) => setRoundForm({ ...roundForm, isRequired: e.target.checked })}\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Required</span>\n </label>\n </div>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={createRoundLoading || updateRoundLoading || !roundForm.name.trim()}\n className=\"flex-1\"\n >\n {createRoundLoading || updateRoundLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n {editingRound ? 'Saving…' : 'Creating…'}\n </>\n ) : (\n <>\n <Check size={16} />\n {editingRound ? 'Update Round' : 'Create Round'}\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={closeRoundModal}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Assignment modal */}\n <ResponsiveDialog open={assignmentModalOpen} onOpenChange={setAssignmentModalOpen}>\n <ResponsiveDialogContent className=\"w-full max-w-lg max-h-[90vh] overflow-y-auto\">\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>\n {editingAssignment ? 'Edit Assignment' : 'Add Assignment'}\n </ResponsiveDialogTitle>\n </ResponsiveDialogHeader>\n <form onSubmit={handleAssignmentSubmit} className=\"space-y-5\">\n <div>\n <label\n htmlFor=\"assignment-title\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Title <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n id=\"assignment-title\"\n type=\"text\"\n value={assignmentForm.title}\n onChange={(e) => setAssignmentForm({ ...assignmentForm, title: e.target.value })}\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n required\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-difficulty\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Difficulty\n </label>\n <input\n id=\"assignment-difficulty\"\n type=\"text\"\n value={assignmentForm.difficulty}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, difficulty: e.target.value })\n }\n placeholder=\"e.g., Easy, Medium, Hard\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-owner-email\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Owner email <span className=\"text-text-secondary font-normal\">(optional)</span>\n </label>\n <input\n id=\"assignment-owner-email\"\n type=\"email\"\n value={assignmentForm.ownerEmail}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, ownerEmail: e.target.value })\n }\n placeholder=\"whoever authored this assignment\"\n className=\"w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary\"\n />\n <p className=\"mt-1.5 text-xs text-text-secondary\">\n So you know who to ask if a candidate has questions about it.\n </p>\n </div>\n <div>\n <label\n htmlFor=\"assignment-description\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Description <span className=\"text-status-error-text\">*</span>\n </label>\n <RichTextEditor\n id=\"assignment-description\"\n value={assignmentForm.description}\n onChange={(html) => setAssignmentForm({ ...assignmentForm, description: html })}\n placeholder=\"What is this assignment about?\"\n aria-required\n />\n </div>\n <div>\n <label\n htmlFor=\"assignment-problem-statement\"\n className=\"block text-sm font-medium text-text-primary mb-2\"\n >\n Problem Statement\n </label>\n <p className=\"mb-2 text-xs text-text-secondary\">\n Shown to the candidate in bold, called out from the rest of the email — this is what\n they need to solve.\n </p>\n <RichTextEditor\n id=\"assignment-problem-statement\"\n value={assignmentForm.problemStatement}\n onChange={(html) =>\n setAssignmentForm({ ...assignmentForm, problemStatement: html })\n }\n placeholder=\"Describe exactly what the candidate needs to build or solve. Use bullet points to break down requirements.\"\n />\n </div>\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={assignmentForm.isActive}\n onChange={(e) =>\n setAssignmentForm({ ...assignmentForm, isActive: e.target.checked })\n }\n className=\"size-4 rounded border-border-default text-primary focus:ring-primary\"\n />\n <span className=\"text-sm text-text-primary\">Active</span>\n </label>\n <div className=\"flex flex-col gap-3 pt-2 sm:flex-row\">\n <Button\n type=\"submit\"\n disabled={\n createAssignmentLoading ||\n updateAssignmentLoading ||\n !assignmentForm.title.trim() ||\n !assignmentForm.description.trim()\n }\n className=\"flex-1\"\n >\n {createAssignmentLoading || updateAssignmentLoading ? (\n <>\n <Loader2 size={16} className=\"animate-spin\" />\n {editingAssignment ? 'Saving…' : 'Creating…'}\n </>\n ) : (\n <>\n <Check size={16} />\n {editingAssignment ? 'Update Assignment' : 'Create Assignment'}\n </>\n )}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={closeAssignmentModal}>\n <X size={16} />\n Cancel\n </Button>\n </div>\n </form>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n\n {/* Delete round confirm */}\n <AlertDialog\n open={pendingDeleteRoundId !== null}\n onOpenChange={(open) => {\n if (!open) setPendingDeleteRoundId(null);\n }}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete round config?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to delete this interview round config? This action cannot be\n undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirmDeleteRound}>Delete</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {/* Delete assignment confirm */}\n <AlertDialog\n open={pendingDeleteAssignmentId !== null}\n onOpenChange={(open) => {\n if (!open) setPendingDeleteAssignmentId(null);\n }}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete assignment?</AlertDialogTitle>\n <AlertDialogDescription>\n Are you sure you want to delete this assignment? This action cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirmDeleteAssignment}>Delete</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAyDA,IAAMG,KAGF;EACDC,EAAiB,QAAQ;EAAE,OAAO;EAAS,SAAS;CAAY;EAChEA,EAAiB,OAAO;EAAE,OAAO;EAAQ,SAAS;CAAU;EAC5DA,EAAiB,SAAS;EAAE,OAAO;EAAU,SAAS;CAAU;EAChEA,EAAiB,WAAW;EAAE,OAAO;EAAY,SAAS;CAAc;AAC3E,GAEMC,KAA+C;EAClDC,EAAe,WAAW;EAC1BA,EAAe,WAAW;EAC1BA,EAAe,WAAW;EAC1BA,EAAe,aAAa;AAC/B,GAEMC,KAA0C;EAC7CC,EAAmB,cAAc;EACjCA,EAAmB,YAAY;EAC/BA,EAAmB,aAAa;EAChCA,EAAmB,KAAK;EACxBA,EAAmB,WAAW;EAC9BA,EAAmB,QAAQ;AAC9B,GAEMC,KAAkD;CACtD,KAAK;CACL,WAAW;CACX,aAAa;CACb,WAAW;CACX,OAAO;CACP,UAAU;CACV,UAAU;AACZ,GAEMC,KAAkD;CACtD,KAAK;CACL,WAAW;CACX,aAAa;CACb,WAAW;CACX,OAAO;CACP,UAAU;CACV,UAAU;AACZ;AAEA,SAASC,GAAW,GAA4B;CAC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,
|
|
5
5
|
* no draft/archived status badges. Users can browse, search,
|
|
6
|
-
* and read articles.
|
|
6
|
+
* and read articles. Search runs on Enter.
|
|
7
|
+
*
|
|
8
|
+
* With the FluidGrids opt-in (`variant="fluidgrids"`) the page is "Help
|
|
9
|
+
* articles": search also runs as you type, a `?q=` link opens the page with
|
|
10
|
+
* that search, view and helpful counts move behind "Show technical details"
|
|
11
|
+
* and the empty state offers "Contact support" (BOFF-11844).
|
|
7
12
|
*/
|
|
8
13
|
export declare function KnowledgeBaseUserPage(): import('react').JSX.Element;
|