Skip to content

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

fix(cos): label the per-app toggle Enabled, not Run

Adam Eivydf8203084c83
diff --git a/client/src/components/apps/tabs/AutomationTab.jsx b/client/src/components/apps/tabs/AutomationTab.jsx
index 454ff132ff..ac819a2066 100644
--- a/client/src/components/apps/tabs/AutomationTab.jsx
+++ b/client/src/components/apps/tabs/AutomationTab.jsx
@@ -256,19 +256,22 @@ export default function AutomationTab({ appId, appName }) {
<div key={taskType} className="bg-port-card border border-port-border rounded-lg p-3 space-y-2">
{/* Row 1: name + toggle + configure + run now */}
<div className="flex items-center gap-3">
+ {/* Labelled "Enabled", not "Run" — the row already has a Run
+ (trigger now) button, and this switch is the on/off state
+ that gates both the schedule and that button. */}
<span
className="flex items-center gap-1.5 shrink-0"
title={isEnabled
? `${taskType} runs for this app on the schedule below. Turn off to stop scheduling it.`
: `${taskType} does not run for this app. Turn on to schedule it.`}
>
- <span className="text-[10px] uppercase tracking-wide text-gray-500">Run</span>
+ <span className="text-[10px] uppercase tracking-wide text-gray-500">Enabled</span>
<ToggleSwitch
enabled={isEnabled}
onChange={() => handleToggle(taskType, isEnabled)}
size="sm"
activeColor="bg-port-success"
- ariaLabel={`Run ${taskType} for this app: ${isEnabled ? 'on' : 'off'}`}
+ ariaLabel={`${taskType} enabled for this app: ${isEnabled ? 'on' : 'off'}`}
/>
</span>
<div className="flex-1 min-w-0">
diff --git a/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx b/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
index ca25f45e2d..9963c95919 100644
--- a/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
+++ b/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
@@ -16,8 +16,8 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
// "use my overrides" flag — every other control on the row is inert until it
// is on. Say so in the accessible name and the tooltip, since the switch
// itself carries no visible state text.
- const runToggleLabel = `Run ${taskType} for ${app.name}: ${isEnabled ? 'on' : 'off'}`;
- const runToggleTitle = isEnabled
+ const enabledToggleLabel = `${taskType} enabled for ${app.name}: ${isEnabled ? 'on' : 'off'}`;
+ const enabledToggleTitle = isEnabled
? `${taskType} runs for ${app.name} on the schedule set here. Turn off to stop scheduling it for this app.`
: `${taskType} does not run for ${app.name}. Turn on to schedule it for this app.`;
const currentInterval = override?.interval || null;
@@ -113,15 +113,15 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
}
);
- const runToggle = (
+ const enabledToggle = (
<>
- <span className="text-[10px] uppercase tracking-wide text-gray-500">Run</span>
+ <span className="text-[10px] uppercase tracking-wide text-gray-500">Enabled</span>
<ToggleSwitch
enabled={isEnabled}
onChange={handleToggle}
disabled={updating}
size="sm"
- ariaLabel={runToggleLabel}
+ ariaLabel={enabledToggleLabel}
/>
</>
);
@@ -131,7 +131,7 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
<div className="flex items-center gap-2 min-w-0 w-full sm:w-auto sm:flex-1">
<AppIcon icon={app.icon || 'package'} appId={app.id} hasAppIcon={!!app.appIconPath} size={16} className="text-gray-400 shrink-0" />
<span className="text-sm text-white truncate flex-1">{app.name}</span>
- <div className="sm:hidden flex items-center gap-1.5 shrink-0" title={runToggleTitle}>{runToggle}</div>
+ <div className="sm:hidden flex items-center gap-1.5 shrink-0" title={enabledToggleTitle}>{enabledToggle}</div>
</div>
<div className="flex items-center gap-2 flex-wrap">
@@ -316,7 +316,7 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
</select>
)}
- <div className="hidden sm:flex items-center gap-1.5" title={runToggleTitle}>{runToggle}</div>
+ <div className="hidden sm:flex items-center gap-1.5" title={enabledToggleTitle}>{enabledToggle}</div>
</div>
</div>
diff --git a/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx b/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
index 4e36833f19..ac319df612 100644
--- a/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
+++ b/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
@@ -278,7 +278,7 @@ describe('AppOverrideRow — per-app provider pin', () => {
});
});
-describe('AppOverrideRow — run toggle', () => {
+describe('AppOverrideRow — enabled toggle', () => {
// The switch is what turns the scheduled task on for the app; it is NOT an
// "apply my overrides" flag. It carries no visible on/off text, so the
// accessible name has to say which task, which app, and the current state.
@@ -286,13 +286,13 @@ describe('AppOverrideRow — run toggle', () => {
// are asserted rather than indexing into the list.
it('names the task, the app, and the current state on every slot', () => {
renderRow({ taskType: 'feature-ideas' });
- const off = screen.getAllByRole('switch', { name: 'Run feature-ideas for Acme: off' });
+ const off = screen.getAllByRole('switch', { name: 'feature-ideas enabled for Acme: off' });
expect(off).toHaveLength(2);
off.forEach(sw => expect(sw).toHaveAttribute('aria-checked', 'false'));
cleanup();
renderRow({ taskType: 'feature-ideas', override: { enabled: true } });
- const on = screen.getAllByRole('switch', { name: 'Run feature-ideas for Acme: on' });
+ const on = screen.getAllByRole('switch', { name: 'feature-ideas enabled for Acme: on' });
expect(on).toHaveLength(2);
on.forEach(sw => expect(sw).toHaveAttribute('aria-checked', 'true'));
});
@@ -300,7 +300,7 @@ describe('AppOverrideRow — run toggle', () => {
it('enables the task for the app while preserving its interval override', async () => {
const onUpdate = renderRow({ override: { enabled: false, interval: 'on-demand' } });
await act(async () => {
- fireEvent.click(screen.getAllByRole('switch', { name: 'Run feature-ideas for Acme: off' })[0]);
+ fireEvent.click(screen.getAllByRole('switch', { name: 'feature-ideas enabled for Acme: off' })[0]);
});
expect(onUpdate).toHaveBeenCalledWith('app-1', 'feature-ideas', { enabled: true, interval: 'on-demand' });
});