Files
fusion/packages/dashboard/app/components/TaskFieldsSection.css
gsxdsm cfd1e2bf8f fix(ci): repair dashboard tests broken by cli-agent feature
- TaskFieldsSection.css: restore the toggle knob fill to the themed
  var(--card) token (was hardcoded to #fff on this branch), which the
  AgentListModal theme-token guard scans all app CSS for and rejects.
- ListView.test.tsx: add fetchBoardWorkflows + api to the ../../api mock;
  TaskDetailModal (rendered via the embedded detail) now calls both at mount
  for board workflows and the cli-sessions lookup, so the object-literal mock
  must provide them ("No X export is defined on the ../../api mock").
- auto-merge-toggle-blank.mobile.test.tsx / board-mobile-initial-render.test.tsx:
  revert the runOnlyPendingTimers→runAllTimers change; with the installed rAF
  shim that re-schedules itself, runAllTimers loops forever and trips vitest's
  10000-timer infinite-loop abort.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 04:19:33 -07:00

215 lines
4.0 KiB
CSS

/* Schema-driven custom-field form section (U13 / KTD-14). */
.task-fields-section {
display: flex;
flex-direction: column;
gap: 12px;
margin: 12px 0;
}
.task-field-row {
display: flex;
flex-direction: column;
gap: 4px;
}
.task-field-label {
font-size: 12px;
font-weight: 600;
color: var(--text-muted, #8a8f98);
text-transform: uppercase;
letter-spacing: 0.02em;
}
.task-field-required {
color: var(--accent-danger, #e5484d);
}
.task-field-control {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.task-field-input,
.task-field-textarea,
.task-field-select {
width: 100%;
box-sizing: border-box;
padding: 6px 8px;
border: 1px solid var(--border-color, #2a2d34);
border-radius: 6px;
background: var(--input-bg, #16181d);
color: var(--text-primary, #e6e6e6);
font-size: 13px;
font-family: inherit;
}
.task-field-textarea {
resize: vertical;
min-height: 56px;
}
.task-field-input:disabled,
.task-field-textarea:disabled,
.task-field-select:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Chips (enum single + multi-enum) */
.task-field-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.task-field-chip {
padding: 3px 10px;
border: 1px solid var(--border-color, #2a2d34);
border-radius: 999px;
background: var(--chip-bg, #1c1f26);
color: var(--text-muted, #b4b8c0);
font-size: 12px;
cursor: pointer;
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.task-field-chip:hover:not(:disabled) {
border-color: var(--accent, #4f7cff);
}
.task-field-chip.is-active {
background: var(--accent, #4f7cff);
border-color: var(--accent, #4f7cff);
color: #fff;
}
.task-field-chip:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Radio group */
.task-field-radio-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.task-field-radio {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--text-primary, #e6e6e6);
cursor: pointer;
}
/* Boolean toggle */
.task-field-toggle {
display: inline-flex;
align-items: center;
cursor: pointer;
}
.task-field-toggle input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.task-field-toggle-track {
display: inline-block;
width: 34px;
height: 18px;
border-radius: 999px;
background: var(--border-color, #2a2d34);
position: relative;
transition: background 0.15s ease;
}
.task-field-toggle-track::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--card);
transition: transform 0.15s ease;
}
.task-field-toggle input:checked + .task-field-toggle-track {
background: var(--accent, #4f7cff);
}
.task-field-toggle input:checked + .task-field-toggle-track::after {
transform: translateX(16px);
}
.task-field-toggle input:disabled + .task-field-toggle-track {
opacity: 0.6;
}
/* Inline validation error */
.task-field-error {
font-size: 12px;
color: var(--accent-danger, #e5484d);
}
.task-field-row.has-error .task-field-input,
.task-field-row.has-error .task-field-textarea,
.task-field-row.has-error .task-field-select {
border-color: var(--accent-danger, #e5484d);
}
/* Collapsible detail-section group */
.task-fields-group,
.task-fields-orphaned {
border-top: 1px solid var(--border-color, #2a2d34);
padding-top: 8px;
}
.task-fields-group-header,
.task-fields-orphaned-header {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 4px 0;
background: none;
border: none;
color: var(--text-muted, #8a8f98);
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
cursor: pointer;
}
.task-fields-group-body,
.task-fields-orphaned-body {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 8px;
}
.task-fields-orphaned-count {
margin-left: auto;
background: var(--chip-bg, #1c1f26);
border-radius: 999px;
padding: 0 8px;
font-size: 11px;
}
.task-field-orphaned-value {
font-size: 13px;
color: var(--text-muted, #b4b8c0);
word-break: break-word;
}