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(cos): tighten mobile header design for less space usage

Adam Eivy4d2e55600179
diff --git a/client/src/components/cos/CoSCharacter.jsx b/client/src/components/cos/CoSCharacter.jsx
index 7d6e8a52a0..3666bdd509 100644
--- a/client/src/components/cos/CoSCharacter.jsx
+++ b/client/src/components/cos/CoSCharacter.jsx
@@ -4,7 +4,7 @@ export default function CoSCharacter({ state, speaking }) {
const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;
return (
- <div className="relative w-16 h-20 sm:w-28 sm:h-36 md:w-44 md:h-56 lg:w-56 lg:h-72">
+ <div className="relative w-12 h-16 sm:w-28 sm:h-36 md:w-44 md:h-56 lg:w-56 lg:h-72">
<svg viewBox="0 0 200 240" className="cos-character w-full h-auto">
<defs>
<linearGradient id="bodyGrad" x1="0%" y1="0%" x2="100%" y2="100%">
diff --git a/client/src/components/cos/StatCard.jsx b/client/src/components/cos/StatCard.jsx
index 17d627ccc3..e88eae36d6 100644
--- a/client/src/components/cos/StatCard.jsx
+++ b/client/src/components/cos/StatCard.jsx
@@ -6,7 +6,7 @@ export default function StatCard({ label, value, icon, active, activeLabel, comp
<div
role="group"
aria-label={ariaLabel}
- className={`bg-port-card/80 border rounded-lg px-3 py-2 flex items-center gap-3 ${
+ className={`bg-port-card/80 border rounded px-2 py-1.5 flex items-center gap-2 ${
active ? 'border-port-accent shadow-md shadow-port-accent/20' : 'border-port-border'
}`}
>
@@ -14,8 +14,8 @@ export default function StatCard({ label, value, icon, active, activeLabel, comp
{icon}
</div>
<div className="flex-1 min-w-0">
- <div className="text-xs text-gray-500 truncate">{label}</div>
- <div className="text-base font-bold text-white">{value}</div>
+ <div className="text-[10px] text-gray-500 truncate">{label}</div>
+ <div className="text-sm font-bold text-white">{value}</div>
</div>
</div>
);
diff --git a/client/src/components/cos/StateLabel.jsx b/client/src/components/cos/StateLabel.jsx
index 64b34f2826..aef58086a0 100644
--- a/client/src/components/cos/StateLabel.jsx
+++ b/client/src/components/cos/StateLabel.jsx
@@ -6,13 +6,13 @@ export default function StateLabel({ state, compact = false }) {
if (compact) {
return (
<div
- className="flex items-center gap-1.5 px-2 py-1 rounded-full font-mono text-xs"
+ className="flex items-center gap-1 px-1.5 py-0.5 rounded-full font-mono text-[10px]"
style={{
background: 'rgba(15, 23, 42, 0.8)',
border: `1px solid ${stateConfig.color}`
}}
>
- <span className="text-sm">{stateConfig.icon}</span>
+ <span className="text-xs">{stateConfig.icon}</span>
<span className="text-gray-100">{stateConfig.label}</span>
</div>
);
@@ -20,14 +20,14 @@ export default function StateLabel({ state, compact = false }) {
return (
<div
- className="flex items-center gap-2 px-4 py-2 rounded-full mt-4 font-mono text-xs"
+ className="flex items-center gap-1 sm:gap-2 px-2 sm:px-4 py-1 sm:py-2 rounded-full mt-1 sm:mt-4 font-mono text-[10px] sm:text-xs"
style={{
background: 'rgba(15, 23, 42, 0.8)',
border: `1px solid ${stateConfig.color}`,
boxShadow: `0 0 20px rgba(99, 102, 241, 0.2)`
}}
>
- <span className="text-base">{stateConfig.icon}</span>
+ <span className="text-xs sm:text-base">{stateConfig.icon}</span>
<span className="text-gray-100">{stateConfig.label}</span>
</div>
);
diff --git a/client/src/pages/ChiefOfStaff.jsx b/client/src/pages/ChiefOfStaff.jsx
index 6465c81b13..e4233d4177 100644
--- a/client/src/pages/ChiefOfStaff.jsx
+++ b/client/src/pages/ChiefOfStaff.jsx
@@ -328,13 +328,13 @@ export default function ChiefOfStaff() {
{/* Mobile Collapse Toggle Header */}
<button
onClick={() => setAgentPanelCollapsed(!agentPanelCollapsed)}
- className="lg:hidden flex items-center justify-between w-full px-4 py-3 bg-slate-900/60 border-b border-indigo-500/20 min-h-[44px]"
+ className="lg:hidden flex items-center justify-between w-full px-3 py-2 bg-slate-900/60 border-b border-indigo-500/20 min-h-[40px]"
aria-expanded={!agentPanelCollapsed}
aria-controls="cos-agent-panel"
>
- <div className="flex items-center gap-3">
+ <div className="flex items-center gap-2">
<h1
- className="text-lg font-bold"
+ className="text-base font-bold"
style={{
background: 'linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4)',
WebkitBackgroundClip: 'text',
@@ -342,13 +342,13 @@ export default function ChiefOfStaff() {
backgroundClip: 'text'
}}
>
- Chief of Staff
+ CoS
</h1>
<StatusIndicator running={status?.running} />
</div>
- <div className="flex items-center gap-2 text-gray-400">
+ <div className="flex items-center gap-1.5 text-gray-400">
<StateLabel state={agentState} compact />
- {agentPanelCollapsed ? <ChevronDown size={20} /> : <ChevronUp size={20} />}
+ {agentPanelCollapsed ? <ChevronDown size={18} /> : <ChevronUp size={18} />}
</div>
</button>
@@ -369,7 +369,7 @@ export default function ChiefOfStaff() {
/>
{/* Avatar Column - half width on mobile, full on desktop */}
- <div className="flex-1 lg:flex-none flex flex-col items-center p-4 lg:p-8 relative z-10">
+ <div className="flex-1 lg:flex-none flex flex-col items-center p-2 lg:p-8 relative z-10">
<div className="hidden lg:block text-sm font-semibold tracking-widest uppercase text-slate-400 mb-1 font-mono">
Digital Assistant
</div>
@@ -395,32 +395,31 @@ export default function ChiefOfStaff() {
</div>
{/* Control Buttons */}
- <div className="flex items-center gap-2 sm:gap-3 mt-3 lg:mt-6">
+ <div className="flex items-center gap-1.5 sm:gap-3 mt-2 lg:mt-6">
{status?.running ? (
<button
onClick={handleStop}
- className="flex items-center gap-1 sm:gap-2 px-2 sm:px-4 py-1.5 sm:py-2 text-sm sm:text-base bg-red-500/20 hover:bg-red-500/30 text-red-400 rounded-lg transition-colors min-h-[40px]"
+ className="flex items-center gap-1 sm:gap-2 px-2 sm:px-4 py-1 sm:py-2 text-xs sm:text-base bg-red-500/20 hover:bg-red-500/30 text-red-400 rounded-lg transition-colors min-h-[40px]"
aria-label="Stop Chief of Staff agent"
>
- <Square size={14} className="sm:w-4 sm:h-4" aria-hidden="true" />
+ <Square size={12} className="sm:w-4 sm:h-4" aria-hidden="true" />
Stop
</button>
) : (
<button
onClick={handleStart}
- className="flex items-center gap-1 sm:gap-2 px-2 sm:px-4 py-1.5 sm:py-2 text-sm sm:text-base bg-emerald-500/20 hover:bg-emerald-500/30 text-emerald-400 rounded-lg transition-colors min-h-[40px]"
+ className="flex items-center gap-1 sm:gap-2 px-2 sm:px-4 py-1 sm:py-2 text-xs sm:text-base bg-emerald-500/20 hover:bg-emerald-500/30 text-emerald-400 rounded-lg transition-colors min-h-[40px]"
aria-label="Start Chief of Staff agent"
>
- <Play size={14} className="sm:w-4 sm:h-4" aria-hidden="true" />
+ <Play size={12} className="sm:w-4 sm:h-4" aria-hidden="true" />
Start
</button>
)}
- <StatusIndicator running={status?.running} />
</div>
</div>
{/* Mobile Stats Column - only visible on mobile */}
- <div className="flex-1 flex flex-col justify-center gap-2 p-3 lg:hidden relative z-10">
+ <div className="flex-1 flex flex-col justify-center gap-1.5 p-2 lg:hidden relative z-10">
<StatCard
label="Active"
value={activeAgentCount}