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): make schedule tab Run on App dropdown and per-app matrix mobile-friendly

Adam Eivye2f29abe3129
diff --git a/.changelog/v0.14.x.md b/.changelog/v0.14.x.md
index 88c6914a14..22dc8209bb 100644
--- a/.changelog/v0.14.x.md
+++ b/.changelog/v0.14.x.md
@@ -50,5 +50,5 @@ This release adds Ghostty terminal theme integration and a project update workfl
- **Disabled GLSL custom shaders** — fragment shaders (bloom, nebula, rain, etc.) ran per-pixel every frame causing GPU-bound lag on terminal output; themes now use color palettes only
- **Silenced Ghostty `SEL:` debug spam** — macOS Cocoa input selector messages (`SEL: insertNewline:`, `SEL: insertTab:`, etc.) leaked to the parent terminal when `proj` launched Ghostty as a background process; redirected stdout/stderr to `/dev/null`
- **Fixed "Invalid Date" on git status page** — git commit dates used `%ci` format (space-separated timezone) which some JS engines reject; switched to `%cI` for strict ISO 8601 output
-- **Fixed "Run on App" dropdown hidden on mobile** — `overflow-hidden` on TaskTypeRow clipped the absolutely-positioned app selector; removed overflow clip and added responsive margins
-- **Fixed per-app overrides matrix not visible on mobile** — reduced left margins on small screens, added minimum table width with edge-to-edge horizontal scroll
+- **Fixed "Run on App" dropdown hidden on mobile** — the absolutely-positioned app selector opened downward and was clipped by the parent's `overflow-hidden`; changed to open upward (`bottom-full`) so it stays visible within the expanded card
+- **Fixed per-app overrides matrix not usable on mobile** — the wide table with tiny toggles required horizontal scrolling; added a mobile-specific card layout that shows each app's task type toggles vertically, while keeping the table on desktop
diff --git a/client/src/components/cos/tabs/ScheduleTab.jsx b/client/src/components/cos/tabs/ScheduleTab.jsx
index dc0e165015..820a91497f 100644
--- a/client/src/components/cos/tabs/ScheduleTab.jsx
+++ b/client/src/components/cos/tabs/ScheduleTab.jsx
@@ -353,7 +353,7 @@ function TaskTypeRow({ taskType, config, onUpdate, onTrigger, onReset, category,
<ChevronDown size={12} className={`transition-transform ${showAppSelector ? 'rotate-180' : ''}`} />
</button>
{showAppSelector && (
- <div className="absolute top-full left-0 mt-1 z-50 w-64 max-w-[calc(100vw-2rem)] max-h-64 overflow-y-auto bg-port-card border border-port-border rounded-lg shadow-lg">
+ <div className="absolute bottom-full left-0 mb-1 z-50 w-64 max-w-[calc(100vw-2rem)] max-h-64 overflow-y-auto bg-port-card border border-port-border rounded-lg shadow-lg">
<div className="p-2 border-b border-port-border">
<span className="text-xs text-gray-400">Select an app to run {taskType} on:</span>
</div>
@@ -512,7 +512,48 @@ function PerAppOverrides({ apps, taskTypes }) {
<p className="text-sm text-gray-400 ml-2 sm:ml-6">
Enable or disable specific task types per app. Disabled task types will be skipped during scheduled runs for that app.
</p>
- <div className="ml-2 sm:ml-6 overflow-x-auto -mx-2 px-2 sm:mx-0 sm:px-0">
+ {/* Mobile: card layout per app */}
+ <div className="ml-2 sm:hidden space-y-2">
+ {activeApps.map(app => {
+ const disabled = overrides[app.id] || [];
+ return (
+ <div key={app.id} className="border border-port-border rounded-lg p-3 bg-port-card/50">
+ <div className="flex items-center gap-1.5 mb-2">
+ <Package size={14} className="text-gray-500 flex-shrink-0" />
+ <span className="text-sm font-mono text-white truncate">{app.name}</span>
+ </div>
+ <div className="space-y-1.5">
+ {taskTypes.map(tt => {
+ const isEnabled = !disabled.includes(tt);
+ const isUpdating = updating === `${app.id}:${tt}`;
+ return (
+ <div key={tt} className="flex items-center justify-between py-1">
+ <span className="text-xs text-gray-400 font-mono">{tt}</span>
+ <button
+ onClick={() => handleToggle(app.id, tt, isEnabled)}
+ disabled={isUpdating}
+ className={`relative inline-flex h-5 w-9 items-center rounded-full transition-colors flex-shrink-0 ${
+ isEnabled ? 'bg-port-accent' : 'bg-gray-600'
+ } ${isUpdating ? 'opacity-50' : ''}`}
+ title={`${isEnabled ? 'Disable' : 'Enable'} ${tt} for ${app.name}`}
+ aria-label={`${isEnabled ? 'Disable' : 'Enable'} ${tt} for ${app.name}`}
+ >
+ <span
+ className={`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${
+ isEnabled ? 'translate-x-5' : 'translate-x-1'
+ }`}
+ />
+ </button>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ {/* Desktop: table layout */}
+ <div className="hidden sm:block ml-6 overflow-x-auto">
<table className="w-full text-sm min-w-[400px]">
<thead>
<tr className="border-b border-port-border">