feat(FN-3107): merge fusion/fn-3107
This merge lands the managed Docker nodes feature (FN-3107) end-to-end: core schema migration for nodes with types, CRUD operations in CentralCore, and dashboard UI (AddNodeModal, NodeDetailModal) with accessibility fixes and tokenized CSS. Also included are manual PR linking (FN-3202), plugin schem Fusion-Task-Id: FN-3107
This commit is contained in:
195
packages/dashboard/app/components/NodeDetailModal.css
Normal file
195
packages/dashboard/app/components/NodeDetailModal.css
Normal file
@@ -0,0 +1,195 @@
|
||||
.node-detail-modal {
|
||||
max-width: calc(var(--space-lg) * 53.75);
|
||||
width: min(calc(var(--space-lg) * 53.75), calc(100vw - (var(--space-lg) * 2)));
|
||||
}
|
||||
|
||||
.node-detail-modal__body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
max-height: min(72vh, calc(var(--space-lg) * 42.5));
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.node-detail-modal__section {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.node-detail-modal__section h4 {
|
||||
margin: 0 0 var(--space-sm) 0;
|
||||
}
|
||||
|
||||
.node-detail-modal__section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.node-detail-modal__field--full {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.node-detail-modal__field span {
|
||||
color: var(--text-muted);
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
}
|
||||
|
||||
.node-detail-modal__edit-actions {
|
||||
margin-top: var(--space-sm);
|
||||
display: flex;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.node-detail-modal__project-list {
|
||||
margin: 0;
|
||||
padding-left: var(--space-lg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__project-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__project-item code {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.node-detail-modal__empty {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.node-detail-modal__health-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.node-detail-modal__actions {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.node-detail-modal__docker-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__textarea {
|
||||
min-height: calc(var(--space-2xl) * 2.25);
|
||||
resize: vertical;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-dot {
|
||||
width: calc(var(--space-sm) + var(--space-xs) / 2);
|
||||
height: calc(var(--space-sm) + var(--space-xs) / 2);
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-dot--synced {
|
||||
background: var(--color-success);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-dot--diff,
|
||||
.node-detail-modal__sync-dot--pending {
|
||||
background: var(--color-warning);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-dot--error {
|
||||
background: var(--color-error);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-dot--never {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-diff {
|
||||
color: var(--color-warning);
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-sm);
|
||||
padding: var(--space-sm);
|
||||
background: color-mix(in srgb, var(--color-error) 10%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--color-error);
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-error-dismiss {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-error);
|
||||
cursor: pointer;
|
||||
padding: calc(var(--space-xs) / 2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-error-dismiss:hover {
|
||||
background: color-mix(in srgb, var(--color-error) 20%, transparent);
|
||||
}
|
||||
|
||||
.node-detail-modal__sync-error-dismiss:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--focus-ring-strong);
|
||||
background: color-mix(in srgb, var(--color-error) 20%, transparent);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.node-detail-modal__grid,
|
||||
.node-detail-modal__docker-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.node-detail-modal__field--full {
|
||||
grid-column: span 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user