Files
fusion/packages/dashboard/app/components/ConversationHistory.css
gsxdsm f11800f2c6 refactor(dashboard): split monolithic styles.css into per-component files
Split app/styles.css from ~40k lines down to ~4.5k. Created 56 co-located
component CSS files in app/components/, each imported by its owning .tsx.
The remainder of styles.css holds genuinely global rules (design tokens,
.btn/.card/.modal/.form-input primitives, cross-component @media overrides).

- Lazy-load 13 heavy views (AgentsView, RoadmapsView, NodesView, etc.) via
  React.lazy + Suspense; prefetch all chunks on idle so first navigation is
  instant. Initial JS bundle: 1.58 MB → 1.16 MB (-26%). Initial CSS bundle:
  635 kB → 471 kB (-26%); the rest splits into 13 per-view chunks.

- Add app/test/cssFixture.ts exposing loadAllAppCss() + loadAllAppCssBaseOnly()
  so CSS regression tests load the full per-component bundle (mirroring Vite
  source order). Migrate 30+ tests off direct readFileSync('../styles.css').

- Enable test.css: { include: [/.+/] } in vitest.config.ts so component CSS
  imports actually inject styles in jsdom (fixes getComputedStyle assertions).

- Add ESLint rule (no-restricted-syntax) banning direct styles.css reads in
  dashboard test files; points at loadAllAppCss() instead.

- Restore lost utility classes (.text-muted, .text-secondary, .text-dim,
  .form-input) and rescue dropped chat tool-call rules into QuickChatFAB.css.

- Mobile fixes along the way: scroll containment for view containers
  (min-height:0 + -webkit-overflow-scrolling), QuickChatFAB full-screen on
  mobile (with safe-area-inset for iOS home bar), AgentsView single-row
  header layout, ActivityLogModal close button on right, model-combobox
  z-index above the mobile quick-chat panel.

- Bug fix: SkillsView toggle was display:none which hid the input from the
  accessibility tree; replaced with the visually-hidden pattern so screen
  readers + getByRole still find the checkbox.

- Bug fix: standalone Delete button in TaskDetailModal for triage-column
  tasks (Actions dropdown is hidden in triage state, so previously no way
  to delete a freshly-created task without status change first).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 19:39:20 -07:00

128 lines
2.7 KiB
CSS

/* === Conversation History Timeline === */
.conversation-history {
border-left: 2px solid var(--border-primary);
padding: 0 0 0 12px;
margin: 0 0 16px;
max-height: 280px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
}
.conversation-entry {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 4px;
}
.conversation-entry-question {
color: var(--text-secondary);
display: flex;
flex-direction: column;
gap: 4px;
font-size: 13px;
line-height: 1.45;
}
.conversation-entry-question-label {
display: inline-flex;
align-items: center;
width: fit-content;
padding: 2px 8px;
border-radius: 999px;
background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
border: 1px solid var(--border-primary);
color: var(--text-primary);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.conversation-entry-response {
border: 1px solid var(--border-primary);
border-radius: 8px;
background: var(--bg-secondary);
padding: 8px 10px;
color: var(--text-primary);
display: flex;
flex-direction: column;
gap: 4px;
font-size: 13px;
line-height: 1.45;
}
.conversation-entry-thinking {
display: flex;
flex-direction: column;
gap: 6px;
}
.conversation-entry-thinking pre {
margin: 0;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
padding: 10px;
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
}
.conversation-thinking-toggle {
min-height: 44px;
width: fit-content;
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: transparent;
color: var(--text-secondary);
padding: 8px 12px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.conversation-thinking-toggle:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
.conversation-thinking-toggle:focus-visible {
outline: 2px solid var(--todo);
outline-offset: 2px;
}
.conversation-separator {
border-top: 1px solid var(--border-primary);
margin: 4px 0 16px;
}
@media (max-width: 768px) {
.conversation-history {
max-height: 220px;
margin-bottom: 12px;
padding-left: 10px;
}
.conversation-entry-question,
.conversation-entry-response {
font-size: 14px;
}
.conversation-thinking-toggle {
width: 100%;
justify-content: center;
min-height: 36px;
}
}