kyd-shared-badge 0.3.83 → 0.3.84

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.3.83",
3
+ "version": "0.3.84",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -27,7 +27,7 @@ import ChatWidget from './chat/ChatWidget';
27
27
  import UseCases from './components/UseCases';
28
28
  import SummaryCards from './components/SummaryCards';
29
29
  import TopContributingFactors from './components/TopContributingFactors';
30
- import AiUsageBody from './components/AiUsageBody';
30
+ // import AiUsageBody from './components/AiUsageBody';
31
31
  import SanctionsMatches from './components/SanctionsMatches';
32
32
  import AppendixContent from './components/AppendixContent';
33
33
  import { ProviderIcon, getProviderDisplayName, getProviderTooltipCopy, getCategoryTooltipCopy, barColor } from './utils/provider';
@@ -10,7 +10,7 @@ import BusinessRuleLink from './components/BusinessRuleLink';
10
10
  import IpRiskAnalysisDisplay from './components/IpRiskAnalysisDisplay';
11
11
  import GraphInsights from './components/GraphInsights';
12
12
  import ConnectedPlatforms from './components/ConnectedPlatforms';
13
- import AiIcon from './components/icons/ai';
13
+ // import AiIcon from './components/icons/ai';
14
14
  import CodeIcon from './components/icons/code';
15
15
  import RiskIcon from './components/icons/risk';
16
16
 
@@ -115,7 +115,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
115
115
  { key: 'overview', label: 'Overview' },
116
116
  { key: 'technical', label: 'KYD Technical' },
117
117
  { key: 'risk', label: 'KYD Risk' },
118
- { key: 'ai', label: 'KYD AI' },
118
+ // { key: 'ai', label: 'KYD AI' },
119
119
  { key: 'role', label: 'Role Fit & Coaching' },
120
120
  { key: 'resume', label: 'Resume' },
121
121
  { key: 'appendix', label: 'Appendix' }
@@ -164,7 +164,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
164
164
  {tabs.map(t => {
165
165
  // Map tab key to icon component
166
166
  const IconComp = (() => {
167
- if (t.key === 'ai') return AiIcon;
167
+ // if (t.key === 'ai') return AiIcon;
168
168
  if (t.key === 'technical') return CodeIcon;
169
169
  if (t.key === 'risk') return RiskIcon;
170
170
  return null;
@@ -461,14 +461,14 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
461
461
  </div>
462
462
  );
463
463
 
464
- const AiSection = () => (
465
- <div className={`${wrapperMaxWidth} mx-auto`}>
466
- <div className={'rounded-xl shadow-xl p-6 sm:p-8 mt-6 border'} style={{ backgroundColor: 'var(--content-card-background)', borderColor: 'var(--icon-button-secondary)' }}>
467
- <Reveal headless={isHeadless} as={'h4'} offsetY={8} className={'text-2xl font-semibold mb-3'} style={{ color: 'var(--text-main)' }}>KYD AI (Beta)</Reveal>
468
- <AiUsageBody ai={assessmentResult?.ai_usage_summary} />
469
- </div>
470
- </div>
471
- );
464
+ // const AiSection = () => (
465
+ // <div className={`${wrapperMaxWidth} mx-auto`}>
466
+ // <div className={'rounded-xl shadow-xl p-6 sm:p-8 mt-6 border'} style={{ backgroundColor: 'var(--content-card-background)', borderColor: 'var(--icon-button-secondary)' }}>
467
+ // <Reveal headless={isHeadless} as={'h4'} offsetY={8} className={'text-2xl font-semibold mb-3'} style={{ color: 'var(--text-main)' }}>KYD AI (Beta)</Reveal>
468
+ // <AiUsageBody ai={assessmentResult?.ai_usage_summary} />
469
+ // </div>
470
+ // </div>
471
+ // );
472
472
 
473
473
  const AppendixSection = () => (
474
474
  <div className={`${wrapperMaxWidth} mx-auto`}>
@@ -556,7 +556,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
556
556
  <RoleFitSection />
557
557
  {TechnicalSection()}
558
558
  {RiskSection()}
559
- {AiSection()}
559
+ {/* {AiSection()} */}
560
560
  {AppendixSection()}
561
561
  </>
562
562
  ) : (
@@ -566,7 +566,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
566
566
  {activeTab === 'overview' && OverviewSection()}
567
567
  {activeTab === 'technical' && TechnicalSection()}
568
568
  {activeTab === 'risk' && RiskSection()}
569
- {activeTab === 'ai' && AiSection()}
569
+ {/* {activeTab === 'ai' && AiSection()} */}
570
570
  {activeTab === 'role' && <RoleFitSection />}
571
571
  {activeTab === 'resume' && <ResumeSection />}
572
572
  {activeTab === 'appendix' && AppendixSection()}
package/src/colors.ts CHANGED
@@ -99,7 +99,7 @@ export function clampPercent(value?: number): number {
99
99
  export function matchLabelToColor(label: string): string {
100
100
  const l = (label || '').toLowerCase();
101
101
  if (l.includes('optimal') || l.includes('strong')) return green
102
- if (l.includes('moderate')) return yellow
102
+ if (l.includes('partial')) return yellow
103
103
  return red
104
104
  }
105
105