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
163 lines
3.1 KiB
CSS
163 lines
3.1 KiB
CSS
.reliability-view {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
height: 100%;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.reliability-card {
|
|
padding: var(--space-lg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
}
|
|
|
|
.reliability-loading {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-md);
|
|
height: 100%;
|
|
min-width: 0;
|
|
padding: var(--space-2xl);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.reliability-error {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-md);
|
|
height: 100%;
|
|
min-width: 0;
|
|
padding: var(--space-2xl);
|
|
text-align: center;
|
|
}
|
|
|
|
.reliability-error p {
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.reliability-headline-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.reliability-headline {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.reliability-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.reliability-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.reliability-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.reliability-table th,
|
|
.reliability-table td {
|
|
text-align: left;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.reliability-stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--space-xs) 0;
|
|
}
|
|
|
|
.reliability-muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.reliability-details {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.reliability-details summary {
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.reliability-details-content {
|
|
margin-top: var(--space-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.reliability-histogram {
|
|
list-style: none;
|
|
margin: var(--space-sm) 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.reliability-histogram li {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.reliability-histogram-bar-wrap {
|
|
width: 100%;
|
|
border-radius: var(--radius-pill);
|
|
background: color-mix(in srgb, var(--color-info) 15%, transparent);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.reliability-histogram-bar {
|
|
height: var(--space-md);
|
|
background: var(--color-info);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.reliability-view {
|
|
padding-bottom: calc(var(--space-lg) + var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + var(--standalone-bottom-gap));
|
|
}
|
|
|
|
.reliability-loading,
|
|
.reliability-error {
|
|
padding-bottom: calc(var(--space-lg) + var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + var(--standalone-bottom-gap));
|
|
}
|
|
|
|
.reliability-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.reliability-section-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
}
|