From b88949bb76d1df0beb0f7c8698959d5107e1f1c7 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 5 Jun 2025 16:27:18 -0700 Subject: [PATCH] Analysis worked! --- frontend/src/components/JobMatchAnalysis.tsx | 63 ++++++++++++++------ 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/JobMatchAnalysis.tsx b/frontend/src/components/JobMatchAnalysis.tsx index 40d4cb3..110ea88 100644 --- a/frontend/src/components/JobMatchAnalysis.tsx +++ b/frontend/src/components/JobMatchAnalysis.tsx @@ -13,7 +13,8 @@ import { Card, CardContent, useTheme, - LinearProgress + LinearProgress, + useMediaQuery } from '@mui/material'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import CheckCircleIcon from '@mui/icons-material/CheckCircle'; @@ -25,6 +26,8 @@ import { useAuth } from 'hooks/AuthContext'; import { BackstoryPageProps } from './BackstoryTab'; import { toCamelCase } from 'types/conversion'; import { Job } from 'types/types'; +import { StyledMarkdown } from './StyledMarkdown'; +import { Scrollable } from './Scrollable'; interface JobAnalysisProps extends BackstoryPageProps { job: Job; @@ -40,8 +43,10 @@ const JobMatchAnalysis: React.FC = (props: JobAnalysisProps) = job, candidate, setSnack, + submitQuery } = props const { apiClient } = useAuth(); + const backstoryProps = { setSnack, submitQuery }; const theme = useTheme(); const [requirements, setRequirements] = useState<{ requirement: string, domain: string }[]>([]); const [skillMatches, setSkillMatches] = useState([]); @@ -51,6 +56,7 @@ const JobMatchAnalysis: React.FC = (props: JobAnalysisProps) = const [overallScore, setOverallScore] = useState(0); const [requirementsSession, setRequirementsSession] = useState(null); const [statusMessage, setStatusMessage] = useState(null); + const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Handle accordion expansion const handleAccordionChange = (panel: string) => (event: React.SyntheticEvent, isExpanded: boolean) => { @@ -299,24 +305,43 @@ const JobMatchAnalysis: React.FC = (props: JobAnalysisProps) = - - - Job Match Analysis - - - - - - - Job: {job.title} - - - - - - Candidate: {candidate.fullName} - - + + + + Company: + + + {job.company || "N/A"} + + + + Job Title: + + + {job.title || "N/A"} + + + + Backstory Job Summary: + + + {job.summary || "N/A"} + + + Job ID: {job.id} + + + + + Job Description: + + + + + + + +