@@ -22,6 +22,8 @@ type Report = {
2222 cultural_confidence : number ;
2323 pros : string ;
2424 cons : string ;
25+ hiring_advice : string ;
26+ candidate_advice : string ;
2527 concern_tags : string [ ] ;
2628 date_created : string ;
2729 user_created ?: { first_name ?: string ; last_name ?: string } ;
@@ -107,6 +109,18 @@ export default function ReportCard() {
107109 . map ( ( l ) => l . replace ( / ^ \s * - \s * / , "" ) . trim ( ) )
108110 . filter ( Boolean ) || [ ] ;
109111
112+ const hiring_advices =
113+ report ?. hiring_advice
114+ ?. split ( "\n" )
115+ . map ( ( l ) => l . replace ( / ^ \s * - \s * / , "" ) . trim ( ) )
116+ . filter ( Boolean ) || [ ] ;
117+
118+ const candidate_advices =
119+ report ?. candidate_advice
120+ ?. split ( "\n" )
121+ . map ( ( l ) => l . replace ( / ^ \s * - \s * / , "" ) . trim ( ) )
122+ . filter ( Boolean ) || [ ] ;
123+
110124 const candidateName = ( ) => {
111125 const c = report ?. user_created ;
112126 const first = c ?. first_name ?. trim ( ) || "" ;
@@ -282,11 +296,50 @@ export default function ReportCard() {
282296 </ li >
283297 ) )
284298 ) : (
285- < li className = "text-gray-500" > No cons listed.</ li >
299+ < li className = "text-gray-500" > No advice listed.</ li >
286300 ) }
287301 </ ul >
288302 </ div >
289303
304+ { /* Hiring Advices */ }
305+ < div >
306+ < h2 className = "text-lg font-semibold mb-2" > Hiring Advices</ h2 >
307+ < ul className = "space-y-1" >
308+ { hiring_advices . length ? (
309+ hiring_advices . map ( ( c , i ) => (
310+ < li
311+ key = { i }
312+ className = "flex items-start gap-2 text-gray-800 break-words"
313+ >
314+ - { c }
315+ </ li >
316+ ) )
317+ ) : (
318+ < li className = "text-gray-500" > No advice listed.</ li >
319+ ) }
320+ </ ul >
321+ </ div >
322+
323+ { /* Candidate Advices */ }
324+ < div >
325+ < h2 className = "text-lg font-semibold mb-2" > Candidate Advices</ h2 >
326+ < ul className = "space-y-1" >
327+ { candidate_advices . length ? (
328+ candidate_advices . map ( ( c , i ) => (
329+ < li
330+ key = { i }
331+ className = "flex items-start gap-2 text-gray-800 break-words"
332+ >
333+ - { c }
334+ </ li >
335+ ) )
336+ ) : (
337+ < li className = "text-gray-500" > No advice listed.</ li >
338+ ) }
339+ </ ul >
340+ </ div >
341+
342+
290343 { /* Footer link */ }
291344 < div className = "text-center" >
292345 < a
0 commit comments