Skip to content

Commit 737edbf

Browse files
committed
fix(share): improved LinkedIn badge UX and removed JSON export
- redesigned badge SVG with gradient border frame, verification seal watermark, and tighter proportions (520x720) - LinkedIn share now pre-populates post text with all 6 ATS platforms and hashtags via feed intent URL - LinkedIn profile link (linkedin.com/in/sunny-patel-30b460204) included for attribution - download filename: "Name - ATS Screener Badge - Month Day Year.png" (cross-platform safe) - removed copy share text button and JSON export button from dashboard - removed unused copied state, copyShareText function, exportResults function
1 parent b85fab7 commit 737edbf

File tree

2 files changed

+124
-197
lines changed

2 files changed

+124
-197
lines changed

src/lib/components/scoring/ScoreDashboard.svelte

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,6 @@
5151
return suggestions.slice(0, 5);
5252
});
5353
54-
// exports results as a JSON file download
55-
function exportResults() {
56-
const data = {
57-
exportedAt: new Date().toISOString(),
58-
mode: scoresStore.mode,
59-
averageScore: avgScore,
60-
passingCount: passCount,
61-
totalSystems: totalCount,
62-
results: scoresStore.results
63-
};
64-
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
65-
const url = URL.createObjectURL(blob);
66-
const a = document.createElement('a');
67-
a.href = url;
68-
a.download = `ats-scores-${new Date().toISOString().slice(0, 10)}.json`;
69-
a.click();
70-
URL.revokeObjectURL(url);
71-
}
72-
7354
// color based on average score
7455
function getAvgColor(score: number): string {
7556
if (score >= 80) return '#22c55e';
@@ -301,21 +282,6 @@
301282
</svg>
302283
Share
303284
</button>
304-
<button class="toolbar-btn" onclick={exportResults} title="Export results as JSON">
305-
<svg
306-
width="16"
307-
height="16"
308-
viewBox="0 0 24 24"
309-
fill="none"
310-
stroke="currentColor"
311-
stroke-width="2"
312-
>
313-
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
314-
<polyline points="7,10 12,15 17,10" />
315-
<line x1="12" y1="15" x2="12" y2="3" />
316-
</svg>
317-
Export
318-
</button>
319285
</div>
320286
</div>
321287

0 commit comments

Comments
 (0)