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
282 lines
5.1 KiB
CSS
282 lines
5.1 KiB
CSS
.goals-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.goals-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.goals-count {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-add-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-add-button:focus-visible,
|
|
.goals-card:focus-visible,
|
|
.goals-activate-button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.goals-warning {
|
|
margin: 0;
|
|
padding: var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border: calc(var(--space-xs) / 4) solid var(--color-warning);
|
|
background: color-mix(in srgb, var(--color-warning) 10%, transparent);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.goals-error {
|
|
margin: 0;
|
|
}
|
|
|
|
.goals-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-form-label {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-form-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-form-draft-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.goals-form textarea.input {
|
|
min-height: calc(var(--space-2xl) * 2);
|
|
resize: vertical;
|
|
}
|
|
|
|
.goals-form-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-card {
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
scroll-margin-top: var(--space-xl);
|
|
}
|
|
|
|
.goals-card--anchored {
|
|
border-color: var(--color-warning);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.goals-card-archived {
|
|
border-color: color-mix(in srgb, var(--text-muted) 25%, transparent);
|
|
}
|
|
|
|
.goals-card-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.goals-card-edit {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-card-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-md) + var(--space-xs));
|
|
}
|
|
|
|
.goals-card-description {
|
|
margin: var(--space-xs) 0 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-description > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.goals-card-description > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.goals-card-description-collapsed {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 4;
|
|
overflow: hidden;
|
|
max-height: calc(var(--space-md) * 6);
|
|
}
|
|
|
|
.goals-card-description-toggle {
|
|
margin-top: var(--space-xs);
|
|
align-self: flex-start;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-status {
|
|
margin: var(--space-xs) 0 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-linked-missions {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
padding-left: var(--space-md);
|
|
border-left: calc(var(--space-xs) / 4) solid var(--border);
|
|
}
|
|
|
|
.goals-linked-missions-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.goals-linked-missions-title {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
font-weight: 600;
|
|
}
|
|
|
|
.goals-linked-missions-count,
|
|
.goals-linked-mission-status,
|
|
.goals-linked-missions-empty {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-linked-missions-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.goals-linked-missions-picker {
|
|
flex: 1 1 calc(var(--space-xl) * 10);
|
|
min-width: 0;
|
|
}
|
|
|
|
.goals-linked-missions-link-button,
|
|
.goals-linked-mission-chip,
|
|
.goals-linked-mission-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.goals-linked-missions-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-linked-mission-chip {
|
|
gap: calc(var(--space-xs) / 2);
|
|
padding: calc(var(--space-xs) / 2);
|
|
border: calc(var(--space-xs) / 4) solid var(--border);
|
|
border-radius: var(--radius-pill);
|
|
background: var(--surface-1);
|
|
}
|
|
|
|
.goals-linked-mission-link {
|
|
border-radius: var(--radius-pill);
|
|
}
|
|
|
|
.goals-linked-missions-empty {
|
|
margin: 0;
|
|
}
|
|
|
|
.goals-activate-button {
|
|
min-width: calc(var(--space-2xl) * 2);
|
|
}
|
|
|
|
.goals-empty {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.goals-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.goals-card {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.goals-form-actions,
|
|
.goals-card-actions,
|
|
.goals-linked-missions-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.goals-linked-missions {
|
|
padding-left: 0;
|
|
padding-top: var(--space-md);
|
|
border-left: 0;
|
|
border-top: calc(var(--space-xs) / 4) solid var(--border);
|
|
}
|
|
|
|
.goals-linked-missions-link-button,
|
|
.goals-linked-missions-picker {
|
|
width: 100%;
|
|
}
|
|
|
|
.goals-card-description-collapsed {
|
|
-webkit-line-clamp: 3;
|
|
max-height: calc(var(--space-md) * 5);
|
|
}
|
|
}
|