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
This commit is contained in:
Claude
2026-01-23 14:27:33 +00:00
parent 329a978d00
commit 1e25b836ab
2 changed files with 7 additions and 7 deletions

View File

@@ -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:

View File

@@ -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%;