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(dashboard): slim header — glowing server status dot + app count moves above Apps widget
Adam Eivye49ac272bf4e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex cb35d82aea..7e4c4613bc 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -38,6 +38,8 @@## Fixed+- **Dashboard header trimmed — server status moved to a glowing dot, app count moved above the Apps grid.** The Dashboard header was a two-line block ("Dashboard" + "N apps registered (M archived)") plus a separate "Server: Online" pill in the action bar — three pieces of secondary status taking up vertical space above the actual widgets. Replaced the two-line title with a single-line `Dashboard ●` where the trailing dot is a 10px Tailwind-animated `port-success`/`port-error` indicator (with `animate-ping` halo + `shadow-[0_0_8px_*]` glow when online, solid red glow when the health check fails) and a `title=`/`aria-label=` tooltip exposing "Server online" / "Server offline" for hover + screen readers. The app-count subtitle moved into `AppsGridWidget` itself as a small `text-xs text-gray-500` line directly above the tile grid, so the count travels with the widget regardless of where the user drags it on the dashboard layout. Touched: `client/src/pages/Dashboard.jsx`, `client/src/components/dashboard/builtins/AppsGridWidget.jsx`.+- **App detail header — Launch + Dev UI grouped, and "Building..." active-state two-tone fixed.** The Launch (HTTPS/HTTP) and Dev UI buttons in the App detail header were rendered as three independent pills, visually unrelated despite being a single "open in browser" cluster. Wrapped them in the same `inline-flex rounded-lg overflow-hidden border` segmented-button container the Stop/Restart group uses (with `divide-x divide-port-border` between segments). The "Building..." button on mobile showed an odd two-tone yellow — the right portion appeared darker than the left — because `hover:bg-port-warning/30` continued to apply after iOS Safari's "sticky hover" combined with the `disabled:opacity-50` state, so the bg flipped between `/20 * 0.5` and `/30 * 0.5` mid-transition. Replaced every `hover:bg-X` on a `disabled`-able button with Tailwind's `enabled:hover:bg-X` modifier so hover only fires while the button is interactive (Stop/Restart/Start/Build in both `AppDetailView` and `Apps` list, plus the launch buttons for consistency). Stop and Restart buttons now also show "Stopping..." / "Restarting..." active text (parity with the existing "Starting..." / "Building..." patterns) so the user has a verbal signal to match the icon-spin. Touched: `client/src/components/apps/AppDetailView.jsx`, `client/src/pages/Apps.jsx`.- **Dashboard System Health — "0/16 apps" was always zero, and counted Xcode/iOS projects that can't run.** The widget called `getAllApps()` and filtered by `overallStatus === 'online'`, but `overallStatus` is only computed inside the `/api/apps` route's PM2 enrichment — `getAllApps()` returns the raw records, so the filter never matched and the count was always `0`. The denominator also included native projects (`xcode`, `ios-native`, `macos-native`, `swift`) that have no detectable runtime state at all. Replaced with a new `getAppStatusSummary()` helper in `services/apps.js` that groups apps by `pm2Home`, queries each unique home once, and computes `{ total, online, stopped, notStarted, unmanaged }` — `total` covers PM2-runnable apps only, while `unmanaged` separately tracks native projects. The widget tile now reads "Services" instead of "Apps", shows real running counts (e.g. `1/9` plus `+7 native`), uses "All running" instead of the confusing "Ready" fallback, and falls back to an em-dash when no PM2 apps exist (with a "N native only" subtext). A tooltip explains what's counted. Touched: `server/services/apps.js`, `server/routes/systemHealth.js`, `client/src/components/SystemHealthWidget.jsx`.diff --git a/client/src/components/dashboard/builtins/AppsGridWidget.jsx b/client/src/components/dashboard/builtins/AppsGridWidget.jsxindex 41d617505f..a7d26b1b4a 100644--- a/client/src/components/dashboard/builtins/AppsGridWidget.jsx+++ b/client/src/components/dashboard/builtins/AppsGridWidget.jsx@@ -3,7 +3,8 @@ import AppTile from '../../AppTile';import { SchematicLabel, MicroGlyph } from '../../micrographics';export default function AppsGridWidget({ dashboardState }) {- const { apps, sortedApps, refetch } = dashboardState;+ const { apps, sortedApps, activeApps, refetch } = dashboardState;+ const archivedCount = apps.length - activeApps.length;if (apps.length === 0) {return (<div className="relative bg-port-card border border-port-border rounded-xl p-8 sm:p-12 text-center">@@ -29,10 +30,15 @@ export default function AppsGridWidget({ dashboardState }) {);}return (- <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-3">- {sortedApps.map((app) => (- <AppTile key={app.id} app={app} onUpdate={refetch} />- ))}+ <div className="space-y-2">+ <p className="text-xs text-gray-500">+ {activeApps.length} app{activeApps.length !== 1 ? 's' : ''} registered{archivedCount > 0 ? ` (${archivedCount} archived)` : ''}+ </p>+ <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-3">+ {sortedApps.map((app) => (+ <AppTile key={app.id} app={app} onUpdate={refetch} />+ ))}+ </div></div>);}diff --git a/client/src/pages/Dashboard.jsx b/client/src/pages/Dashboard.jsxindex e29c5f95d0..489eb5e19d 100644--- a/client/src/pages/Dashboard.jsx+++ b/client/src/pages/Dashboard.jsx@@ -231,19 +231,23 @@ export default function Dashboard() {return (<div className="space-y-6">- <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2 sm:gap-4">- <div>- <h2 className="text-2xl font-bold text-white">Dashboard</h2>- <p className="text-gray-500 text-sm sm:text-base">- {activeApps.length} app{activeApps.length !== 1 ? 's' : ''} registered{apps.length !== activeApps.length ? ` (${apps.length - activeApps.length} archived)` : ''}- </p>- </div>+ <div className="flex flex-row items-center justify-between gap-2 sm:gap-4">+ <h2 className="flex items-center gap-2.5 text-2xl font-bold text-white">+ Dashboard+ <span+ className="relative inline-flex h-2.5 w-2.5"+ title={health ? 'Server online' : 'Server offline'}+ aria-label={health ? 'Server online' : 'Server offline'}+ >+ {health && (+ <span className="absolute inline-flex h-full w-full rounded-full bg-port-success opacity-60 animate-ping" />+ )}+ <span+ className={`relative inline-flex rounded-full h-2.5 w-2.5 ${health ? 'bg-port-success shadow-[0_0_8px_#22c55e]' : 'bg-port-error shadow-[0_0_8px_#ef4444]'}`}+ />+ </span>+ </h2><div className="flex flex-wrap items-center justify-end gap-2 sm:gap-3">- {health && (- <div className="text-sm text-gray-500">- Server: <span className="text-port-success">Online</span>- </div>- )}{layouts.length > 0 && !editingGrid && (<LayoutPickerlayouts={layouts}