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>
241 lines
4.3 KiB
CSS
241 lines
4.3 KiB
CSS
/* === Task Documents === */
|
|
.task-documents-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.task-document-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: var(--space-md);
|
|
background: var(--bg-secondary);
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.task-document-card:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.task-document-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: var(--space-md);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.task-document-card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.task-document-key {
|
|
font-weight: 600;
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.task-document-revision-badge {
|
|
font-size: 0.75rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-document-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-document-author {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-document-content {
|
|
margin: var(--space-md) 0;
|
|
padding: var(--space-md);
|
|
background: var(--bg-primary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border);
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.task-document-content-text {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
margin: 0;
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.task-document-content-header {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.task-document-content-markdown {
|
|
/* Container chrome only; markdown styles delegated to .markdown-body */
|
|
}
|
|
|
|
.task-document-edit-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
margin: var(--space-md) 0;
|
|
}
|
|
|
|
.task-document-edit-form textarea {
|
|
min-height: 200px;
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.task-document-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.task-document-revisions {
|
|
margin: var(--space-md) 0;
|
|
padding: var(--space-md);
|
|
background: var(--bg-primary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.task-document-revisions h5 {
|
|
margin: 0 0 var(--space-sm) 0;
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-document-revision-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.task-document-revision-item {
|
|
padding: var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.task-document-revision-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.revision-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.revision-badge {
|
|
font-size: 0.75rem;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.revision-author {
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.revision-timestamp {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.revision-preview {
|
|
font-size: 0.8125rem;
|
|
color: var(--text-muted);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.task-document-create-form {
|
|
margin: var(--space-md) 0;
|
|
padding: var(--space-md);
|
|
background: var(--bg-secondary);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.task-document-create-form h5 {
|
|
margin: 0 0 var(--space-md) 0;
|
|
}
|
|
|
|
.task-document-create-form .form-group {
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.task-document-create-form .form-group:last-of-type {
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.task-document-key-input {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.form-hint {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.task-document-new-btn {
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.confirm-delete-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: 0.875rem;
|
|
color: var(--color-error);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.task-document-card-header {
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.task-document-meta {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.task-document-content {
|
|
max-height: 300px;
|
|
}
|
|
}
|