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

feat(ambient): fullscreen live status board for wall-mounted displays

Adam Eivy20ab76577131
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 8e5bb3f8db..fbe891b6b1 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -1,6 +1,7 @@
# Unreleased Changes
## Added
+- Ambient Dashboard Mode: fullscreen live status board at `/ambient` for wall-mounted displays — shows real-time clock, death clock countdown, today's calendar events, goal progress, and agent activity with auto-refresh, auto-hiding controls, and fullscreen toggle
- Agent options (Worktree+PR, /simplify, Review Loop) configurable per-app on both the Automation tab and CoS Schedule per-app overrides
- Review Loop agent option: runs PR review feedback loop after opening a PR until checks pass
- Nicotine tracking tab in MeatSpace with consumption logging, daily totals, rolling averages, custom product quick-add buttons, inline editing, and entry history
diff --git a/PLAN.md b/PLAN.md
index 1cf21cc486..cdb83cc85c 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -38,5 +38,5 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [DONE.md]
- **Major Dependency Upgrades** — React 19, Zod 4, PM2 6, Vite 8
- **Voice Capture for Brain** — Microphone + Web Speech API transcription
- **RSS/Feed Ingestion** — Passive feed ingestion classified by interests
-- **Ambient Dashboard Mode** — Live status board for wall-mounted displays
+- [x] **Ambient Dashboard Mode** — Live status board for wall-mounted displays
- **Dynamic Skill Marketplace** — Self-generating skill templates from task patterns
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 0c4cfddca8..d40766867c 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -3,6 +3,7 @@ import { Routes, Route, Navigate } from 'react-router-dom';
import Layout from './components/Layout';
import BrailleSpinner from './components/BrailleSpinner';
import Dashboard from './pages/Dashboard';
+import Ambient from './pages/Ambient';
import Apps from './pages/Apps';
import CreateApp from './pages/CreateApp';
import Templates from './pages/Templates';
@@ -76,6 +77,7 @@ export default function App() {
return (
<Suspense fallback={<PageLoader />}>
<Routes>
+ <Route path="/ambient" element={<Ambient />} />
<Route path="/" element={<Layout />}>
<Route index element={<Dashboard />} />
<Route path="apps" element={<Apps />} />
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 1243359910..f71e769d22 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -45,6 +45,7 @@ import {
Ticket,
Network,
Flame,
+ Monitor,
Cigarette,
Skull,
HeartPulse,
@@ -83,6 +84,7 @@ const navItems = [
{ to: '/', label: 'Dashboard', icon: Home, single: true },
{ to: '/city', label: 'CyberCity', icon: Building2, single: true },
{ separator: true },
+ { to: '/ambient', label: 'Ambient', icon: Monitor, single: true },
{
label: 'AI Config',
icon: Bot,
diff --git a/client/src/pages/Ambient.jsx b/client/src/pages/Ambient.jsx
new file mode 100644
index 0000000000..5e4eb833b3
--- /dev/null
+++ b/client/src/pages/Ambient.jsx
@@ -0,0 +1,275 @@
+import { useState, useEffect, useMemo, useRef, Fragment } from 'react';
+import { useNavigate } from 'react-router-dom';
+import { ArrowLeft, Maximize, Minimize } from 'lucide-react';
+import * as api from '../services/api';
+import { useDeathClock } from '../hooks/useDeathClock';
+import { useAutoRefetch } from '../hooks/useAutoRefetch';
+import { formatClockTime, formatDateFull, formatTimeOfDay } from '../utils/formatters';
+
+const REFRESH_INTERVAL = 30000;
+const IDLE_DELAY = 3000;
+
+const COUNTDOWN_UNITS = [
+ { key: 'years', label: 'yr' },
+ { key: 'months', label: 'mo' },
+ { key: 'days', label: 'd' },
+ { key: 'hours', label: 'h' },
+ { key: 'minutes', label: 'm' },
+ { key: 'seconds', label: 's' },
+];
+
+const goalColor = (rate) =>
+ rate >= 80 ? '#22c55e' : rate >= 50 ? '#f59e0b' : '#ef4444';
+
+const goalColorClass = (rate) =>
+ rate >= 80 ? 'text-emerald-500' : rate >= 50 ? 'text-amber-500' : 'text-red-400';
+
+function toggleFullscreen() {
+ if (document.fullscreenElement) {
+ document.exitFullscreen();
+ } else {
+ document.documentElement.requestFullscreen();
+ }
+}
+
+export default function Ambient() {
+ const navigate = useNavigate();
+ const [time, setTime] = useState(new Date());
+ const [idle, setIdle] = useState(false);
+ const [isFullscreen, setIsFullscreen] = useState(false);
+ const idleTimer = useRef(null);
+
+ const { data } = useAutoRefetch(async () => {
+ const now = new Date();
+ const startOfDay = new Date(now.getFullYear(), now.getMonth(), now.getDate()).toISOString();
+ const endOfDay = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1).toISOString();
+
+ const [deathClock, cosSummary, goals, events, health] = await Promise.all([
+ api.getDeathClock().catch(() => null),
+ api.getCosQuickSummary({ silent: true }).catch(() => null),
+ api.getCosGoalProgressSummary({ silent: true }).catch(() => null),
+ api.getCalendarEvents({ start: startOfDay, end: endOfDay }).catch(() => []),
+ api.checkHealth().catch(() => null),
+ ]);
+
+ return { deathClock, cosSummary, goals, events, health };
+ }, REFRESH_INTERVAL);
+
+ useEffect(() => {
+ const interval = setInterval(() => setTime(new Date()), 1000);
+ return () => clearInterval(interval);
+ }, []);
+
+ useEffect(() => {
+ const handleKeyDown = (e) => {
+ if (e.key === 'Escape') navigate('/');
+ if (e.key === 'f' || e.key === 'F') toggleFullscreen();
+ };
+ window.addEventListener('keydown', handleKeyDown);
+ return () => window.removeEventListener('keydown', handleKeyDown);
+ }, [navigate]);
+
+ useEffect(() => {
+ const resetIdle = () => {
+ setIdle(false);
+ if (idleTimer.current) clearTimeout(idleTimer.current);
+ idleTimer.current = setTimeout(() => setIdle(true), IDLE_DELAY);
+ };
+ window.addEventListener('mousemove', resetIdle);
+ idleTimer.current = setTimeout(() => setIdle(true), IDLE_DELAY);
+ return () => {
+ window.removeEventListener('mousemove', resetIdle);
+ if (idleTimer.current) clearTimeout(idleTimer.current);
+ };
+ }, []);
+
+ useEffect(() => {
+ const handleChange = () => setIsFullscreen(!!document.fullscreenElement);
+ document.addEventListener('fullscreenchange', handleChange);
+ return () => document.removeEventListener('fullscreenchange', handleChange);
+ }, []);
+
+ const countdown = useDeathClock(data?.deathClock?.deathDate);
+
+ const cosSummary = data?.cosSummary;
+ const today = useMemo(() => cosSummary?.today || {}, [cosSummary]);
+ const streak = useMemo(() => cosSummary?.streak || {}, [cosSummary]);
+ const goals = data?.goals;
+ const deathData = data?.deathClock;
+
+ const upcomingEvents = useMemo(() => {
+ const events = Array.isArray(data?.events) ? data.events : [];
+ const now = new Date();
+ return events
+ .filter(e => new Date(e.end || e.start) >= now)
+ .slice(0, 6);
+ }, [data?.events]);
+
+ return (
+ <div className={`fixed inset-0 bg-[#050505] text-white z-[9999] overflow-hidden flex flex-col ${idle ? 'cursor-none' : ''}`}>
+ <div className={`absolute top-4 left-4 right-4 flex justify-between items-center z-10 transition-opacity duration-500 ${
+ idle ? 'opacity-0 pointer-events-none' : 'opacity-100'
+ }`}>
+ <button
+ onClick={() => navigate('/')}
+ className="flex items-center gap-2 px-3 py-2 rounded-lg bg-white/5 hover:bg-white/10 transition-colors text-sm text-gray-400 hover:text-white min-h-[40px]"
+ >
+ <ArrowLeft size={16} />
+ <span>Exit</span>
+ </button>
+ <div className="flex items-center gap-2">
+ <span className="text-xs text-gray-600">ESC to exit &middot; F for fullscreen</span>
+ <button
+ onClick={toggleFullscreen}
+ className="p-2 rounded-lg bg-white/5 hover:bg-white/10 transition-colors text-gray-400 hover:text-white min-h-[40px] min-w-[40px] flex items-center justify-center"
+ >
+ {isFullscreen ? <Minimize size={16} /> : <Maximize size={16} />}
+ </button>
+ </div>
+ </div>
+
+ <div className="flex-1 flex flex-col items-center justify-center p-8 gap-8">
+ <div className="text-center">
+ <div className="text-7xl sm:text-8xl md:text-9xl font-mono font-light tracking-wider text-white/90 tabular-nums">
+ {formatClockTime(time)}
+ </div>
+ <div className="text-lg sm:text-xl text-gray-500 mt-2 tracking-wide">
+ {formatDateFull(time)}
+ </div>
+ </div>
+
+ {countdown && !countdown.expired && deathData && (
+ <div className="text-center">
+ <div className="flex items-center justify-center gap-3 sm:gap-4 text-gray-500">
+ {COUNTDOWN_UNITS.map((unit, i) => (
+ <Fragment key={unit.key}>
+ {i > 0 && <span className="text-gray-700 text-xl font-light self-start mt-1">:</span>}
+ <CountdownUnit value={countdown[unit.key]} label={unit.label} />
+ </Fragment>
+ ))}
+ </div>
+ <div className="text-xs text-gray-700 mt-1">
+ {deathData.percentComplete}% of life elapsed
+ </div>
+ </div>
+ )}
+
+ <div className="w-full max-w-5xl grid grid-cols-1 md:grid-cols-3 gap-6 mt-4">
+ <AmbientPanel title="Today" count={upcomingEvents.length}>
+ {upcomingEvents.length === 0 ? (
+ <div className="text-gray-600 text-sm">No upcoming events</div>
+ ) : (
+ <div className="space-y-2">
+ {upcomingEvents.map((event, i) => (
+ <div key={event.id || i} className="flex items-start gap-3">
+ <div
+ className="w-1 h-6 rounded-full shrink-0 mt-0.5"
+ style={{ backgroundColor: event.color || '#3b82f6' }}
+ />
+ <div className="min-w-0">
+ <div className="text-sm text-gray-300 truncate">{event.summary || event.title}</div>
+ <div className="text-xs text-gray-600">
+ {event.allDay ? 'All day' : `${formatTimeOfDay(event.start)} – ${formatTimeOfDay(event.end)}`}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
+ </AmbientPanel>
+
+ <AmbientPanel title="Goals" count={goals?.goals?.length}>
+ {!goals?.goals?.length ? (
+ <div className="text-gray-600 text-sm">No active goals</div>
+ ) : (
+ <div className="space-y-3">
+ {goals.goals.slice(0, 5).map((goal) => (
+ <div key={goal.name}>
+ <div className="flex items-center justify-between mb-1">
+ <span className="text-sm text-gray-400 truncate">{goal.icon} {goal.name}</span>
+ {goal.successRate !== null && (
+ <span className={`text-xs tabular-nums ${goalColorClass(goal.successRate)}`}>
+ {goal.successRate}%
+ </span>
+ )}
+ </div>
+ <div className="h-1 bg-white/5 rounded-full overflow-hidden">
+ <div
+ className="h-full rounded-full transition-all duration-1000"
+ style={{
+ width: `${Math.min(100, goal.successRate || 0)}%`,
+ backgroundColor: goalColor(goal.successRate)
+ }}
+ />
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
+ </AmbientPanel>
+
+ <AmbientPanel title="Agent Activity">
+ <div className="grid grid-cols-2 gap-3">
+ <AmbientStat label="Running" value={today.running || 0} color={today.running > 0 ? '#3b82f6' : null} />
+ <AmbientStat label="Completed" value={today.completed || 0} color={today.completed > 0 ? '#22c55e' : null} />
+ <AmbientStat label="Failed" value={today.failed || 0} color={today.failed > 0 ? '#ef4444' : null} />
+ <AmbientStat label="Streak" value={`${streak.current || 0}d`} color={streak.current >= 7 ? '#f59e0b' : null} />
+ </div>
+ {cosSummary?.status?.running && (
+ <div className="mt-3 flex items-center gap-2">
+ <div className="w-2 h-2 rounded-full bg-blue-500 animate-pulse" />
+ <span className="text-xs text-gray-500">CoS is active</span>
+ </div>
+ )}
+ </AmbientPanel>
+ </div>
+ </div>
+
+ <div className={`px-6 py-3 flex justify-between items-center text-xs text-gray-700 transition-opacity duration-500 ${
+ idle ? 'opacity-30' : 'opacity-100'
+ }`}>
+ <span>PortOS Ambient</span>
+ <span className="flex items-center gap-2">
+ <span className={`w-1.5 h-1.5 rounded-full ${data?.health ? 'bg-emerald-600' : 'bg-gray-700'}`} />
+ {data?.health ? 'System Online' : 'Connecting...'}
+ </span>
+ </div>
+ </div>
+ );
+}
+
+function CountdownUnit({ value, label }) {
+ return (
+ <div className="text-center">
+ <div className="text-2xl sm:text-3xl font-mono tabular-nums text-gray-400">
+ {String(value).padStart(2, '0')}
+ </div>
+ <div className="text-[10px] text-gray-700 uppercase tracking-wider">{label}</div>
+ </div>
+ );
+}
+
+function AmbientPanel({ title, count, children }) {
+ return (
+ <div className="bg-white/[0.02] border border-white/[0.04] rounded-2xl p-5">
+ <div className="flex items-center justify-between mb-4">
+ <h3 className="text-sm font-medium text-gray-500 uppercase tracking-wider">{title}</h3>
+ {count != null && count > 0 && (
+ <span className="text-xs text-gray-600 tabular-nums">{count}</span>
+ )}
+ </div>
+ {children}
+ </div>
+ );
+}
+
+function AmbientStat({ label, value, color }) {
+ return (
+ <div className="text-center">
+ <div className="text-2xl font-light tabular-nums" style={{ color: color || '#6b7280' }}>
+ {value}
+ </div>
+ <div className="text-[10px] text-gray-700 uppercase tracking-wider">{label}</div>
+ </div>
+ );
+}
diff --git a/client/src/pages/Dashboard.jsx b/client/src/pages/Dashboard.jsx
index 00a16db176..b9ecd95001 100644
--- a/client/src/pages/Dashboard.jsx
+++ b/client/src/pages/Dashboard.jsx
@@ -12,6 +12,7 @@ import DeathClockWidget from '../components/DeathClockWidget';
import QuickBrainCapture from '../components/QuickBrainCapture';
import QuickTaskWidget from '../components/QuickTaskWidget';
import ReviewHubCard from '../components/ReviewHubCard';
+import { Monitor } from 'lucide-react';
import * as api from '../services/api';
import socket from '../services/socket';
@@ -85,11 +86,21 @@ export default function Dashboard() {
{activeApps.length} app{activeApps.length !== 1 ? 's' : ''} registered{apps.length !== activeApps.length ? ` (${apps.length - activeApps.length} archived)` : ''}
</p>
</div>
- {health && (
- <div className="text-sm text-gray-500">
- Server: <span className="text-port-success">Online</span>
- </div>
- )}
+ <div className="flex items-center gap-3">
+ {health && (
+ <div className="text-sm text-gray-500">
+ Server: <span className="text-port-success">Online</span>
+ </div>
+ )}
+ <Link
+ to="/ambient"
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-port-card border border-port-border hover:border-gray-600 transition-colors text-sm text-gray-400 hover:text-white min-h-[40px]"
+ title="Ambient display mode"
+ >
+ <Monitor size={14} />
+ <span className="hidden sm:inline">Ambient</span>
+ </Link>
+ </div>
</div>
{/* Error */}
diff --git a/client/src/utils/formatters.js b/client/src/utils/formatters.js
index 801fe1dca1..a5c06b08b6 100644
--- a/client/src/utils/formatters.js
+++ b/client/src/utils/formatters.js
@@ -50,6 +50,15 @@ export function formatDateFull(date) {
return date.toLocaleDateString([], { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' });
}
+/**
+ * Format a Date as a clock time string with seconds (e.g., "02:30:45 PM")
+ * @param {Date} date - Date object
+ * @returns {string} Formatted clock time
+ */
+export function formatClockTime(date) {
+ return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
+}
+
/**
* Format a duration in milliseconds as a human-readable string
* @param {number} ms - Duration in milliseconds