Copy edits from Chelsea
This commit is contained in:
parent
a51606e848
commit
33d91d1cbb
@ -254,7 +254,8 @@ const generateResumeStyles = (): Record<string, ResumeStyle> => {
|
|||||||
} as SxProps<Theme>,
|
} as SxProps<Theme>,
|
||||||
contentStyle: {
|
contentStyle: {
|
||||||
fontFamily: '"Arial", sans-serif',
|
fontFamily: '"Arial", sans-serif',
|
||||||
lineHeight: 1.4,
|
lineHeight: 1.2,
|
||||||
|
fontSize: '0.875rem',
|
||||||
color: '#2c3e50',
|
color: '#2c3e50',
|
||||||
} as SxProps<Theme>,
|
} as SxProps<Theme>,
|
||||||
markdownStyle: {
|
markdownStyle: {
|
||||||
@ -284,6 +285,9 @@ const generateResumeStyles = (): Record<string, ResumeStyle> => {
|
|||||||
marginBottom: 0.75,
|
marginBottom: 0.75,
|
||||||
fontSize: '0.75rem',
|
fontSize: '0.75rem',
|
||||||
},
|
},
|
||||||
|
'& div': {
|
||||||
|
fontSize: '0.75rem',
|
||||||
|
},
|
||||||
'& ul': {
|
'& ul': {
|
||||||
paddingLeft: 2,
|
paddingLeft: 2,
|
||||||
},
|
},
|
||||||
|
@ -256,12 +256,14 @@ const CandidateChatPage = forwardRef<ConversationHandle, CandidateChatPageProps>
|
|||||||
return <CandidatePicker />;
|
return <CandidatePicker />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const candidatePossessive = `${selectedCandidate.firstName}'${
|
const possessive = (name: string): string => {
|
||||||
selectedCandidate.firstName.slice(-1) !== 's' ? 's' : ''
|
return name.endsWith('s') ? `${name}'` : `${name}'s`;
|
||||||
}`;
|
};
|
||||||
|
|
||||||
const defaultQuestions: string[] = [
|
const defaultQuestions: string[] = [
|
||||||
`How well does ${candidatePossessive} resume align with the job description?`,
|
`How well does ${possessive(
|
||||||
|
selectedCandidate.firstName
|
||||||
|
)} resume align with the job description?`,
|
||||||
`Should ${selectedCandidate.firstName} be hired for the ${resume?.job?.title} position?`,
|
`Should ${selectedCandidate.firstName} be hired for the ${resume?.job?.title} position?`,
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -271,18 +273,25 @@ const CandidateChatPage = forwardRef<ConversationHandle, CandidateChatPageProps>
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
status: 'done',
|
status: 'done',
|
||||||
timestamp: new Date(),
|
timestamp: new Date(),
|
||||||
content:
|
content: `Welcome to the Backstory Chat about ${selectedCandidate.fullName}.`,
|
||||||
`Welcome to the Backstory Chat about ${selectedCandidate.fullName}` +
|
|
||||||
(resume ? ` and the ${resume.job?.title} position at ${resume.job?.company}` : '') +
|
|
||||||
`. Enter any questions you have about ${candidatePossessive} ${
|
|
||||||
resume ? 'resume' : 'work history'
|
|
||||||
} or skills, or select from the available questions.` +
|
|
||||||
(isMobile
|
|
||||||
? `\n\nYou can also click on the "Resume" tab to ${candidatePossessive} resume for this position.`
|
|
||||||
: ''),
|
|
||||||
metadata: emptyMetadata,
|
metadata: emptyMetadata,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (resume) {
|
||||||
|
welcomeMessage.content =
|
||||||
|
`Welcome to Backstory Chat, analyzing ${possessive(
|
||||||
|
selectedCandidate.fullName
|
||||||
|
)} work experience ` + `against the ${resume.job?.company} ${resume.job?.title} position.`;
|
||||||
|
}
|
||||||
|
|
||||||
|
welcomeMessage.content += `\n\nSelect from the suggested questions or enter your own to learn more about ${possessive(
|
||||||
|
selectedCandidate.firstName
|
||||||
|
)} skills.`;
|
||||||
|
|
||||||
|
if (isMobile) {
|
||||||
|
welcomeMessage.content += `\n\nClick the "Résumé" tab to read the full document.`;
|
||||||
|
}
|
||||||
|
|
||||||
const handleSubmitQuestion = (question: CandidateQuestion): void => {
|
const handleSubmitQuestion = (question: CandidateQuestion): void => {
|
||||||
sendMessage(question.question);
|
sendMessage(question.question);
|
||||||
};
|
};
|
||||||
@ -331,7 +340,7 @@ const CandidateChatPage = forwardRef<ConversationHandle, CandidateChatPageProps>
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
minHeight: 0 /* Prevent flex overflow */,
|
minHeight: 0 /* Prevent flex overflow */,
|
||||||
maxHeight: isMobile
|
maxHeight: isMobile
|
||||||
? 'calc(100% - 144px)'
|
? '100%' /* 'calc(100% - 144px)'*/
|
||||||
: '100%' /* Adjust for header/footer on mobile */,
|
: '100%' /* Adjust for header/footer on mobile */,
|
||||||
'& > *:not(.Scrollable)': {
|
'& > *:not(.Scrollable)': {
|
||||||
flexShrink: 0 /* Prevent shrinking */,
|
flexShrink: 0 /* Prevent shrinking */,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user