Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): distinguish plugin action buttons from passive state (#417)
Yudhi Armyndharis17e774753b4f
diff --git a/dashboard/src/pages/Plugins.css b/dashboard/src/pages/Plugins.cssindex f73abada4..f2ad41fa5 100644--- a/dashboard/src/pages/Plugins.css+++ b/dashboard/src/pages/Plugins.css@@ -284,14 +284,17 @@transition: all 0.2s;}+/* Positive action (Enable / Activate): the one solid brand-green CTA, so an action never reads+ the same as the passive "Active" state below. */.btn-toggle.enable {- background: rgba(34, 197, 94, 0.1);- border: 1px solid rgba(34, 197, 94, 0.3);- color: #22c55e;+ background: var(--primary, #25d366);+ border: 1px solid var(--primary, #25d366);+ color: #fff;}.btn-toggle.enable:hover {- background: rgba(34, 197, 94, 0.2);+ background: #16a34a;+ border-color: #16a34a;}.btn-toggle.disable {@@ -309,6 +312,8 @@cursor: not-allowed;}+/* Passive states (Active / Required) are NOT actions — render them as quiet neutral chips, with+ only a small green check as the "it's on" signal, so they're clearly distinct from the green CTA. */.btn-required {flex: 1;display: flex;@@ -316,15 +321,19 @@justify-content: center;gap: 0.5rem;padding: 0.625rem 1rem;- background: rgba(34, 197, 94, 0.15);- border: 1px solid rgba(34, 197, 94, 0.4);- color: #16a34a;+ background: var(--bg-light);+ border: 1px solid var(--border);+ color: var(--text-muted);font-size: 0.875rem;font-weight: 600;border-radius: 8px;cursor: default;}+.btn-required svg {+ color: var(--text-muted);+}+.btn-active {flex: 1;display: flex;@@ -332,15 +341,19 @@justify-content: center;gap: 0.5rem;padding: 0.625rem 1rem;- background: rgba(34, 197, 94, 0.1);- border: 1px solid rgba(34, 197, 94, 0.3);- color: #22c55e;+ background: var(--bg-light);+ border: 1px solid var(--border);+ color: var(--text-secondary);font-size: 0.875rem;font-weight: 500;border-radius: 8px;cursor: default;}+.btn-active svg {+ color: #16a34a;+}+.btn-action {width: 36px;height: 36px;