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
295 lines
7.4 KiB
CSS
295 lines
7.4 KiB
CSS
/* SessionTerminal (CLI Agent Executor, U11) — canonical tokens only. */
|
|
|
|
.cli-session-terminal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
height: 100%;
|
|
background: var(--terminal-bg, var(--bg));
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cli-session-terminal__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-xs) var(--space-sm);
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cli-session-terminal__posture-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.cli-posture-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.75rem;
|
|
line-height: 1.4;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast, 0.12s) ease;
|
|
}
|
|
|
|
.cli-posture-chip:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.cli-posture-chip--elevated {
|
|
color: var(--color-warning);
|
|
border-color: var(--color-warning);
|
|
}
|
|
|
|
.cli-posture-chip__mode {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-posture-chip__flag {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cli-posture-tooltip {
|
|
position: absolute;
|
|
top: calc(100% + var(--space-xs));
|
|
left: 0;
|
|
z-index: 10;
|
|
min-width: 220px;
|
|
padding: var(--space-sm);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.cli-posture-tooltip__title {
|
|
margin: 0 0 var(--space-xs);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.cli-posture-tooltip__list {
|
|
margin: 0;
|
|
padding-left: var(--space-md);
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-posture-tooltip__settings {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
margin-top: var(--space-sm);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.75rem;
|
|
color: var(--accent);
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cli-session-terminal__readonly-badge,
|
|
.cli-session-terminal__replay-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.cli-session-terminal__replay-badge[data-replay-mode="ended"] {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-session-terminal__viewport {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
padding: var(--space-xs);
|
|
background: var(--terminal-bg, var(--bg));
|
|
}
|
|
|
|
/*
|
|
FNXC:Terminal 2026-06-18-07:34:
|
|
SessionTerminal hosts the same xterm DOM/canvas measurement subtree as TerminalModal under a different wrapper. Apply the FN-6638 real-iOS text-size-adjust invariant here too so CLI-agent attach terminals do not inherit Safari-inflated ASCII cell metrics while still using the shared font-load remeasure path for every preset and desktop WebGL.
|
|
*/
|
|
.cli-session-terminal__viewport,
|
|
.cli-session-terminal__viewport * {
|
|
-webkit-text-size-adjust: 100%;
|
|
text-size-adjust: 100%;
|
|
}
|
|
|
|
/*
|
|
FNXC:Terminal 2026-06-18-15:45:
|
|
Recurrence #5 requires the attach terminal to mirror TerminalModal: xterm receives a symbols-free measured family, and only DOM row spans receive the optional glyph fallback. This keeps the real-iOS WebKit measurement invariant shared across DOM/canvas fallback and desktop WebGL while avoiding a SessionTerminal-only recurrence.
|
|
*/
|
|
.cli-session-terminal__viewport .xterm-rows span {
|
|
font-family: var(--terminal-glyph-font-family, inherit) !important;
|
|
}
|
|
|
|
.cli-session-terminal__advance-strip {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm);
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cli-session-terminal__advance-copy {
|
|
font-size: 0.8125rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.cli-session-terminal__advance-actions {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn {
|
|
padding: 4px var(--space-md);
|
|
font-size: 0.8125rem;
|
|
color: var(--accent-text);
|
|
background: var(--accent);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn--secondary {
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
/* ── Mobile input model (U13) ──────────────────────────────────────────────
|
|
* Visible input field + accessory key bar. xterm's hidden-textarea input is
|
|
* unreliable on mobile (KTD), so the bar is the primary input surface. The
|
|
* bar is a fixed footer that lifts above the virtual keyboard when it opens
|
|
* (driven by useMobileKeyboard's keyboardOverlap, applied inline).
|
|
*/
|
|
.cli-session-terminal__mobile-bar {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-sm)
|
|
calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-bar--keyboard-open {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
/* `bottom` is set inline to keyboardOverlap so the bar clears the keyboard. */
|
|
padding-bottom: var(--space-sm);
|
|
}
|
|
|
|
.cli-session-terminal__key-row {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.cli-session-terminal__key-row::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.cli-terminal-key {
|
|
flex: 0 0 auto;
|
|
min-width: 40px;
|
|
min-height: 36px;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
font-size: 0.8125rem;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.cli-terminal-key:active {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.cli-terminal-key--ctrl.cli-terminal-key--active {
|
|
color: var(--accent-text);
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.cli-terminal-key--ctrlc {
|
|
color: var(--color-warning);
|
|
border-color: var(--color-warning);
|
|
}
|
|
|
|
.cli-session-terminal__input-row {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-input {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
min-height: 38px;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-size: 16px; /* >=16px avoids iOS focus zoom */
|
|
color: var(--text);
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-send {
|
|
flex: 0 0 auto;
|
|
min-height: 38px;
|
|
padding: var(--space-xs) var(--space-md);
|
|
font-size: 0.8125rem;
|
|
color: var(--accent-text);
|
|
background: var(--accent);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* On mobile the terminal viewport is read-mostly; the bar drives input. */
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.cli-session-terminal__viewport {
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
}
|