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>
488 lines
11 KiB
CSS
488 lines
11 KiB
CSS
/* === New Agent Dialog === */
|
|
.agent-dialog-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: color-mix(in srgb, var(--bg) 60%, transparent);
|
|
backdrop-filter: blur(var(--space-xs));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 100;
|
|
padding: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.agent-dialog {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
width: 100%;
|
|
max-width: calc(var(--space-xl) * 21 + var(--space-md));
|
|
max-height: calc(100vh - (var(--space-xl) + var(--space-lg)));
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.agent-dialog-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-lg) calc(var(--space-lg) + var(--space-xs));
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.agent-dialog-header-title {
|
|
font-weight: 600;
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.75);
|
|
}
|
|
|
|
.agent-dialog-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.agent-dialog-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-lg) calc(var(--space-lg) + var(--space-xs));
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.agent-dialog-steps {
|
|
display: flex;
|
|
gap: calc(var(--space-sm) - var(--space-xs) * 0.5);
|
|
padding: var(--space-md) calc(var(--space-lg) + var(--space-xs));
|
|
justify-content: center;
|
|
}
|
|
|
|
.agent-dialog-step {
|
|
width: calc(var(--space-2xl) + var(--space-sm));
|
|
height: var(--space-xs);
|
|
border-radius: calc(var(--space-xs) * 0.5);
|
|
background: var(--border);
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.agent-dialog-step.active {
|
|
background: var(--todo);
|
|
}
|
|
|
|
.agent-dialog-step.completed {
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.agent-dialog-field {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.agent-dialog-field label {
|
|
display: block;
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
font-weight: 500;
|
|
margin-bottom: calc(var(--space-sm) - var(--space-xs) * 0.5);
|
|
}
|
|
|
|
.agent-dialog-field .input,
|
|
.agent-dialog-field .select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.agent-dialog-section {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.agent-dialog-section-header {
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--space-md);
|
|
padding-bottom: var(--space-xs);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.agent-dialog-tabs {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.agent-dialog-tab {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
color: var(--text-muted);
|
|
padding: var(--space-sm) var(--space-md);
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.agent-dialog-tab:hover {
|
|
border-color: var(--todo);
|
|
color: var(--text);
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.agent-dialog-tab:focus-visible {
|
|
outline: none;
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.agent-dialog-tab.active {
|
|
border-color: var(--todo);
|
|
color: var(--text);
|
|
background: color-mix(in srgb, var(--todo) 12%, transparent);
|
|
}
|
|
|
|
.agent-dialog-tab-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-role-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-xl) * 3 + var(--space-sm)), 1fr));
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-role-option {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-md) var(--space-sm);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: border-color var(--transition-fast), background var(--transition-fast);
|
|
font-family: var(--font-primary);
|
|
color: var(--text);
|
|
}
|
|
|
|
.agent-role-option:hover {
|
|
border-color: var(--text-muted);
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.agent-role-option:focus-visible {
|
|
outline: none;
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.agent-role-option.selected {
|
|
border-color: var(--todo);
|
|
background: color-mix(in srgb, var(--todo) 12%, transparent);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.agent-role-option-icon {
|
|
font-size: calc(var(--space-lg) + var(--space-xs));
|
|
line-height: 1;
|
|
}
|
|
|
|
.agent-role-option-label {
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
/* AI-assisted generation section */
|
|
.agent-dialog-icon-prefix {
|
|
margin-right: calc(var(--space-sm) - var(--space-xs) * 0.5);
|
|
}
|
|
|
|
.agent-dialog-ai-generate {
|
|
margin-top: var(--space-sm);
|
|
border-top: 1px solid var(--border);
|
|
padding-top: var(--space-md);
|
|
}
|
|
|
|
.btn--ai-generate {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: calc(var(--space-sm) - var(--space-xs) * 0.5);
|
|
background: var(--cta-bg, var(--todo));
|
|
color: var(--cta-text, var(--text));
|
|
font-weight: 600;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.btn--ai-generate:hover {
|
|
opacity: 0.9;
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.agent-dialog-ai-hint {
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
text-align: center;
|
|
margin: calc(var(--space-sm) - var(--space-xs) * 0.5) 0 0;
|
|
}
|
|
|
|
.agent-dialog-summary {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-dialog-summary-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--space-sm) 0;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
|
|
}
|
|
|
|
.agent-dialog-summary-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.agent-dialog-summary-row-label {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.agent-dialog-summary-row-label--fixed {
|
|
flex: 0 0 calc(var(--space-xl) * 4 - var(--space-xs) * 1.5);
|
|
}
|
|
|
|
.agent-dialog-summary-row-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.agent-dialog-summary-row-value--body {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.agent-dialog-summary--spaced {
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.agent-dialog-summary-row-value--muted {
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.agent-dialog-summary-row-value--capitalize {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
/* Agent preset quick-start cards */
|
|
.agent-presets {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.agent-presets-header {
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.5);
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--space-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-presets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-xl) * 5 + var(--space-lg) + var(--space-xs)), 1fr));
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-lg);
|
|
max-height: calc(var(--space-xl) * 16 + var(--space-lg));
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.agent-preset-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-md);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
|
|
background: var(--bg-secondary);
|
|
font-family: var(--font-primary);
|
|
color: var(--text);
|
|
}
|
|
|
|
.agent-preset-card:hover {
|
|
border-color: var(--todo);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.agent-preset-card:focus-visible {
|
|
outline: none;
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.agent-preset-card.selected {
|
|
border-color: var(--todo);
|
|
background: color-mix(in srgb, var(--todo) 12%, transparent);
|
|
}
|
|
|
|
.agent-preset-icon {
|
|
font-size: var(--space-xl);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.agent-preset-name {
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
font-weight: 500;
|
|
text-align: center;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.agent-preset-role {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.agent-preset-description {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-top: calc(var(--space-xs) * 0.5);
|
|
}
|
|
|
|
|
|
.agent-dialog-header-sparkle {
|
|
margin-right: var(--space-sm);
|
|
}
|
|
|
|
.agent-dialog-error-banner {
|
|
color: var(--color-error);
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: color-mix(in srgb, var(--color-error) 10%, transparent);
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.agent-dialog-textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
.agent-dialog-hint {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
margin-top: var(--space-xs);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-dialog-loading-center {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-2xl) var(--space-lg);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.agent-dialog-spinner {
|
|
width: var(--space-2xl);
|
|
height: var(--space-2xl);
|
|
border: calc(var(--space-xs) * 0.75) solid var(--border);
|
|
border-top-color: var(--todo);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.agent-dialog-loading-text {
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
margin: 0;
|
|
}
|
|
|
|
.agent-dialog-expand-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--todo);
|
|
cursor: pointer;
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
margin-left: var(--space-sm);
|
|
padding: 0;
|
|
}
|
|
|
|
.agent-dialog-expand-btn:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.agent-generation-prompt-box {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
font-family: var(--font-mono);
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
overflow: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.agent-generation-prompt-box--collapsed {
|
|
max-height: calc(var(--space-xl) * 6 + var(--space-sm) + var(--space-xs) * 0.5);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.agent-generation-prompt-fade {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: calc(var(--space-lg) + var(--space-xl));
|
|
background: linear-gradient(transparent, var(--bg-secondary));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.agent-dialog-required {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.agent-dialog-optional {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.agent-dialog-error {
|
|
color: var(--color-error);
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.agent-dialog-info {
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
margin-top: 0;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.agent-dialog-loading {
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.25);
|
|
padding: var(--space-sm) 0;
|
|
}
|
|
|