Files
fusion/packages/dashboard/app/components/TaskFieldsSection.css
gsxdsm 282b06949e FN-6688: replace dashboard primary text alias
Replace undefined dashboard primary text aliases with the canonical theme-aware text token.

- Swap non-Command-Center CSS references from `--text-primary` to `--text` across dashboard components.
- Extend text token canonicalization tests to block future `--text-primary` usage and root alias definitions.
- Document the dashboard CSS token rule and add a patch changeset for the published CLI bundle.

Files changed:
 .changeset/fn-6688-text-primary-cleanup.md          |  5 +++++
 docs/dashboard-guide.md                             |  2 ++
 .../__tests__/text-token-canonicalization.test.ts   | 18 ++++++++++++++++--
 .../dashboard/app/components/ActiveAgentsPanel.css  |  4 ++--
 .../dashboard/app/components/CliBinaryPanel.css     |  2 +-
 .../app/components/ConversationHistory.css          |  6 +++---
 .../dashboard/app/components/DesktopLaunchGate.css  |  2 +-
 packages/dashboard/app/components/ErrorBoundary.css |  2 +-
 .../dashboard/app/components/LanguageSelector.css   |  2 +-
 packages/dashboard/app/components/MobileNavBar.css  |  4 ++--
 packages/dashboard/app/components/QuickEntryBox.css |  6 +++---
 packages/dashboard/app/components/ScriptsModal.css  | 21 +++++++++++++--------
 .../dashboard/app/components/SkillMultiselect.css   |  2 +-
 .../dashboard/app/components/TaskFieldsSection.css  |  4 ++--
 .../app/components/WorkflowFieldsPanel.css          |  2 +-
 packages/dashboard/app/styles.css                   |  2 +-
 16 files changed, 55 insertions(+), 29 deletions(-)

Fusion-Task-Id: FN-6688

Fusion-Task-Lineage: 96e47af2-8bf5-4326-be24-2816530fd646
2026-06-19 01:33:13 -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);
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: var(--cta-text);
}
.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);
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;
}