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: make feature agent actions mobile responsive (#5193)
[._.]/ Adam Eivy0a78f99d75c7
diff --git a/client/src/components/feature-agents/OverviewTab.jsx b/client/src/components/feature-agents/OverviewTab.jsxindex b853940263..5ba18ad572 100644--- a/client/src/components/feature-agents/OverviewTab.jsx+++ b/client/src/components/feature-agents/OverviewTab.jsx@@ -9,15 +9,15 @@ export default function OverviewTab({ agent, onStart, onPause, onResume, onStop,<div className="space-y-6">{/* Status + Actions */}<div className="bg-port-card border border-port-border rounded-xl p-5">- <div className="flex items-center justify-between mb-4">- <div className="flex items-center gap-3">+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 mb-4">+ <div className="flex flex-wrap items-center gap-3"><span className={`inline-flex items-center gap-1 text-sm px-3 py-1 rounded-full font-medium ${statusColor} ${statusBg}`}>{agent.status}</span><span className={`text-sm ${PRIORITY_COLORS[agent.priority]}`}>{agent.priority} priority</span><span className="text-sm text-gray-500">{AUTONOMY_LABELS[agent.autonomyLevel] || agent.autonomyLevel}</span></div>- <div className="flex items-center gap-2">+ <div className="flex flex-wrap items-center gap-2">{agent.status === 'draft' && (<button onClick={() => onStart(agent.id)} className="flex items-center gap-1.5 px-3 py-1.5 text-sm text-port-success bg-port-success/10 hover:bg-port-success/20 rounded-lg transition-colors"><Play size={14} /> Activatediff --git a/client/src/components/feature-agents/OverviewTab.test.jsx b/client/src/components/feature-agents/OverviewTab.test.jsxnew file mode 100644index 0000000000..309a530679--- /dev/null+++ b/client/src/components/feature-agents/OverviewTab.test.jsx@@ -0,0 +1,97 @@+import { describe, expect, it, vi } from 'vitest';+import { fireEvent, render, screen } from '@testing-library/react';+import OverviewTab from './OverviewTab.jsx';++describe('OverviewTab', () => {+ const defaultAgent = {+ id: 'agent-1',+ status: 'draft',+ priority: 'medium',+ autonomyLevel: 'human-in-the-loop',+ runCount: 5,+ lastRunAt: '2026-08-27T10:00:00Z',+ schedule: { mode: 'continuous' },+ createdAt: '2026-08-01T10:00:00Z',+ persona: 'Refactoring expert',+ goals: ['Improve test coverage', 'Fix mobile responsive issues'],+ git: {+ branchName: 'feature/agent-1',+ baseBranch: 'main',+ },+ };++ it('renders status and responsive action containers for draft agent', () => {+ const onStart = vi.fn();+ const { container } = render(+ <OverviewTab agent={defaultAgent} onStart={onStart} />+ );++ expect(screen.getByText('draft')).toBeInTheDocument();+ expect(screen.getByText('medium priority')).toBeInTheDocument();++ const activateBtn = screen.getByRole('button', { name: /Activate/i });+ expect(activateBtn).toBeInTheDocument();+ fireEvent.click(activateBtn);+ expect(onStart).toHaveBeenCalledWith('agent-1');++ const header = container.querySelector('.flex.flex-col.sm\\:flex-row');+ expect(header).toBeInTheDocument();+ });++ it('renders trigger, pause, and stop actions for active agent', () => {+ const onTrigger = vi.fn();+ const onPause = vi.fn();+ const onStop = vi.fn();++ render(+ <OverviewTab+ agent={{ ...defaultAgent, status: 'active' }}+ onTrigger={onTrigger}+ onPause={onPause}+ onStop={onStop}+ />+ );++ const triggerBtn = screen.getByRole('button', { name: /Trigger Run/i });+ const pauseBtn = screen.getByRole('button', { name: /Pause/i });+ const stopBtn = screen.getByRole('button', { name: /Stop/i });++ expect(triggerBtn).toBeInTheDocument();+ expect(pauseBtn).toBeInTheDocument();+ expect(stopBtn).toBeInTheDocument();++ fireEvent.click(triggerBtn);+ expect(onTrigger).toHaveBeenCalledWith('agent-1');++ fireEvent.click(pauseBtn);+ expect(onPause).toHaveBeenCalledWith('agent-1');++ fireEvent.click(stopBtn);+ expect(onStop).toHaveBeenCalledWith('agent-1');+ });++ it('renders resume and stop actions for paused agent', () => {+ const onResume = vi.fn();+ const onStop = vi.fn();++ render(+ <OverviewTab+ agent={{ ...defaultAgent, status: 'paused' }}+ onResume={onResume}+ onStop={onStop}+ />+ );++ const resumeBtn = screen.getByRole('button', { name: /Resume/i });+ const stopBtn = screen.getByRole('button', { name: /Stop/i });++ expect(resumeBtn).toBeInTheDocument();+ expect(stopBtn).toBeInTheDocument();++ fireEvent.click(resumeBtn);+ expect(onResume).toHaveBeenCalledWith('agent-1');++ fireEvent.click(stopBtn);+ expect(onStop).toHaveBeenCalledWith('agent-1');+ });+});