diff --git a/src/lib/components/scoring/ScoreDashboard.svelte b/src/lib/components/scoring/ScoreDashboard.svelte index 5407707..6504de5 100644 --- a/src/lib/components/scoring/ScoreDashboard.svelte +++ b/src/lib/components/scoring/ScoreDashboard.svelte @@ -5,6 +5,7 @@ import KeywordAnalysis from './KeywordAnalysis.svelte'; import WeakestAreas from './WeakestAreas.svelte'; import ResumeStats from './ResumeStats.svelte'; + import ShareBadge from './ShareBadge.svelte'; import type { Suggestion, StructuredSuggestion } from '$engine/scorer/types'; // derived stats for the summary card header @@ -14,6 +15,7 @@ // toggle between grid cards and detailed breakdown view let activeView = $state<'cards' | 'detailed'>('cards'); + let showShareBadge = $state(false); // collapsible suggestion cards let expandedSuggestion = $state(null); @@ -49,25 +51,6 @@ return suggestions.slice(0, 5); }); - // exports results as a JSON file download - function exportResults() { - const data = { - exportedAt: new Date().toISOString(), - mode: scoresStore.mode, - averageScore: avgScore, - passingCount: passCount, - totalSystems: totalCount, - results: scoresStore.results - }; - const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' }); - const url = URL.createObjectURL(blob); - const a = document.createElement('a'); - a.href = url; - a.download = `ats-scores-${new Date().toISOString().slice(0, 10)}.json`; - a.click(); - URL.revokeObjectURL(url); - } - // color based on average score function getAvgColor(score: number): string { if (score >= 80) return '#22c55e'; @@ -281,21 +264,25 @@ - +
+ +
@@ -423,6 +410,8 @@ {/if} + +