Files
fusion/packages/dashboard/app/components/ActiveAgentsPanel.css
gsxdsm 87e87a8f1a FN-6693: enforce dashboard CSS token references
Extend the dashboard CSS token guard and replace stale custom-property references with defined design tokens.

- Add a dashboard-wide CSS token validity test that scans component/app CSS for undefined custom-property references.
- Include dashboard CSS tests in the dashboard Vitest config and document the guard in testing guidance.
- Remap undefined CSS variables across dashboard components and command-center styles to existing semantic or local tokens.

Files changed:
 docs/testing.md                                    |   3 +
 .../dashboard-css-token-validity.css.test.ts       | 165 +++++++++++++++++++++
 .../dashboard/app/components/ActiveAgentsPanel.css |  10 +-
 .../dashboard/app/components/AgentLogViewer.css    |   2 +-
 .../app/components/AgentReflectionsTab.css         |  10 +-
 packages/dashboard/app/components/AgentsView.css   |   6 +-
 .../dashboard/app/components/BranchGroupCard.css   |   6 +-
 packages/dashboard/app/components/ChatView.css     |  12 +-
 .../app/components/CliBinaryInstallBanner.css      |   2 +-
 .../dashboard/app/components/CliBinaryPanel.css    |   2 +-
 .../app/components/ConversationHistory.css         |  12 +-
 .../dashboard/app/components/DashboardLoader.css   |   2 +-
 .../dashboard/app/components/DesktopLaunchGate.css |   4 +-
 .../dashboard/app/components/DirectoryPicker.css   |   2 +-
 .../dashboard/app/components/FileMentionPopup.css  |   4 +-
 .../dashboard/app/components/GitHubImportModal.css |  10 +-
 packages/dashboard/app/components/GoalsView.css    |   2 +-
 .../dashboard/app/components/GroupTaskModal.css    |  18 +--
 packages/dashboard/app/components/InsightsView.css |  10 +-
 packages/dashboard/app/components/Lane.css         |   8 +-
 .../dashboard/app/components/LanguageSelector.css  |   8 +-
 packages/dashboard/app/components/MailboxModal.css |  62 ++++----
 .../app/components/MergeAdvanceNotice.css          |   2 +-
 .../dashboard/app/components/MissionManager.css    |  10 +-
 .../app/components/MobileWorkflowGraphView.css     |   2 +-
 .../app/components/ModelOnboardingModal.css        |  12 +-
 .../app/components/OnboardingDisclosure.css        |   4 +-
 .../dashboard/app/components/PlanningModeModal.css |   2 +-
 .../dashboard/app/components/PluginManager.css     |  58 ++++----
 .../components/PostOnboardingRecommendations.css   |   4 +-
 .../dashboard/app/components/PullRequestView.css   |  32 ++--
 packages/dashboard/app/components/QuickChatFAB.css |   4 +-
 .../dashboard/app/components/QuickEntryBox.css     |   6 +-
 .../dashboard/app/components/ReliabilityView.css   |   6 +-
 packages/dashboard/app/components/ScriptsModal.css |  34 ++---
 .../dashboard/app/components/SessionTerminal.css   |  28 ++--
 .../dashboard/app/components/SettingsModal.css     |   6 +-
 .../dashboard/app/components/SkillMultiselect.css  |   2 +-
 packages/dashboard/app/components/TaskCard.css     |  24 +--
 .../dashboard/app/components/TaskDocumentsTab.css  |   8 +-
 .../dashboard/app/components/TaskFieldsSection.css |  20 +--
 .../dashboard/app/components/TerminalModal.css     |  22 +--
 .../app/components/WorkflowFieldsPanel.css         |   6 +-
 .../app/components/WorkflowNodeEditor.css          |  30 ++--
 .../dashboard/app/components/WorkspaceSelector.css |   2 +-
 .../components/command-center/CommandCenter.css    | 106 ++++++-------
 .../components/command-center/DateRangePicker.css  |  18 +--
 .../command-center/MissionControlPanel.css         |  14 +-
 .../app/components/command-center/SdlcFunnel.css   |   2 +-
 .../command-center/areas/SystemStatsArea.css       |  24 +--
 .../app/components/command-center/areas/areas.css  |  62 ++++----
 .../components/command-center/charts/charts.css    | 104 ++++++-------
 packages/dashboard/vitest.config.ts                |   1 +
 53 files changed, 592 insertions(+), 423 deletions(-)

Fusion-Task-Id: FN-6693

Fusion-Task-Lineage: e9ccf3e6-fee9-47e0-9474-7b5580adbf31
2026-06-19 04:27:01 -07:00

171 lines
3.3 KiB
CSS

/* === Active Agents Panel === */
.active-agents-panel {
margin-top: var(--space-xl);
margin-bottom: var(--space-lg);
}
.active-agents-panel-header {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 13px;
font-weight: 600;
color: var(--text-muted);
margin-bottom: var(--space-md);
}
.active-agents-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: var(--space-md);
}
.live-agent-card {
display: flex;
flex-direction: column;
gap: var(--space-sm);
padding: var(--space-md);
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.live-agent-card:hover {
background: var(--surface-hover);
border-color: color-mix(in srgb, var(--border) 65%, var(--text) 35%);
}
.live-agent-card:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.live-agent-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
}
.live-agent-card-name {
display: flex;
align-items: center;
gap: var(--space-sm);
font-weight: 600;
font-size: 13px;
}
.live-agent-task {
font-family: var(--font-mono);
}
.live-agent-card-transcript {
font-family: var(--font-mono);
font-size: 11px;
line-height: 1.5;
color: var(--text-muted);
max-height: 120px;
overflow-y: auto;
}
.live-agent-card-empty {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.live-agent-card-status {
font-style: normal;
font-weight: 500;
color: var(--text);
opacity: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.live-agent-card-status-sub {
font-style: italic;
opacity: 0.6;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.live-agent-card-line {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.live-agent-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
color: var(--text-muted);
padding-top: var(--space-sm);
border-top: 1px solid var(--border);
}
.live-agent-streaming-dot {
color: var(--color-success);
animation: pulse 1.5s infinite;
}
.live-agent-card-footer-actions {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.live-agent-card-footer-meta {
display: flex;
align-items: center;
gap: var(--space-sm);
flex-wrap: wrap;
min-width: 0;
}
.live-agent-card-next-heartbeat {
color: var(--text-muted);
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.live-agent-card-logs-btn {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-xs) var(--space-sm);
font-size: 11px;
color: var(--text-muted);
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.live-agent-card-logs-btn:hover {
background: var(--surface-hover);
color: var(--text);
border-color: color-mix(in srgb, var(--border) 65%, var(--text) 35%);
}
@media (max-width: 768px) {
.active-agents-grid {
grid-template-columns: 1fr;
}
.live-agent-card {
min-width: 0;
overflow: hidden;
}
}