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
215 lines
3.9 KiB
CSS
215 lines
3.9 KiB
CSS
/* Schema-driven custom-field form section (U13 / KTD-14). */
|
|
|
|
.task-fields-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.task-field-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.task-field-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted, #8a8f98);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.task-field-required {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.task-field-control {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.task-field-input,
|
|
.task-field-textarea,
|
|
.task-field-select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--surface-1);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.task-field-textarea {
|
|
resize: vertical;
|
|
min-height: 56px;
|
|
}
|
|
|
|
.task-field-input:disabled,
|
|
.task-field-textarea:disabled,
|
|
.task-field-select:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Chips (enum single + multi-enum) */
|
|
.task-field-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.task-field-chip {
|
|
padding: 3px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--surface-2);
|
|
color: var(--text-muted, #b4b8c0);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
|
|
}
|
|
|
|
.task-field-chip:hover:not(:disabled) {
|
|
border-color: var(--accent, #4f7cff);
|
|
}
|
|
|
|
.task-field-chip.is-active {
|
|
background: var(--accent, #4f7cff);
|
|
border-color: var(--accent, #4f7cff);
|
|
color: var(--cta-text);
|
|
}
|
|
|
|
.task-field-chip:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Radio group */
|
|
.task-field-radio-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.task-field-radio {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Boolean toggle */
|
|
.task-field-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.task-field-toggle input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.task-field-toggle-track {
|
|
display: inline-block;
|
|
width: 34px;
|
|
height: 18px;
|
|
border-radius: 999px;
|
|
background: var(--border);
|
|
position: relative;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.task-field-toggle-track::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--card);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.task-field-toggle input:checked + .task-field-toggle-track {
|
|
background: var(--accent, #4f7cff);
|
|
}
|
|
|
|
.task-field-toggle input:checked + .task-field-toggle-track::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.task-field-toggle input:disabled + .task-field-toggle-track {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Inline validation error */
|
|
.task-field-error {
|
|
font-size: 12px;
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.task-field-row.has-error .task-field-input,
|
|
.task-field-row.has-error .task-field-textarea,
|
|
.task-field-row.has-error .task-field-select {
|
|
border-color: var(--color-error);
|
|
}
|
|
|
|
/* Collapsible detail-section group */
|
|
.task-fields-group,
|
|
.task-fields-orphaned {
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.task-fields-group-header,
|
|
.task-fields-orphaned-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: 100%;
|
|
padding: 4px 0;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted, #8a8f98);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.task-fields-group-body,
|
|
.task-fields-orphaned-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.task-fields-orphaned-count {
|
|
margin-left: auto;
|
|
background: var(--surface-2);
|
|
border-radius: 999px;
|
|
padding: 0 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.task-field-orphaned-value {
|
|
font-size: 13px;
|
|
color: var(--text-muted, #b4b8c0);
|
|
word-break: break-word;
|
|
}
|