kyd-shared-badge 0.3.112 → 0.3.113

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.112",
3
+ "version": "0.3.113",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -52,7 +52,7 @@ type ChatWidgetProps = Partial<{
52
52
  // return `rgba(${r}, ${g}, ${b}, ${alpha})`;
53
53
  // };
54
54
 
55
- const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false }: { badgeData: PublicBadgeData, chatProps?: ChatWidgetProps, headless?: boolean, selfCheck?: boolean }) => {
55
+ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false, public: isPublicView = false }: { badgeData: PublicBadgeData, chatProps?: ChatWidgetProps, headless?: boolean, selfCheck?: boolean, 'public'?: boolean }) => {
56
56
  const {
57
57
  badgeId,
58
58
  developerName,
@@ -629,18 +629,22 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false
629
629
  {AppendixSection()}
630
630
  </>
631
631
  ) : (
632
- <>
633
- <TabNav />
634
- <div className={'px-2 sm:px-0 pb-2'}>
635
- {activeTab === 'overview' && OverviewSection()}
636
- {activeTab === 'technical' && TechnicalSection()}
637
- {activeTab === 'risk' && RiskSection()}
638
- {/* {activeTab === 'ai' && AiSection()} */}
639
- {activeTab === 'role' && <RoleFitSection />}
640
- {activeTab === 'resume' && <ResumeSection />}
641
- {activeTab === 'appendix' && AppendixSection()}
642
- </div>
643
- </>
632
+ !isPublicView ? (
633
+ <>
634
+ <TabNav />
635
+ <div className={'px-2 sm:px-0 pb-2'}>
636
+ {activeTab === 'overview' && OverviewSection()}
637
+ {activeTab === 'technical' && TechnicalSection()}
638
+ {activeTab === 'risk' && RiskSection()}
639
+ {/* {activeTab === 'ai' && AiSection()} */}
640
+ {activeTab === 'role' && <RoleFitSection />}
641
+ {activeTab === 'resume' && <ResumeSection />}
642
+ {activeTab === 'appendix' && AppendixSection()}
643
+ </div>
644
+ </>
645
+ ) : (
646
+ OverviewSection()
647
+ )
644
648
  )}
645
649
  {!headless && (
646
650
  <ChatWidget api={chatProps?.api || '/api/chat'} badgeId={badgeId} title={chatProps?.title} hintText={chatProps?.hintText} loginPath={chatProps?.loginPath} headerOffset={chatProps?.headerOffset} developerName={developerName} />
@@ -2,6 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { ResponsiveContainer, BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';
5
+ import { green1, green2, green5 } from '../colors';
5
6
 
6
7
  type SkillsRadarPoint = {
7
8
  axis: string;
@@ -24,9 +25,9 @@ export default function SkillsValidation({ skillsCategoryRadar, headless }: { sk
24
25
  <XAxis dataKey="axis" tick={{ fill: 'var(--text-secondary)', fontSize: 12 }} interval={0} angle={-20} textAnchor="end" height={50} />
25
26
  <YAxis domain={[0, 100]} tick={{ fill: 'var(--text-secondary)' }} />
26
27
  <Tooltip contentStyle={{ background: 'var(--content-card-background)', border: `1px solid var(--icon-button-secondary)`, color: 'var(--text-main)' }} />
27
- <Bar dataKey="observed" name="Observed" fill={'var(--bar-observed)'} isAnimationActive={!headless} />
28
- <Bar dataKey="self_reported" name="Self-reported" fill={'var(--bar-self-reported)'} isAnimationActive={!headless} />
29
- <Bar dataKey="certified" name="Certified" fill={'var(--bar-certified)'} isAnimationActive={!headless} />
28
+ <Bar dataKey="observed" name="Observed" fill={green2} isAnimationActive={!headless} stroke={'var(--icon-button-secondary)'} strokeWidth={1} />
29
+ <Bar dataKey="self_reported" name="Self-reported" fill={green5} isAnimationActive={!headless} stroke={'var(--icon-button-secondary)'} strokeWidth={1} />
30
+ <Bar dataKey="certified" name="Certified" fill={green1} isAnimationActive={!headless} stroke={'var(--icon-button-secondary)'} strokeWidth={1} />
30
31
  </BarChart>
31
32
  </ResponsiveContainer>
32
33
  </div>