From 1e25b836ab677777646862342fac930500eaaeb1 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Jan 2026 14:27:33 +0000 Subject: [PATCH] fix(nip34): Use warning color for closed status instead of destructive - Change closed status from red (destructive) to orange (warning) - Improve dark theme status colors contrast (warning: 38 92% 60%) - Less aggressive visual for closed issues/patches/PRs https://claude.ai/code/session_01C6Lty4k9pKxdwnYUCcpzV2 --- src/components/nostr/StatusIndicator.tsx | 8 ++++---- src/index.css | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/nostr/StatusIndicator.tsx b/src/components/nostr/StatusIndicator.tsx index 950f29c..089fc19 100644 --- a/src/components/nostr/StatusIndicator.tsx +++ b/src/components/nostr/StatusIndicator.tsx @@ -35,8 +35,8 @@ function getStatusColorClass(kind: number): string { return "text-foreground"; case 1631: // Resolved/Merged - positive return "text-accent"; - case 1632: // Closed - negative - return "text-destructive"; + case 1632: // Closed - warning (less aggressive than destructive) + return "text-warning"; case 1633: // Draft - muted return "text-muted-foreground"; default: @@ -54,8 +54,8 @@ function getStatusBadgeClasses(kind: number): string { return "bg-muted/50 text-foreground border-border"; case 1631: // Resolved/Merged - positive return "bg-accent/20 text-accent border-accent/30"; - case 1632: // Closed - negative - return "bg-destructive/20 text-destructive border-destructive/30"; + case 1632: // Closed - warning (less aggressive than destructive) + return "bg-warning/20 text-warning border-warning/30"; case 1633: // Draft - muted return "bg-muted text-muted-foreground border-muted-foreground/30"; default: diff --git a/src/index.css b/src/index.css index dad26e4..a99bf46 100644 --- a/src/index.css +++ b/src/index.css @@ -122,9 +122,9 @@ --ring: 212.7 26.8% 83.9%; /* Status colors */ - --success: 142 76% 36%; - --warning: 45 93% 47%; - --info: 199 89% 48%; + --success: 142 76% 46%; + --warning: 38 92% 60%; + --info: 199 89% 58%; /* Nostr-specific colors */ --zap: 45 93% 58%;