kyd-shared-badge 0.2.27 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -444,18 +444,33 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
444
444
  {/* Connected Platforms */}
445
445
  <ConnectedPlatforms accounts={connected} />
446
446
 
447
- {!badgeData.optOutScreening && screening_sources && (
448
- <div className="pt-8">
449
- <h3 className={'text-2xl font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Appendix: Data Sources</h3>
450
- <div className="space-y-8">
447
+
448
+ <div className="pt-8">
449
+ <h3 className={'text-2xl font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Appendix: Data Sources</h3>
450
+ <div className="space-y-8">
451
+
452
+ {/* Skills */}
453
+ <div>
454
+ <h4 id="appendix-skills" className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Skills</h4>
455
+ <SkillsAppendixTable skillsAll={skillsAll} />
456
+ </div>
451
457
 
452
- {/* Skills */}
458
+ {/* Observations */}
459
+ {Array.isArray(graphInsights?.business_rules_all) && graphInsights.business_rules_all.length > 0 && (
453
460
  <div>
454
- <h4 id="appendix-skills" className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Skills</h4>
455
- <SkillsAppendixTable skillsAll={skillsAll} />
461
+ <h4 className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Observations</h4>
462
+ <AppendixTables
463
+ type="business_rules"
464
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
465
+ sources={graphInsights.business_rules_all as any}
466
+ searchedAt={updatedAt}
467
+ developerName={developerName || 'this developer'}
468
+ />
456
469
  </div>
457
-
458
- {/* Sanctions & Watchlists */}
470
+ )}
471
+
472
+ {/* Sanctions & Watchlists */}
473
+ {!badgeData.optOutScreening && screening_sources && (
459
474
  <div>
460
475
  <h4 className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Sanctions & Watchlists</h4>
461
476
  {(() => {
@@ -479,23 +494,10 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
479
494
  );
480
495
  })()}
481
496
  </div>
497
+ )}
482
498
 
483
- {/* Observations */}
484
- {Array.isArray(graphInsights?.business_rules_all) && graphInsights.business_rules_all.length > 0 && (
485
- <div>
486
- <h4 className={'text-lg font-bold mb-4'} style={{ color: 'var(--text-main)' }}>Observations</h4>
487
- <AppendixTables
488
- type="business_rules"
489
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
490
- sources={graphInsights.business_rules_all as any}
491
- searchedAt={updatedAt}
492
- developerName={developerName || 'this developer'}
493
- />
494
- </div>
495
- )}
496
- </div>
497
499
  </div>
498
- )}
500
+ </div>
499
501
 
500
502
  <div className={'pt-8 text-sm text-center'} style={{ color: 'var(--text-secondary)' }}>
501
503
  Report Completed: {new Date(updatedAt).toLocaleString(undefined, {
@@ -80,7 +80,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
80
80
  <p><span className={'font-semibold'} style={{ color: 'var(--text-secondary)' }}>Requested By:</span> <span style={{ color: 'var(--text-main)' }}>{developerName || 'N/A'}</span></p>
81
81
  <p><span className={'font-semibold'} style={{ color: 'var(--text-secondary)' }}>Organization:</span> <span style={{ color: 'var(--text-main)' }}>Unaffiliated</span></p>
82
82
  <p><span className={'font-semibold'} style={{ color: 'var(--text-secondary)' }}>Date Generated:</span> <span style={{ color: 'var(--text-main)' }}>{formattedDate}</span></p>
83
- <p><span className={'font-semibold'} style={{ color: 'var(--text-secondary)' }}>Report ID:</span> <span style={{ color: 'var(--text-main)' }}>{badgeId ? `${badgeId.slice(0,4)}...${badgeId.slice(-4)}` : 'N/A'}</span></p>
83
+ <p><span className={'font-semibold'} style={{ color: 'var(--text-secondary)' }}>Report ID:</span> <span style={{ color: 'var(--text-main)' }}>{badgeId || 'N/A'}</span></p>
84
84
  {Array.isArray(countries) && countries.length > 0 && (
85
85
  (() => {
86
86
  const countryNames = countries