kyd-shared-badge 0.3.83 → 0.3.85
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 +1 -1
- package/src/PrintableBadgeDisplay.tsx +1 -1
- package/src/SharedBadgeDisplay.tsx +13 -13
- package/src/colors.ts +1 -1
- package/src/connect/ConnectAccounts.tsx +4 -1
- package/src/types.ts +1 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
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('
|
|
102
|
+
if (l.includes('partial')) return yellow
|
|
103
103
|
return red
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -52,7 +52,10 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
|
|
|
52
52
|
const [showGithubManage, setShowGithubManage] = useState(false);
|
|
53
53
|
|
|
54
54
|
const apiBase = apiGatewayUrl || (typeof process !== 'undefined' ? (process.env.NEXT_PUBLIC_API_GATEWAY_URL as string) : '');
|
|
55
|
-
const connectedIds = useMemo(
|
|
55
|
+
const connectedIds = useMemo(
|
|
56
|
+
() => new Set((connected || []).map(c => (c.id ? c.id.toLowerCase() : c.name.toLowerCase()))),
|
|
57
|
+
[connected]
|
|
58
|
+
);
|
|
56
59
|
const reconnectIds = useMemo(() => new Set((needsReconnectIds || []).map(id => id.toLowerCase())), [needsReconnectIds]);
|
|
57
60
|
|
|
58
61
|
// React to upstream changes to initialProviderId (e.g., after oauth success)
|