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

192 lines
4.0 KiB
CSS

/* Multi-lane board lane (U9). Each lane is a full-width vertical row whose
* columns scroll horizontally inside the lane. Tokens mirror .board/.column in
* app/styles.css; no monolith CSS is touched. */
.board-lanes {
display: flex;
flex-direction: column;
gap: var(--column-gap, 12px);
flex: 1 1 auto;
min-height: 0;
min-width: 0;
overflow-y: auto;
overflow-x: hidden;
padding: var(--board-padding, 12px);
box-sizing: border-box;
}
.board-workflow-view {
display: flex;
flex-direction: column;
flex: 1 1 auto;
width: 100%;
height: 100%;
max-height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--bg);
}
.board-workflow-toolbar {
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--space-md);
padding: var(--space-md) var(--space-xl);
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.board-workflow-selector {
margin-left: auto;
}
.board-workflow-create-btn,
.board-workflow-edit-btn {
flex: 0 0 auto;
}
.board.board-workflow-columns {
flex: 1 1 auto;
display: flex;
flex-direction: row;
align-items: stretch;
width: 100%;
height: 100%;
max-height: 100%;
min-height: 0;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scroll-snap-type: x proximity;
touch-action: pan-x pan-y;
}
.board.board-workflow-columns > .column {
flex: 1 0 300px;
min-width: 300px;
height: 100%;
min-height: 0;
scroll-snap-align: center;
touch-action: pan-x pan-y;
}
.lane {
display: flex;
flex-direction: column;
flex: 0 0 auto;
width: 100%;
min-width: 0;
border: 1px solid var(--border);
border-radius: var(--radius-lg, 10px);
background: var(--surface-muted, var(--surface));
}
.lane-header {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-bottom: 1px solid var(--border);
cursor: pointer;
user-select: none;
}
.lane-header:hover {
background: var(--surface-hover, var(--surface));
}
.lane-header:focus-visible {
outline: 2px solid var(--todo);
outline-offset: -2px;
}
.lane-name {
font-size: 0.95rem;
font-weight: 600;
margin: 0;
}
.lane-count {
font-variant-numeric: tabular-nums;
font-size: 0.8rem;
color: var(--text-muted, var(--text));
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm, 6px);
padding: 0 6px;
min-width: 1.5rem;
text-align: center;
}
.lane-columns {
display: flex;
gap: var(--column-gap, 12px);
padding: 12px;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scroll-snap-type: x proximity;
scrollbar-color: var(--border) transparent;
scrollbar-width: thin;
min-height: 0;
touch-action: pan-x pan-y;
}
.lane-columns > .column {
flex: 0 0 clamp(280px, 28vw, 340px);
/* Repo convention (mobile-scroll-snap test): snap-align must be `center`. */
scroll-snap-align: center;
touch-action: pan-x pan-y;
}
.lane-columns::-webkit-scrollbar {
height: 6px;
}
.lane-columns::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: var(--radius-sm, 6px);
}
/* Inline column feedback (capacity-exhausted promote, deterministic drag
* rejection) — rendered in-column, not a toast (R17 / promote spec). */
.column-inline-feedback {
margin: 4px 12px 0;
padding: 6px 8px;
font-size: 0.8rem;
color: var(--color-error);
background: color-mix(in srgb, var(--color-error) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--color-error) 35%, transparent);
border-radius: var(--radius-sm, 6px);
}
@media (max-width: 1024px) {
.board.board-lanes {
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
scroll-snap-type: none;
}
.board.board-lanes > .lane {
width: 100%;
min-width: 0;
flex-shrink: 0;
}
.board.board-workflow-columns {
flex: 1 1 auto;
flex-direction: row;
align-items: stretch;
width: 100%;
height: 100%;
max-height: 100%;
min-height: 0;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x proximity;
}
}