@@ -259,6 +259,7 @@ export function OpportunityContacts({
259
259
) }
260
260
</ div >
261
261
</ div >
262
+
262
263
{ /* Skills */ }
263
264
< div className = "flex flex-row items-start justify-start text-sm text-zinc-700 dark:text-zinc-200" >
264
265
< div className = "flex gap-x-2 items-center w-32 min-w-32 max-w-32 text-zinc-500 dark:text-zinc-400" >
@@ -277,42 +278,19 @@ export function OpportunityContacts({
277
278
? // If expanded, show all skills
278
279
contact . skills && contact . skills . length > 0
279
280
? icp
280
- ? contact . skills
281
- . filter ( ( item ) =>
282
- icp . tool . include . some (
283
- ( el ) =>
284
- el . toLowerCase ( ) ===
285
- item . toLowerCase ( )
286
- )
287
- )
288
- . concat (
289
- contact . skills . filter (
290
- ( item ) =>
291
- ! icp . tool . include . includes ( item )
292
- )
293
- )
294
- . join ( " · " )
281
+ ? bringMatchesForward (
282
+ contact . skills ,
283
+ icp . tool . include
284
+ )
295
285
: contact . skills . join ( " . " )
296
286
: "n/a"
297
287
: // If not expanded, show truncated version
298
288
contact . skills && contact . skills . length > 0
299
289
? icp
300
- ? contact . skills
301
- . filter ( ( item ) =>
302
- icp . tool . include . some (
303
- ( el ) =>
304
- el . toLowerCase ( ) ===
305
- item . toLowerCase ( )
306
- )
307
- )
308
- . concat (
309
- contact . skills . filter (
310
- ( item ) =>
311
- ! icp . tool . include . includes ( item )
312
- )
313
- )
314
- . slice ( 0 , 5 ) // Show only the first skill
315
- . join ( " · " )
290
+ ? bringMatchesForward (
291
+ contact . skills ,
292
+ icp . tool . include
293
+ )
316
294
: contact . skills . slice ( 0 , 1 ) . join ( " . " )
317
295
: "n/a" }
318
296
</ p >
@@ -447,91 +425,6 @@ export function OpportunityContacts({
447
425
</ div >
448
426
</ div >
449
427
</ div >
450
- { /* Activity */ }
451
- { /* <div className="flex flex-col px-4 py-4 gap-3">
452
- <p className="uppercase text-xs text-secondary-foreground font-semibold">
453
- Activity
454
- </p>
455
-
456
- <div className="flex flex-row gap-2 items-center justify-between">
457
- <div className="flex flex-row gap-2 items-center">
458
- Mentions{" "}
459
- <span className="px-1 py-0.5 bg-green-400 font-medium text-green-800 border border-green-800 text-xs rounded-lg">
460
- APIs
461
- </span>
462
- on LinkedIn
463
- <p className="text-zinc-400">•</p>
464
- <p className="text-zinc-400">2 days ago</p>
465
- </div>
466
- <div className="flex">
467
- <div className="border border-border px-1.5 py-0.5 rounded-lg">
468
- Join discussion
469
- </div>
470
- </div>
471
- </div>
472
- <div className="flex flex-row gap-2 items-center justify-between">
473
- <div className="flex flex-row gap-2 items-center">
474
- Mentions{" "}
475
- <span className="px-1 py-0.5 bg-amber-500 font-medium text-amber-800 border border-amber-800 text-xs rounded-lg">
476
- Developer Docs
477
- </span>
478
- on LinkedIn
479
- <p className="text-zinc-400">•</p>
480
- <p className="text-zinc-400">3 days ago</p>
481
- </div>
482
- <div className="flex">
483
- <div className="border border-border px-1.5 py-0.5 rounded-lg">
484
- Join discussion
485
- </div>
486
- </div>
487
- </div>
488
- </div>
489
- {/* Skills */ }
490
- < div className = "flex flex-row items-start justify-start text-sm text-zinc-700 dark:text-zinc-200" >
491
- < div className = "flex gap-x-2 items-center w-32 min-w-32 max-w-32 text-zinc-500 dark:text-zinc-400" >
492
- < GraduationCap width = { 18 } />
493
- < p > Skills</ p >
494
- </ div >
495
-
496
- < div className = "w-full flex flex-row items-start justify-between pt-1" >
497
- < p
498
- className = { `-ms-1.5 px-1.5 rounded-md flex-1 cursor-pointer -mr-4 pe-8 ${
499
- expandedSkillIndex === index ? "" : "line-clamp-1" // Apply line-clamp only when not expanded
500
- } `}
501
- onClick = { ( ) => toggleSkills ( index ) } // Toggle state for this user
502
- >
503
- { expandedSkillIndex === index
504
- ? // If expanded, show all skills
505
- contact . skills && contact . skills . length > 0
506
- ? icp
507
- ? bringMatchesForward (
508
- contact . skills ,
509
- icp . tool . include
510
- )
511
- : contact . skills . join ( " . " )
512
- : "n/a"
513
- : // If not expanded, show truncated version
514
- contact . skills && contact . skills . length > 0
515
- ? icp
516
- ? bringMatchesForward (
517
- contact . skills ,
518
- icp . tool . include
519
- )
520
- : contact . skills . slice ( 0 , 1 ) . join ( " . " )
521
- : "n/a" }
522
- </ p >
523
- { contact . skills && contact . skills . length > 3 && (
524
- < button
525
- className = "ml-2 text-primary hover:underline"
526
- onClick = { ( ) => toggleSkills ( index ) } // Toggle state for this user
527
- >
528
- { expandedSkillIndex === index
529
- ? "Show Less"
530
- : "Show All" }
531
- </ button >
532
- ) }
533
- </ div >
534
- </ div >
535
428
</ div >
536
429
</ AccordionContent >
537
430
</ AccordionItem >
0 commit comments