feat(frontend): edit projects and show semantic match evidence
This commit is contained in:
1 parent
5a731c25b7
commit
bc00d6901f
52 files changed
+2992
-111
No files matched your search
@@ -27,6 +27,15 @@ export type CardDetails = {
|
||||
experience: string | null;
|
||||
workFormats: readonly string[] | null;
|
||||
salaryCompatibility: string | null;
|
||||
/** Published projects in the candidate's order; null when the card has none to show. */
|
||||
projects:
|
||||
| readonly {
|
||||
title: string;
|
||||
description: string | null;
|
||||
stack: readonly string[];
|
||||
repositoryVerified: boolean;
|
||||
}[]
|
||||
| null;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -54,6 +63,13 @@ export function presentCard(card: AnonymousCardContent): CardDetails {
|
||||
salaryCompatibility: card.salary_compatibility
|
||||
? salaryCompatibilityLabels[card.salary_compatibility]
|
||||
: null,
|
||||
projects:
|
||||
card.projects?.map((project) => ({
|
||||
title: project.title,
|
||||
description: project.description,
|
||||
stack: [...project.stack],
|
||||
repositoryVerified: project.repository_verified,
|
||||
})) ?? null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user