Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(ui): mute status badges for dark mode readability
Adam Eivyf3d60c93e4d7
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdnew file mode 100644index 0000000000..7f2f46e572--- /dev/null+++ b/.changelog/NEXT.md@@ -0,0 +1,13 @@+# Unreleased Changes++## Added++## Changed++- Status badges in ProcessesTab and StatusBadge now use muted translucent backgrounds (`bg-color/15`) with matching text colors instead of solid full-opacity fills, improving dark mode readability+- Extracted `agentOptionButtonClass()` helper to `cos/constants.js` for shared agent option toggle button styling; applied in ScheduleTab and AutomationTab+- Wrapped `AppOverrideRow` in `memo` to avoid unnecessary re-renders++## Fixed++## Removeddiff --git a/client/src/components/StatusBadge.jsx b/client/src/components/StatusBadge.jsxindex 222ae7ad80..8d4da1e5bd 100644--- a/client/src/components/StatusBadge.jsx+++ b/client/src/components/StatusBadge.jsx@@ -1,31 +1,37 @@const statusConfig = {online: {- color: 'bg-port-success',+ badge: 'bg-port-success/15 text-port-success',+ dot: 'bg-port-success',text: 'Online',pulse: true},stopped: {- color: 'bg-port-warning',+ badge: 'bg-port-warning/15 text-port-warning',+ dot: 'bg-port-warning',text: 'Stopped',pulse: false},not_started: {- color: 'bg-gray-500',+ badge: 'bg-gray-500/20 text-gray-400',+ dot: 'bg-gray-500',text: 'Offline',pulse: false},not_found: {- color: 'bg-gray-500',+ badge: 'bg-gray-500/20 text-gray-400',+ dot: 'bg-gray-500',text: 'Not Found',pulse: false},error: {- color: 'bg-port-error',+ badge: 'bg-port-error/15 text-port-error',+ dot: 'bg-port-error',text: 'Error',pulse: false},unknown: {- color: 'bg-gray-600',+ badge: 'bg-gray-600/20 text-gray-400',+ dot: 'bg-gray-600',text: 'Unknown',pulse: false}@@ -44,10 +50,10 @@ export default function StatusBadge({ status, size = 'md' }) {<spanrole="status"aria-label={`Status: ${config.text}`}- className={`inline-flex items-center gap-1.5 rounded-full font-medium text-white ${config.color} ${sizeClasses[size]}`}+ className={`inline-flex items-center gap-1.5 rounded-full font-medium ${config.badge} ${sizeClasses[size]}`}>{config.pulse && (- <span className="w-2 h-2 rounded-full bg-white animate-pulse-soft" aria-hidden="true" />+ <span className={`w-2 h-2 rounded-full ${config.dot} animate-pulse-soft`} aria-hidden="true" />)}{config.text}</span>diff --git a/client/src/components/apps/tabs/AutomationTab.jsx b/client/src/components/apps/tabs/AutomationTab.jsxindex dbff290576..9898cbca38 100644--- a/client/src/components/apps/tabs/AutomationTab.jsx+++ b/client/src/components/apps/tabs/AutomationTab.jsx@@ -5,7 +5,7 @@ import BrailleSpinner from '../../BrailleSpinner';import CronInput from '../../CronInput';import ToggleSwitch from '../../ToggleSwitch';import * as api from '../../../services/api';-import { AGENT_OPTIONS, toggleAppMetadataOverride } from '../../cos/constants';+import { AGENT_OPTIONS, toggleAppMetadataOverride, agentOptionButtonClass } from '../../cos/constants';import { isCronExpression, describeCron } from '../../../utils/cronHelpers';const INTERVAL_OPTIONS = [@@ -217,11 +217,7 @@ export default function AutomationTab({ appId, appName }) {onClick={() => handleMetaToggle(taskType, field, globalConfig.taskMetadata)}aria-pressed={effective}aria-label={`${label}: ${effective ? 'on' : 'off'}${hasOverride ? ' (app override)' : ' (inherited)'}`}- className={`text-xs px-1.5 py-0.5 rounded transition-colors ${- effective- ? hasOverride ? 'bg-port-accent/30 text-port-accent' : 'bg-port-accent/15 text-port-accent/60'- : hasOverride ? 'bg-gray-600/50 text-gray-400' : 'bg-gray-600/25 text-gray-500'- }`}+ className={`text-xs px-1.5 py-0.5 rounded transition-colors border ${agentOptionButtonClass(effective, hasOverride)}`}title={`${label}: ${effective ? 'on' : 'off'}${hasOverride ? ' (app override)' : ' (inherited)'}`}>{shortLabel}diff --git a/client/src/components/apps/tabs/ProcessesTab.jsx b/client/src/components/apps/tabs/ProcessesTab.jsxindex 5646a3f1df..10d4c23e81 100644--- a/client/src/components/apps/tabs/ProcessesTab.jsx+++ b/client/src/components/apps/tabs/ProcessesTab.jsx@@ -19,12 +19,12 @@ const formatUptime = (ms) => {return `${hours}h ${mins}m`;};-const getStatusColor = (status) => {+const getStatusClasses = (status) => {switch (status) {- case 'online': return 'bg-port-success';- case 'stopped': return 'bg-gray-500';- case 'errored': return 'bg-port-error';- default: return 'bg-port-warning';+ case 'online': return { badge: 'bg-port-success/15 text-port-success', dot: 'bg-port-success' };+ case 'stopped': return { badge: 'bg-gray-500/20 text-gray-400', dot: 'bg-gray-500' };+ case 'errored': return { badge: 'bg-port-error/15 text-port-error', dot: 'bg-port-error' };+ default: return { badge: 'bg-port-warning/15 text-port-warning', dot: 'bg-port-warning' };}};@@ -201,8 +201,8 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {<span className="font-medium text-white">{proc.name}</span></td><td className="px-4 py-3">- <span className={`inline-flex items-center gap-2 px-2 py-1 rounded text-xs ${getStatusColor(proc.status)} bg-opacity-20`}>- <span className={`w-2 h-2 rounded-full ${getStatusColor(proc.status)}`} />+ <span className={`inline-flex items-center gap-2 px-2 py-1 rounded text-xs ${getStatusClasses(proc.status).badge}`}>+ <span className={`w-2 h-2 rounded-full ${getStatusClasses(proc.status).dot}`} />{proc.status}</span></td>diff --git a/client/src/components/cos/constants.js b/client/src/components/cos/constants.jsindex 9004c6f2da..e5e2c3d644 100644--- a/client/src/components/cos/constants.js+++ b/client/src/components/cos/constants.js@@ -57,6 +57,20 @@ export const AGENT_OPTIONS = [{ field: 'reviewLoop', label: 'Review Loop', shortLabel: 'RL', description: 'After the agent opens a PR during its run, keep iterating on review feedback until checks pass. Only applies when Open PR is not enabled (manual PR creation by agent).' }];+// Returns the Tailwind className string for an agent option toggle button.+// effective: whether the option is on (global + override resolved)+// hasOverride: whether there's an explicit per-app override set+export function agentOptionButtonClass(effective, hasOverride) {+ if (effective) {+ return hasOverride+ ? 'bg-port-accent text-white border-port-accent font-semibold'+ : 'bg-port-accent/40 text-port-accent border-port-accent/50 font-semibold';+ }+ return hasOverride+ ? 'bg-gray-700 text-gray-400 border-gray-500'+ : 'bg-transparent text-gray-600 border-gray-700/50';+}+// Compute new taskMetadata after toggling a field in a per-app override.// Returns null when all overrides are cleared (inherit everything).// Enforces invariant: openPR implies useWorktree (turning on openPR forcesdiff --git a/client/src/components/cos/tabs/ScheduleTab.jsx b/client/src/components/cos/tabs/ScheduleTab.jsxindex 740ed74e4e..f5ca5c7fdc 100644--- a/client/src/components/cos/tabs/ScheduleTab.jsx+++ b/client/src/components/cos/tabs/ScheduleTab.jsx@@ -1,10 +1,10 @@-import { useState, useEffect, useCallback, useRef } from 'react';+import { useState, useEffect, useCallback, useRef, memo } from 'react';import { Play, RotateCcw, ChevronDown, ChevronRight, AlertCircle, RefreshCw, Package, Info, GitMerge } from 'lucide-react';import toast from '../../ui/Toast';import * as api from '../../../services/api';import AppIcon from '../../AppIcon';import CronInput from '../../CronInput';-import { AGENT_OPTIONS, toggleAppMetadataOverride } from '../constants';+import { AGENT_OPTIONS, toggleAppMetadataOverride, agentOptionButtonClass } from '../constants';import { isCronExpression, describeCron } from '../../../utils/cronHelpers';import ToggleSwitch from '../../ToggleSwitch';@@ -578,7 +578,7 @@ function GlobalConfigControls({ taskType, config, onUpdate, onTrigger, onReset,);}-function AppOverrideRow({ app, taskType, globalIntervalType, globalTaskMetadata, override, onUpdate }) {+const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalIntervalType, globalTaskMetadata, override, onUpdate }) {const [updating, setUpdating] = useState(false);const [cronEditing, setCronEditing] = useState(false);const isEnabled = override?.enabled === true;@@ -677,11 +677,7 @@ function AppOverrideRow({ app, taskType, globalIntervalType, globalTaskMetadata,disabled={updating}aria-pressed={effective}aria-label={`${label}: ${effective ? 'on' : 'off'}${hasOverride ? ' (app override)' : ' (inherited)'}`}- className={`text-xs px-2 py-1.5 rounded transition-colors shrink-0 min-h-[40px] min-w-[40px] ${- effective- ? hasOverride ? 'bg-port-accent/30 text-port-accent' : 'bg-port-accent/15 text-port-accent/60'- : hasOverride ? 'bg-gray-600/50 text-gray-400' : 'bg-gray-600/25 text-gray-500'- }`}+ className={`text-xs px-2 py-1.5 rounded transition-colors shrink-0 min-h-[40px] min-w-[40px] border ${agentOptionButtonClass(effective, hasOverride)}`}title={`${label}: ${effective ? 'on' : 'off'}${hasOverride ? ' (app override)' : ' (inherited)'}`}>{shortLabel}@@ -702,7 +698,7 @@ function AppOverrideRow({ app, taskType, globalIntervalType, globalTaskMetadata,</div></div>);-}+});function PerAppOverrideList({ taskType, config, apps, onUpdateOverride, onBulkToggleOverride }) {const [bulkUpdating, setBulkUpdating] = useState(false);