Files
fusion/packages/dashboard/app/components/SkillMultiselect.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

181 lines
3.0 KiB
CSS

/* === Skill Multiselect === */
.skill-multiselect {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.skill-multiselect-label {
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
}
.skill-multiselect-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.skill-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px;
background: var(--bg-tertiary);
color: var(--text-muted);
border-radius: 4px;
font-size: 12px;
line-height: 1.4;
}
.skill-chip-name {
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.skill-chip-remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
padding: 0;
background: transparent;
border: none;
border-radius: 2px;
color: var(--text-muted);
font-size: 14px;
line-height: 1;
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.skill-chip-remove:hover:not(:disabled) {
color: var(--text);
background: var(--surface-hover);
}
.skill-chip-remove:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.skill-multiselect-add {
min-height: 32px;
}
.skill-multiselect-loading,
.skill-multiselect-empty {
font-size: 13px;
color: var(--text-muted);
padding: 4px 0;
}
.skill-multiselect-dropdown {
width: 100%;
font-size: 13px;
}
.agent-dialog-skills-hint {
margin-top: 4px;
font-size: 12px;
}
/* Agent detail divider */
/* Skill badge row for Dashboard tab */
.skill-badge-row {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.skill-badge {
display: inline-block;
padding: 2px 6px;
background: var(--bg-tertiary);
color: var(--text-muted);
border-radius: 4px;
font-size: 11px;
line-height: 1.4;
}
/* Skill badges in AgentsView */
.badge-skill {
background: var(--bg-tertiary);
color: var(--text-muted);
}
.agent-board-skills {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 4px 8px;
}
.skill-badge-sm {
display: inline-block;
padding: 1px 5px;
background: var(--bg-tertiary);
color: var(--text-muted);
border-radius: 3px;
font-size: 10px;
line-height: 1.4;
}
.skill-badge-extra {
background: var(--bg-secondary);
}
/* Tree view skill badge */
.agent-tree__skill {
display: inline-block;
padding: 1px 5px;
background: var(--bg-tertiary);
color: var(--text-muted);
border-radius: 3px;
font-size: 10px;
line-height: 1.4;
margin-left: 6px;
}
/* Org chart skill badge */
.org-chart-node__skill {
display: inline-block;
padding: 1px 5px;
background: var(--bg-tertiary);
color: var(--text-muted);
border-radius: 3px;
font-size: 10px;
line-height: 1.4;
}
.divider {
color: var(--border);
}
/* Agent detail text-muted */
.text-muted {
color: var(--text-muted);
}
/* Agent detail link */
.link {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--todo);
text-decoration: none;
}
.link:hover {
text-decoration: underline;
}
/* Text secondary helper */
.text-secondary {
color: var(--text-muted);
}