Skip to content

Commit ffa1ac6

Browse files
authored
Merge pull request #193 from Sam-Razavi/dev
2 parents c07fa1a + bd9a713 commit ffa1ac6

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

‎frontend/src/components/discover/SkillsBreakdown.test.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ describe('SkillsBreakdown', () => {
1212
it('shows upload prompt when no skills provided', () => {
1313
render(<SkillsBreakdown matchedSkills={[]} missingSkills={[]} />)
1414
expect(screen.getByText(/Upload a CV/)).toBeInTheDocument()
15-
expect(screen.getByText('Skills match')).toBeInTheDocument()
15+
expect(screen.getByText('Keywords from the ad')).toBeInTheDocument()
1616
})
1717

1818
it('shows matched and missing skill counts', () => {
1919
render(<SkillsBreakdown matchedSkills={['Python', 'React']} missingSkills={['Docker']} />)
20-
expect(screen.getByText(/2 of 3 required skills matched/)).toBeInTheDocument()
20+
expect(screen.getByText(/2 of 3 keywords from the ad found in your CV/)).toBeInTheDocument()
2121
})
2222

2323
it('renders matched skill pills', () => {
@@ -37,9 +37,9 @@ describe('SkillsBreakdown', () => {
3737
expect(screen.getByText('None yet')).toBeInTheDocument()
3838
})
3939

40-
it('shows "No gaps found" when missingSkills is empty but matchedSkills exist', () => {
40+
it('shows "None missing" when missingSkills is empty but matchedSkills exist', () => {
4141
render(<SkillsBreakdown matchedSkills={['Python']} missingSkills={[]} />)
42-
expect(screen.getByText('No gaps found')).toBeInTheDocument()
42+
expect(screen.getByText('None missing')).toBeInTheDocument()
4343
})
4444

4545
it('copies skill to clipboard when missing skill pill is clicked', async () => {

‎frontend/src/components/discover/SkillsBreakdown.tsx‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export default function SkillsBreakdown({ matchedSkills, missingSkills, onSkillC
3939
if (total === 0) {
4040
return (
4141
<div className="rounded-xl border border-line bg-surface p-4">
42-
<h3 className="text-sm font-semibold text-fg">Skills match</h3>
42+
<h3 className="text-sm font-semibold text-fg">Keywords from the ad</h3>
4343
<p className="mt-2 text-xs text-fg-subtle">
44-
Upload a CV so AI can compare your skills against this role.
44+
Upload a CV to see which keywords from this ad it contains.
4545
</p>
4646
</div>
4747
)
@@ -55,11 +55,16 @@ export default function SkillsBreakdown({ matchedSkills, missingSkills, onSkillC
5555
return (
5656
<div className="rounded-xl border border-line bg-surface p-4">
5757
<h3 className="text-sm font-semibold text-fg">
58-
{matchedSkills.length} of {total} required skills matched
58+
{matchedSkills.length} of {total} keywords from the ad found in your CV
5959
</h3>
60+
{/* The score line above counts technical skills only, so its numbers can
61+
differ from this card's: say so instead of leaving two counts unexplained. */}
62+
<p className="mt-1 text-xs text-fg-subtle">
63+
Includes languages and soft skills. The match score counts technical skills only.
64+
</p>
6065
<div className="mt-3 grid gap-4 sm:grid-cols-2">
6166
<div>
62-
<p className="mb-2 text-xs font-semibold text-chip-success-fg">Matched</p>
67+
<p className="mb-2 text-xs font-semibold text-chip-success-fg">Found in your CV</p>
6368
<div className="flex flex-wrap gap-1.5">
6469
{matchedSkills.length ? (
6570
matchedSkills.map((skill) => (
@@ -77,7 +82,7 @@ export default function SkillsBreakdown({ matchedSkills, missingSkills, onSkillC
7782
</div>
7883
</div>
7984
<div>
80-
<p className="mb-2 text-xs font-semibold text-chip-danger-fg">Missing</p>
85+
<p className="mb-2 text-xs font-semibold text-chip-danger-fg">Not found in your CV</p>
8186
<div className="flex flex-wrap gap-1.5">
8287
{missingSkills.length ? (
8388
missingSkills.map((skill) => (
@@ -92,7 +97,7 @@ export default function SkillsBreakdown({ matchedSkills, missingSkills, onSkillC
9297
/>
9398
))
9499
) : (
95-
<span className="text-xs text-fg-subtle">No gaps found</span>
100+
<span className="text-xs text-fg-subtle">None missing</span>
96101
)}
97102
</div>
98103
</div>

0 commit comments

Comments
 (0)