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: hide completed runs and space action links in quality runner
Adam Eivy7a86750ed60b
diff --git a/client/src/components/apps/AppQualityRunner.jsx b/client/src/components/apps/AppQualityRunner.jsxindex ddd7b3df2e..8c92d347f7 100644--- a/client/src/components/apps/AppQualityRunner.jsx+++ b/client/src/components/apps/AppQualityRunner.jsx@@ -135,17 +135,19 @@ export default function AppQualityRunner({ app, children }) {emptyProviderOption="Select a subscription provider" emptyModelOption="Select a model" includeDefaultModel highlightToolUse /><p className="text-xs text-gray-400">Batch execution: selected checks run one after another. A separately launched batch can run in parallel. {mode === 'file-issues' && 'Findings become issues; no fixes.'}</p><details className="text-xs"><summary className="cursor-pointer text-port-accent">Selected checks ({taskTypes.length})</summary><p className="mt-1">{selectedCategories.map(category => category.label).join(', ') || emptySelectionMessage}</p></details>- <button type="button" onClick={start} disabled={busy || picker.loading || !picker.selectedProviderId || !picker.selectedModel || !taskTypes.length || app.quality?.unavailable}- className="px-3 py-2 rounded bg-port-accent text-port-bg text-sm font-medium disabled:opacity-50">{taskTypes.length === 1 ? 'Run now' : `Run ${taskTypes.length} checks now`}</button>+ <div className="flex flex-wrap items-center gap-3">+ <button type="button" onClick={start} disabled={busy || picker.loading || !picker.selectedProviderId || !picker.selectedModel || !taskTypes.length || app.quality?.unavailable}+ className="px-3 py-2 rounded bg-port-accent text-port-bg text-sm font-medium disabled:opacity-50">{taskTypes.length === 1 ? 'Run now' : `Run ${taskTypes.length} checks now`}</button>+ <button type="button" className="text-xs text-port-accent" onClick={() => setParams(previous => {+ const next = new URLSearchParams(previous);+ if (showArchived) next.delete('qualityHistory'); else next.set('qualityHistory', 'archived');+ return next;+ })}>{showArchived ? 'View current runs' : `View archived runs (${formatCount(runs.filter(run => run.archivedAt).length)})`}</button>+ </div>{(loading || loadError) && <p className="text-xs" role="status">{loadError ? 'Runner status is unavailable.' : 'Loading runner status…'} <button type="button" className="text-port-accent" onClick={loadRuns}>Retry</button></p>}{error && <p role="alert" className="text-sm text-port-error">{error}</p>}- <button type="button" className="text-xs text-port-accent" onClick={() => setParams(previous => {- const next = new URLSearchParams(previous);- if (showArchived) next.delete('qualityHistory'); else next.set('qualityHistory', 'archived');- return next;- })}>{showArchived ? 'View current runs' : `View archived runs (${formatCount(runs.filter(run => run.archivedAt).length)})`}</button>{showArchived && <p className="text-xs text-gray-400">Archived history retains evidence and findings. Restoring a card does not restart its run.</p>}- {visibleRuns.filter((run, index) => showArchived || run.status === 'running' || run.auditDepth === 'deep' || index === 0).map(run => <div key={run.id} className="space-y-2">+ {visibleRuns.filter((run, index) => showArchived || (run.status !== 'completed' && (run.status === 'running' || run.auditDepth === 'deep' || index === 0))).map(run => <div key={run.id} className="space-y-2"><MaintenanceRunStatus run={run} />{run.reason && !(run.auditDepth === 'deep' && !run.auditWorkflow) && <p className="text-xs break-words">{run.reason} <Link className="text-port-accent underline" to="/cos/schedule">Open runner settings</Link></p>}{run.auditDepth === 'deep' && !run.auditWorkflow && <p className="text-xs text-gray-400">Historical exhaustive audit — evidence retained; start a new Deep run above.</p>}diff --git a/client/src/components/apps/AppQualityRunner.test.jsx b/client/src/components/apps/AppQualityRunner.test.jsxindex 75d5bff2d6..0c45833928 100644--- a/client/src/components/apps/AppQualityRunner.test.jsx+++ b/client/src/components/apps/AppQualityRunner.test.jsx@@ -299,3 +299,14 @@ it('archives and restores history without dispatch, while keeping active runs viexpect(startMaintenanceRun).not.toHaveBeenCalled();expect(stopMaintenanceRun).not.toHaveBeenCalled();});++it('does not show completed runs in current view, but displays running runs', async () => {+ const completedRun = { id: 'completed-1', appId: app.id, status: 'completed', steps: [{}, {}], reason: 'maintenance sequence complete' };+ const runningRun = { id: 'running-1', appId: app.id, status: 'running', steps: [{ id: 's1', taskRef: { taskType: 'ux' } }] };+ getMaintenanceRuns.mockResolvedValue({ runs: [runningRun, completedRun] });+ render(<MemoryRouter><AppQualityRunner app={app} /></MemoryRouter>);+ await waitFor(() => expect(screen.queryByText('Loading runner status…')).not.toBeInTheDocument());+ expect(screen.getByText(/running · 1\/1 steps · ux/)).toBeInTheDocument();+ expect(screen.queryByText(/completed · 2\/2 steps/)).not.toBeInTheDocument();+ expect(screen.queryByText(/maintenance sequence complete/)).not.toBeInTheDocument();+});