kyd-shared-badge 0.3.49 → 0.3.51
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
|
@@ -179,7 +179,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
|
|
|
179
179
|
setActiveTab(t.key);
|
|
180
180
|
try { if (typeof window !== 'undefined') window.history.replaceState(null, '', `#${t.key}`); } catch {}
|
|
181
181
|
}}
|
|
182
|
-
className={`px-3 sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 ${activeTab === t.key ? 'font-semibold' : ''}`}
|
|
182
|
+
className={`px-3 sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 cursor-pointer ${activeTab === t.key ? 'font-semibold' : ''}`}
|
|
183
183
|
style={{
|
|
184
184
|
color: 'var(--text-main)',
|
|
185
185
|
background: activeTab === t.key ? 'var(--content-card-background)' : 'transparent',
|
|
@@ -95,17 +95,18 @@ const CategoryBars: React.FC<CategoryBarsProps> = ({
|
|
|
95
95
|
aria-label={`Jump to ${category} in Appendix`}
|
|
96
96
|
>
|
|
97
97
|
{/* signed fill originating from center */}
|
|
98
|
-
<div className="absolute top-0 h-full" style={{ left, width: `${fillWidth}%`, backgroundColor: isNegative ? `var(--status-negative, ${red})` : `var(--status-positive, ${green})
|
|
99
|
-
{/* role target overlay: positive side only, dashed outline */}
|
|
98
|
+
<div className="absolute top-0 h-full" style={{ left, width: `${fillWidth}%`, backgroundColor: isNegative ? `var(--status-negative, ${red})` : `var(--status-positive, ${green})`, zIndex: 1 }} />
|
|
99
|
+
{/* role target overlay: positive side only, dashed outline (always above fill) */}
|
|
100
100
|
{hasTarget && (
|
|
101
101
|
<div
|
|
102
102
|
className="absolute top-0 h-full"
|
|
103
103
|
style={{
|
|
104
104
|
left: '50%',
|
|
105
105
|
width: `${targetWidth}%`,
|
|
106
|
-
borderTop: '2px dashed
|
|
107
|
-
borderBottom: '2px dashed
|
|
108
|
-
opacity:
|
|
106
|
+
borderTop: '2px dashed #000',
|
|
107
|
+
borderBottom: '2px dashed #000',
|
|
108
|
+
opacity: 1,
|
|
109
|
+
zIndex: 2,
|
|
109
110
|
}}
|
|
110
111
|
aria-hidden="true"
|
|
111
112
|
/>
|
package/src/types.ts
CHANGED
|
@@ -11,16 +11,8 @@ export type Provider = {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type AssessmentSummary = {
|
|
15
|
-
badgeId: string;
|
|
16
|
-
status: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
assessmentError?: string;
|
|
20
|
-
kyd_self_check_score?: number;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
14
|
export interface PublicBadgeData {
|
|
15
|
+
status: string;
|
|
24
16
|
badgeId: string;
|
|
25
17
|
developerName?: string;
|
|
26
18
|
assessmentResult: AssessmentResult;
|
|
@@ -33,34 +25,26 @@ export interface PublicBadgeData {
|
|
|
33
25
|
observedAt?: string;
|
|
34
26
|
}[];
|
|
35
27
|
optOutScreening?: boolean;
|
|
36
|
-
isPublic
|
|
28
|
+
isPublic: boolean;
|
|
37
29
|
companyName?: string;
|
|
30
|
+
providersToReconnect?: string[];
|
|
38
31
|
}
|
|
39
32
|
|
|
40
|
-
export type VerifiedBadge = {
|
|
41
|
-
badgeName: string;
|
|
42
|
-
issuedOn: string;
|
|
43
|
-
issuerName: string;
|
|
44
|
-
recipientName: string;
|
|
45
|
-
url: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
33
|
export type User = {
|
|
49
34
|
userId: string;
|
|
50
35
|
name: string;
|
|
51
36
|
email: string;
|
|
52
37
|
fullName:string;
|
|
53
38
|
profilePictureUrl?: string;
|
|
54
|
-
verifiedBadges: VerifiedBadge[];
|
|
55
39
|
assessmentStatus: 'idle' | 'in-progress' | 'completed' | 'failed' | 'pending_payment';
|
|
56
40
|
assessmentResult?: AssessmentResult;
|
|
57
41
|
assessmentError?: string;
|
|
58
42
|
assessmentUpdatedAt?: string;
|
|
59
43
|
latestBadgeId?: string;
|
|
60
44
|
latestBadgeImageUrl?: string;
|
|
61
|
-
|
|
62
|
-
assessments: AssessmentSummary[];
|
|
45
|
+
assessments: PublicBadgeData[];
|
|
63
46
|
connectedAccounts?: { name: string; url: string | null; handle: string | null; observedAt?: string }[];
|
|
47
|
+
userPendingRetryBadgeId?: string;
|
|
64
48
|
};
|
|
65
49
|
|
|
66
50
|
export interface SummaryScore {
|
|
@@ -216,12 +200,6 @@ export interface AssessmentResult {
|
|
|
216
200
|
findings_by_repo?: Record<string, Array<{ file_path?: string; snippet?: string; reason?: string }>>;
|
|
217
201
|
};
|
|
218
202
|
key_skills?: string[];
|
|
219
|
-
summary_scores?: {
|
|
220
|
-
developer_trust?: SummaryScore;
|
|
221
|
-
risk_score?: SummaryScore;
|
|
222
|
-
kyd_self_check?: SummaryScore;
|
|
223
|
-
ai_usage?: SummaryScore;
|
|
224
|
-
};
|
|
225
203
|
// Deprecated: previously per-provider narrative and datapoints
|
|
226
204
|
provider_insights?: {
|
|
227
205
|
[provider: string]: ProviderInsight;
|