feat(ui): Control UI polish — skills revamp, markdown preview, agent workspace, macOS config tree (#53411) thanks @BunsDev

Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com>
Co-authored-by: Nova <nova@openknot.ai>
This commit is contained in:
Val Alexander
2026-03-24 01:21:13 -05:00
parent ecb3aa7fe0
commit a710366e9e
40 changed files with 1534 additions and 662 deletions

View File

@@ -165,7 +165,9 @@
align-items: center;
justify-content: center;
margin-left: 8px;
padding: 2px;
padding: 4px;
min-width: 24px;
min-height: 24px;
background: none;
border: none;
cursor: pointer;
@@ -521,6 +523,69 @@
animation: none;
}
.statusDot.muted {
background: var(--muted);
box-shadow: none;
animation: none;
opacity: 0.5;
}
/* ===========================================
Skill Toggle Switch
=========================================== */
.skill-toggle-wrap {
display: inline-flex;
align-items: center;
cursor: pointer;
}
.skill-toggle {
appearance: none;
width: 36px;
height: 20px;
border-radius: var(--radius-full);
background: var(--border);
position: relative;
cursor: pointer;
border: none;
outline: none;
transition:
background var(--duration-fast) var(--ease-out),
box-shadow var(--duration-fast) var(--ease-out);
flex-shrink: 0;
}
.skill-toggle::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: var(--radius-full);
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
transition: transform var(--duration-fast) var(--ease-out);
}
.skill-toggle:checked {
background: var(--accent);
}
.skill-toggle:checked::after {
transform: translateX(16px);
}
.skill-toggle:focus-visible {
box-shadow: var(--focus-ring);
}
.skill-toggle:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* ===========================================
Buttons - Tactile with personality
=========================================== */
@@ -906,9 +971,6 @@
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
border-color: var(--danger);
box-shadow:
inset 0 1px 0 var(--card-highlight),
0 0 0 1px rgba(239, 68, 68, 0.2);
}
.cron-form-status {
@@ -2928,23 +2990,6 @@ td.data-table-key-col {
min-width: 0;
}
.agents-toolbar-label {
font-size: 12px;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.04em;
flex-shrink: 0;
}
.agents-control-row {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.agents-control-select {
flex: 1;
min-width: 0;
@@ -2979,80 +3024,32 @@ td.data-table-key-col {
box-shadow: var(--focus-ring);
}
.agents-control-actions {
.agents-toolbar-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
margin-left: auto;
}
.agents-refresh-btn {
white-space: nowrap;
}
.agent-actions-wrap {
position: relative;
}
.agent-actions-toggle {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-elevated);
color: var(--muted);
font-size: 14px;
cursor: pointer;
transition:
background var(--duration-fast) ease,
border-color var(--duration-fast) ease;
}
.agent-actions-toggle:hover {
background: var(--bg-hover);
border-color: var(--border-strong);
}
.agent-actions-menu {
position: absolute;
top: calc(100% + 4px);
right: 0;
z-index: 10;
min-width: 160px;
padding: 4px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--bg-elevated);
box-shadow: var(--shadow-md);
display: grid;
gap: 1px;
}
.agent-actions-menu button {
display: block;
width: 100%;
padding: 7px 10px;
border: none;
border-radius: var(--radius-sm);
.btn--ghost {
background: transparent;
color: var(--text);
font-size: 12px;
text-align: left;
cursor: pointer;
transition: background var(--duration-fast) ease;
}
.agent-actions-menu button:hover:not(:disabled) {
background: var(--bg-hover);
}
.agent-actions-menu button:disabled {
border-color: transparent;
color: var(--muted);
cursor: not-allowed;
}
.btn--ghost:hover:not(:disabled) {
background: var(--bg-hover);
color: var(--text);
}
.btn--ghost:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.agents-main {
@@ -3197,6 +3194,19 @@ td.data-table-key-col {
opacity: 0.7;
}
.agent-tab--missing {
opacity: 0.5;
}
.agent-tab-badge {
margin-left: 4px;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
color: var(--warn);
opacity: 0.8;
}
.agents-overview-grid {
display: grid;
gap: 12px;
@@ -3273,15 +3283,16 @@ td.data-table-key-col {
.agent-chip-input:focus-within {
border-color: var(--accent);
box-shadow: var(--focus-ring);
}
.agent-chip-input input {
.agent-chip-input input,
.agent-chip-input input:focus {
flex: 1;
min-width: 120px;
border: none;
background: transparent;
outline: none;
box-shadow: none;
font-size: 13px;
padding: 0;
}
@@ -3292,58 +3303,6 @@ td.data-table-key-col {
min-width: 200px;
}
.agent-files-grid {
display: grid;
grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
gap: 14px;
}
.agent-files-list {
display: grid;
gap: 8px;
}
.agent-file-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
width: 100%;
text-align: left;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--card);
padding: 10px 12px;
cursor: pointer;
transition: border-color var(--duration-fast) ease;
}
.agent-file-row:hover {
border-color: var(--border-strong);
}
.agent-file-row.active {
border-color: var(--accent);
box-shadow: var(--focus-ring);
}
.agent-file-name {
font-weight: 600;
}
.agent-file-meta {
color: var(--muted);
font-size: 12px;
margin-top: 4px;
}
.agent-files-editor {
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 16px;
background: var(--card);
}
.agent-file-field {
min-height: clamp(320px, 56vh, 720px);
}
@@ -3365,10 +3324,6 @@ td.data-table-key-col {
flex-wrap: wrap;
}
.agent-file-title {
font-weight: 600;
}
.agent-file-sub {
color: var(--muted);
font-size: 12px;
@@ -3716,10 +3671,6 @@ td.data-table-key-col {
justify-items: start;
}
.agent-files-grid {
grid-template-columns: 1fr;
}
.agent-tools-list {
grid-template-columns: 1fr;
}
@@ -3736,8 +3687,9 @@ td.data-table-key-col {
max-width: none;
}
.agents-toolbar-label {
display: none;
.agents-toolbar-actions {
margin-left: 0;
justify-content: flex-end;
}
}
@@ -4354,6 +4306,111 @@ details[open] > .ov-expandable-toggle::after {
transform: rotate(-90deg);
}
/* ===========================================
Markdown Preview Dialog
=========================================== */
.md-preview-dialog {
border: none;
background: transparent;
padding: 0;
max-width: none;
max-height: none;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.md-preview-dialog::backdrop {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(6px);
}
.md-preview-dialog__panel {
width: min(780px, calc(100vw - 48px));
max-height: calc(100vh - 64px);
margin: 32px auto;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
overflow: hidden;
animation: scale-in 0.2s var(--ease-out);
transition:
width 0.2s var(--ease-out),
max-height 0.2s var(--ease-out),
margin 0.2s var(--ease-out);
}
.md-preview-dialog__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 20px;
border-bottom: 1px solid var(--border);
background: var(--card);
flex-shrink: 0;
}
.md-preview-dialog__title {
font-size: 13px;
font-weight: 600;
color: var(--text);
letter-spacing: -0.01em;
}
.md-preview-dialog__actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.md-preview-dialog__body {
flex: 1;
overflow-y: auto;
padding: 16px 20px 24px;
}
.md-preview-dialog__panel.fullscreen {
width: calc(100vw - 32px);
max-width: none;
max-height: calc(100vh - 32px);
margin: 16px auto;
}
.md-preview-expand-btn .when-fullscreen {
display: none;
}
.md-preview-expand-btn.is-fullscreen .when-normal {
display: none;
}
.md-preview-expand-btn.is-fullscreen .when-fullscreen {
display: inline;
}
@media (max-width: 640px) {
.md-preview-dialog__panel {
width: calc(100vw - 16px);
max-height: calc(100vh - 32px);
margin: 16px auto;
border-radius: var(--radius-md);
}
.md-preview-dialog__header {
padding: 12px 16px;
}
.md-preview-dialog__body {
padding: 14px 12px 20px;
}
}
@media (max-width: 600px) {
.ov-cards {
grid-template-columns: repeat(2, 1fr);