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
feat: add themed backgrounds to model assessment cards
[._.]/ Adam Eivya8422ac235a1
diff --git a/client/src/components/settings/LocalModelAssessments.jsx b/client/src/components/settings/LocalModelAssessments.jsxindex 71e2cf851a..ced4485137 100644--- a/client/src/components/settings/LocalModelAssessments.jsx+++ b/client/src/components/settings/LocalModelAssessments.jsx@@ -371,7 +371,7 @@ function CapabilityStrip({ capability, backend, modelId, tests, onOpen }) {function RankedRow({ entry, runtimeLabel, onRemeasure, onDelete, onSweepTunings, sweepVariants, busy, capability, capabilityTests, onOpenCapabilityTest }) {const perf = entry.performance || {};return (- <div className="border border-port-border rounded-lg p-3 space-y-2">+ <div className="bg-port-bg border border-port-border rounded-lg p-3 space-y-2"><div className="flex items-start justify-between gap-2 flex-wrap"><div className="min-w-0"><div className="flex items-center gap-2 flex-wrap">@@ -536,7 +536,7 @@ function TuningComparison({ rows, runtimeLabelFor }) {uses chars/s so estimates and missing usage do not decide the winner.</p>{rows.map((row) => (- <div key={`${row.backend}:${row.modelId}`} className="border border-port-border rounded-lg p-3 space-y-1.5">+ <div key={`${row.backend}:${row.modelId}`} className="bg-port-bg border border-port-border rounded-lg p-3 space-y-1.5"><div className="flex items-center gap-2 flex-wrap"><span className="text-xs text-white font-mono break-all">{row.modelId}</span><span className="text-[10px] text-gray-500">{runtimeLabelFor(row.backend)}</span>@@ -607,7 +607,7 @@ function OpenCodeAgentBenchmarkPanel({ results, running, onRun }) {.sort((a, b) => a.result.elapsedMs - b.result.elapsedMs)[0];return (- <div className="border border-port-border rounded-lg p-3 space-y-2">+ <div className="bg-port-bg border border-port-border rounded-lg p-3 space-y-2"><div className="flex items-center gap-1.5 text-xs text-gray-300"><Terminal size={12} className="text-port-accent" /><h3 className="font-medium">Local TUI agent-task check</h3>@@ -627,7 +627,7 @@ function OpenCodeAgentBenchmarkPanel({ results, running, onRun }) {{OPENCODE_AGENT_TARGETS.map((target) => {const result = results?.[target.backend];return (- <div key={target.backend} className="border border-port-border/70 rounded p-2 space-y-1.5">+ <div key={target.backend} className="bg-port-card border border-port-border/70 rounded p-2 space-y-1.5"><div className="text-[11px] text-gray-300">{target.label}</div><div className="text-[10px] text-gray-500 font-mono break-all">{target.modelId}</div>{result && (diff --git a/client/src/components/settings/ModelCapabilityTests.jsx b/client/src/components/settings/ModelCapabilityTests.jsxindex 8d7f6a9fed..91754fce43 100644--- a/client/src/components/settings/ModelCapabilityTests.jsx+++ b/client/src/components/settings/ModelCapabilityTests.jsx@@ -449,7 +449,7 @@ function CapabilityTestDrawer({{/* ---- gate: shown until the first run of this pairing ---- */}{!showTabs && (<>- <div className="border border-port-border rounded-lg p-3 space-y-2">+ <div className="bg-port-bg border border-port-border rounded-lg p-3 space-y-2"><h3 className="text-xs font-medium text-gray-400">What PortOS will send</h3><pre className="text-[11px] text-gray-300 whitespace-pre-wrap font-mono leading-relaxed max-h-56 overflow-y-auto">{prompt}</pre></div>@@ -569,7 +569,7 @@ function CapabilityRecommendations({ report, onOpen }) {const models = report?.models || [];const tasks = TASK_FILTERS.filter((task) => task.id !== 'all');return (- <div className="border border-port-accent/30 rounded-lg p-3 space-y-2">+ <div className="bg-port-bg border border-port-accent/30 rounded-lg p-3 space-y-2"><div className="flex items-center gap-1.5 text-xs text-gray-300"><Trophy size={12} className="text-port-accent" /><h4 className="font-medium">Evidence-based task picks</h4>@@ -584,7 +584,7 @@ function CapabilityRecommendations({ report, onOpen }) {{tasks.map((task) => {const winner = bestForTask(models, tests, task);return (- <div key={task.id} className="border border-port-border/70 rounded p-2 space-y-1.5">+ <div key={task.id} className="bg-port-card border border-port-border/70 rounded p-2 space-y-1.5"><div className="text-[11px] text-gray-300">Best {task.label.toLowerCase()} evidence</div>{winner ? (<>@@ -799,7 +799,7 @@ export default function ModelCapabilityTests({ report, loading, onReload, disabl}, [updateParams]);return (- <div className="border border-port-border rounded-lg p-3 space-y-3">+ <div className="bg-port-bg border border-port-border rounded-lg p-3 space-y-3"><div className="flex items-center justify-between gap-2 flex-wrap"><div className="flex items-center gap-1.5"><FlaskConical size={13} className="text-port-accent-2" />@@ -843,7 +843,7 @@ export default function ModelCapabilityTests({ report, loading, onReload, disablconst meta = testMeta(t.id);const Icon = meta.Icon;return (- <div key={t.id} className={`border ${meta.border} rounded p-2.5 space-y-1.5`}>+ <div key={t.id} className={`bg-port-card border ${meta.border} rounded p-2.5 space-y-1.5`}><div className="flex items-center gap-1.5 flex-wrap"><Icon size={13} className={meta.cls} /><span className="text-xs font-medium text-gray-200">{t.label}</span>diff --git a/client/src/components/settings/ModelCapabilityTests.test.jsx b/client/src/components/settings/ModelCapabilityTests.test.jsxindex faab0be864..23ec58a44e 100644--- a/client/src/components/settings/ModelCapabilityTests.test.jsx+++ b/client/src/components/settings/ModelCapabilityTests.test.jsx@@ -157,6 +157,15 @@ describe('the matrix', () => {const card = screen.getByText('Best coding evidence').parentElement;expect(within(card).getByText('qwen3-coder:30b')).toBeInTheDocument();});++ it('uses themed surfaces for task and recommendation cards', () => {+ renderPanel();++ expect(screen.getByText('Fix a broken module in a sandbox.').parentElement)+ .toHaveClass('bg-port-card');+ expect(screen.getByText('Best coding evidence').parentElement)+ .toHaveClass('bg-port-card');+ });});describe('the run gate', () => {diff --git a/client/src/index.css b/client/src/index.cssindex 3f5196f324..9f8afdd563 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -1543,6 +1543,13 @@ html[data-port-theme] .openworld-themed [class~="hover:bg-cyan-500/5"]:hover { b.openworld-mobile-controls { display: none; }}+/* === Classic Noon === */+/* Classic Noon uses the classic card surface directly; keeping the selector+ explicit makes the day variant's card fill part of the theme contract. */+html[data-port-theme="classic-noon"] .bg-port-card {+ background-color: rgb(var(--port-card) / var(--port-card-alpha)) !important;+}+/* === Lumen Glass Day === *//* Same card set as the base elevation rule above — every fill opacity, not just`/50` — so this theme's softened border lands on all of its cards. */diff --git a/client/src/themes/portosThemes.js b/client/src/themes/portosThemes.jsindex 43384bf071..6fc5f373a9 100644--- a/client/src/themes/portosThemes.js+++ b/client/src/themes/portosThemes.js@@ -110,6 +110,7 @@ export const THEMES = {family: 'classic',mode: 'day',accent: '#3b82f6',+ doc: '/docs/themes/classic-midnight.md',colorScheme: 'light',density: 'comfortable',swatches: ['#f0f0f0', '#ffffff', '#3b82f6', '#16a34a'],@@ -261,6 +262,7 @@ export const THEMES = {family: 'glass',mode: 'day',accent: '#0891b2',+ doc: '/docs/themes/lumen-glass.md',colorScheme: 'light',density: 'spacious',swatches: ['#eae4db', '#ffffff', '#0891b2', '#fb7185'],@@ -416,6 +418,7 @@ export const THEMES = {family: 'terminal',mode: 'day',accent: '#0a7a4a',+ doc: '/docs/themes/black-ice-terminal.md',colorScheme: 'light',density: 'compact',swatches: ['#ece6d5', '#fbf6e8', '#0a7a4a', '#b91d6a'],@@ -570,6 +573,7 @@ export const THEMES = {family: 'blueprint',mode: 'day',accent: '#1d4ed8',+ doc: '/docs/themes/blueprint-ops.md',colorScheme: 'light',density: 'compact',swatches: ['#eaeef2', '#ffffff', '#1d4ed8', '#d97706'],