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: load app quality only in views that display it
[._.]/ Adam Eivy559817485731
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsxindex 4c3ab29274..19d6ab3c03 100644--- a/client/src/components/apps/AppDetailView.jsx+++ b/client/src/components/apps/AppDetailView.jsx@@ -52,7 +52,7 @@ export default function AppDetailView() {const { features: instanceFeatures, error: instanceFeaturesError } = useInstanceFeatures();const fetchApp = useCallback(async () => {- const data = await api.getApp(appId).catch(() => null);+ const data = await api.getApp(appId, { includeQuality: true }).catch(() => null);if (!data) {setNotFound(true);setLoading(false);diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsxindex c0509f0956..b38056c44a 100644--- a/client/src/pages/Apps.jsx+++ b/client/src/pages/Apps.jsx@@ -49,7 +49,7 @@ export default function Apps() {const ticketRequestsRef = useRef({});const fetchApps = useCallback(async () => {- const data = await api.getApps().catch(() => []);+ const data = await api.getApps({ includeQuality: true }).catch(() => []);setApps(data);setLoading(false);}, []);diff --git a/client/src/pages/Dashboard.jsx b/client/src/pages/Dashboard.jsxindex 4c36cc330c..e31b5438fa 100644--- a/client/src/pages/Dashboard.jsx+++ b/client/src/pages/Dashboard.jsx@@ -106,7 +106,7 @@ export default function Dashboard() {// Apps and the remaining widgets are independent hydration streams. Health// and daily-actions in particular can involve slow subsystem/database work// that should not hold every widget behind one Promise.all barrier.- const appsRead = api.getApps()+ const appsRead = api.getApps({ includeQuality: true }).catch((err) => { setDataError(err.message); return null; }).finally(() => setAppsReadSettled(true));const secondaryRead = Promise.all([diff --git a/client/src/services/apiApps.js b/client/src/services/apiApps.jsindex f3426c2d74..fcd6a8acfd 100644--- a/client/src/services/apiApps.js+++ b/client/src/services/apiApps.js@@ -2,8 +2,8 @@ import toast from '../components/ui/Toast';import { request, API_BASE } from './apiCore.js';// Apps-export const getApps = (options) => request('/apps?includeQuality=true', options);-export const getApp = (id, options) => request(`/apps/${id}?includeQuality=true`, options);+export const getApps = ({ includeQuality = false, ...options } = {}) => request(includeQuality ? '/apps?includeQuality=true' : '/apps', options);+export const getApp = (id, { includeQuality = false, ...options } = {}) => request(includeQuality ? `/apps/${id}?includeQuality=true` : `/apps/${id}`, options);export const getAppQualityHistory = (id, days, options) => request(`/apps/${id}/quality-history?days=${days}`, { silent: true, ...options });// Managed checkout topology: returns sanitized local/fork/upstream revision// state without exposing machine-local repo paths.diff --git a/client/src/services/apiApps.test.js b/client/src/services/apiApps.test.jsindex defd77b68f..a5e1b71417 100644--- a/client/src/services/apiApps.test.js+++ b/client/src/services/apiApps.test.js@@ -5,7 +5,7 @@ vi.mock('../components/ui/Toast', () => ({}));import toast from '../components/ui/Toast';-import { handleSelfRestart } from './apiApps';+import { handleSelfRestart, getApps, getApp } from './apiApps';beforeEach(() => {vi.useFakeTimers();@@ -54,3 +54,18 @@ describe('handleSelfRestart', () => {);});});++it('requests quality only for opted-in views and preserves caller request options', async () => {+ const fetch = vi.fn().mockResolvedValue({ ok: true, json: async () => [] });+ vi.stubGlobal('fetch', fetch);+ const signal = new AbortController().signal;+ await getApps();+ await getApp('portos-default');+ await getApps({ includeQuality: true, signal });+ await getApp('portos-default', { includeQuality: true, signal });+ expect(fetch.mock.calls.map(([url]) => url)).toEqual([+ '/api/apps', '/api/apps/portos-default', '/api/apps?includeQuality=true', '/api/apps/portos-default?includeQuality=true',+ ]);+ expect(fetch.mock.calls[2][1]).toMatchObject({ signal });+ expect(fetch.mock.calls[2][1]).not.toHaveProperty('includeQuality');+});