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
367 lines
7.5 KiB
CSS
367 lines
7.5 KiB
CSS
/* === Agent Reflections Tab === */
|
|
.reflections-tab {
|
|
padding: var(--space-lg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.reflections-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.reflections-header h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.reflections-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.reflections-stat-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
text-align: center;
|
|
}
|
|
|
|
.reflections-stat-card .stat-value {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.reflections-stat-card .stat-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.reflections-no-data {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-xl);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.reflections-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.reflections-loading-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.reflections-ratings-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.reflections-ratings-section > h4,
|
|
.reflections-list h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.reflection-cards {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.reflection-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background-color 0.15s;
|
|
}
|
|
|
|
.reflection-card:hover {
|
|
border-color: var(--border);
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.reflection-card:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.reflection-card--expanded {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.reflection-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.reflection-trigger-badge {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.reflection-trigger-periodic {
|
|
background: color-mix(in srgb, var(--color-info) 15%, transparent);
|
|
color: var(--color-info);
|
|
}
|
|
|
|
.reflection-trigger-post-task {
|
|
background: color-mix(in srgb, var(--color-success) 15%, transparent);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.reflection-trigger-manual {
|
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.reflection-trigger-user-requested {
|
|
background: color-mix(in srgb, var(--color-warning) 15%, transparent);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.reflection-timestamp {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
flex: 1;
|
|
}
|
|
|
|
.reflection-chevron {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.reflection-summary {
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.reflection-details {
|
|
margin-top: var(--space-md);
|
|
padding-top: var(--space-md);
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.reflection-insights h5,
|
|
.reflection-suggestions h5 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.reflection-insights ul,
|
|
.reflection-suggestions ul {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.reflection-insights li,
|
|
.reflection-suggestions li {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
padding-left: var(--space-md);
|
|
position: relative;
|
|
}
|
|
|
|
.reflection-insights li::before {
|
|
content: "•";
|
|
position: absolute;
|
|
left: 4px;
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.reflection-suggestions li::before {
|
|
content: "→";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.reflection-metrics {
|
|
background: var(--bg);
|
|
border-radius: var(--radius-sm);
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
.reflection-metrics h5 {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.metrics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.metric {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.metric-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.reflection-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-2xl);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.reflection-empty p {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.reflections-header {
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.reflections-header .btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
|
|
/* ── Budget Progress Bar ────────────────────────────────────────────────────── */
|
|
|
|
.budget-progress-container {
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.budget-progress-bar {
|
|
width: 100%;
|
|
height: var(--space-sm);
|
|
background: var(--surface);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.budget-progress-bar__fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-sm);
|
|
transition: width var(--transition-slow), background-color var(--transition-slow);
|
|
}
|
|
|
|
.budget-progress-bar__fill--green {
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.budget-progress-bar__fill--amber {
|
|
background: var(--color-warning);
|
|
}
|
|
|
|
.budget-progress-bar__fill--red {
|
|
background: var(--color-error);
|
|
}
|
|
|
|
.budget-progress-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
margin-top: var(--space-xs);
|
|
display: block;
|
|
}
|
|
|
|
/* ── Budget Badge ────────────────────────────────────────────────────────────── */
|
|
|
|
.budget-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: calc(var(--space-xs) / 2) var(--space-sm);
|
|
border-radius: var(--radius-pill);
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ── Budget Warning Banner ──────────────────────────────────────────────────── */
|
|
|
|
.budget-warning-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--state-error-bg, color-mix(in srgb, var(--color-error) 15%, transparent));
|
|
color: var(--state-error-text);
|
|
border: 1px solid var(--state-error-border);
|
|
font-size: 0.875rem;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
/* ── Budget Reset Button ─────────────────────────────────────────────────────── */
|
|
|
|
.btn-reset-budget {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
|
|
|
|
|