From 06ea84fd419a14371c0b8f6ff46f3519236e38e0 Mon Sep 17 00:00:00 2001 From: Sajeetharan Date: Sat, 15 Aug 2026 22:31:45 +0530 Subject: [PATCH] Revert "Fix/badge modal feedback (#160)" This reverts commit 961cfd8ea1c1492c2677b995879cd659cc17b356. --- components/BadgeSnippet.jsx | 6 +- components/DetailPanel.jsx | 11 ++-- styles/main.css | 110 +++++++++++------------------------- 3 files changed, 40 insertions(+), 87 deletions(-) diff --git a/components/BadgeSnippet.jsx b/components/BadgeSnippet.jsx index 64146d8..21c60c4 100644 --- a/components/BadgeSnippet.jsx +++ b/components/BadgeSnippet.jsx @@ -10,7 +10,7 @@ const STAT_OPTIONS = [ { value: 'stars', label: 'Stars' }, ]; -export default function BadgeSnippet({ login, siteUrl, compact = false }) { +export default function BadgeSnippet({ login, siteUrl }) { const [stat, setStat] = useState('globalRank'); const [format, setFormat] = useState('markdown'); const [copied, setCopied] = useState(false); @@ -36,7 +36,7 @@ export default function BadgeSnippet({ login, siteUrl, compact = false }) { } return ( -
+
Embeddable badge

Get your badge

@@ -79,4 +79,4 @@ export default function BadgeSnippet({ login, siteUrl, compact = false }) {

); -} \ No newline at end of file +} diff --git a/components/DetailPanel.jsx b/components/DetailPanel.jsx index fab2f08..3f5951d 100644 --- a/components/DetailPanel.jsx +++ b/components/DetailPanel.jsx @@ -5,11 +5,10 @@ import { track } from '@vercel/analytics'; import * as d3 from 'd3'; import { formatNum, formatRelativeTime, isStaleData } from '../lib/format.js'; import { DIMENSIONS, SCORE_METHODOLOGY } from '../lib/scoring.js'; -import { SOCIAL_PREVIEW_VERSION, getSiteUrl } from '../lib/site.js'; +import { SOCIAL_PREVIEW_VERSION } from '../lib/site.js'; import { classifyAgent } from '../lib/agent-class.js'; import { AI_TOOLS } from '../lib/ai-profile.js'; import SpecialTags from './SpecialTags.jsx'; -import BadgeSnippet from './BadgeSnippet.jsx'; export default function DetailPanel({ dev, onClose, onCardGenerated, claimedLogins, openCardOnMount = false, claimSuccess = false }) { const [fullData, setFullData] = useState(null); @@ -134,8 +133,8 @@ export default function DetailPanel({ dev, onClose, onCardGenerated, claimedLogi {merged.soUserId && ( StackOverflow ↗ )} - Get Badge ↗ -