Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
refactor(ui): drop the badge and button palette commentary
Sergey Kozyrenko421074e5831d
diff --git a/frontend/src/components/ui/badge.tsx b/frontend/src/components/ui/badge.tsxindex 565a1580..faa9b367 100644--- a/frontend/src/components/ui/badge.tsx+++ b/frontend/src/components/ui/badge.tsx@@ -11,17 +11,9 @@ const badgeVariants = cva(variant: 'default',},variants: {- // Colored variants carry a per-theme text shade: 700 on the light tint,- // 400 on the dark one. A shade number is not a constant lightness across- // hues, so green needs 800 — at 700 it measures 4.4991 against its tint- // and misses AA. Re-measure before changing a shade or a tint.variant: {blue: 'border-blue-500/20 bg-blue-500/10 text-blue-700 hover:bg-blue-500/20 dark:text-blue-400',default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',- // The dark fill is translucent on purpose: composited over the dark- // ground it darkens the red, which is what keeps the white foreground- // above AA (opaque it measures 3.71). Alphas differ per theme because- // the same fade lightens the red over a white ground.destructive:'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/80 dark:hover:bg-destructive/70',green: 'border-green-500/20 bg-green-500/10 text-green-800 hover:bg-green-500/20 dark:text-green-400',diff --git a/frontend/src/components/ui/button.tsx b/frontend/src/components/ui/button.tsxindex 1972d2ff..5aeb0dff 100644--- a/frontend/src/components/ui/button.tsx+++ b/frontend/src/components/ui/button.tsx@@ -24,9 +24,6 @@ const buttonVariants = cva(},variant: {default: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',- // Translucent dark fill on purpose — over the dark ground it darkens- // the red, keeping the white foreground above AA (opaque it is 3.71).- // Mirrors the destructive Badge; keep the two in step.destructive:'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 dark:bg-destructive/80 dark:hover:bg-destructive/70',ghost: 'hover:bg-accent hover:text-accent-foreground',