feat: redesign Deployments tab with Overview + Configuration sub-tabs
Overview sub-tab: - Deployments table with env badge, version, status, URL, deployed time - Actions (Start/Stop) scoped to selected environment; other envs show "switch env to manage" hint with muted rows - Versions list with per-env deploy target picker Configuration sub-tab: - Read-only by default with Edit mode gate (Cancel/Save banner) - Agent observability: engine level, payload capture with size unit selector, log levels, metrics toggle, sampling, replay and route control (default enabled) - Container resources: memory/CPU limits, exposed ports as deletable pills with inline add input - Environment variables: key-value editor with add/remove - Reuses existing ApplicationConfig API for agent config push via SSE Tab renamed from "Apps" to "Deployments" in the tab bar. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.envSelect {
|
||||
.nativeSelect {
|
||||
padding: 6px 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 4px;
|
||||
@@ -47,6 +47,7 @@
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Detail header */
|
||||
.detailHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -70,25 +71,91 @@
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.metaGrid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 6px 16px;
|
||||
font-size: 12px;
|
||||
font-family: var(--font-body);
|
||||
.detailActions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Sub tabs */
|
||||
.subTabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.metaLabel {
|
||||
color: var(--text-muted);
|
||||
.subTab {
|
||||
padding: 8px 16px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
background: none;
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
.subTab:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.subTabActive {
|
||||
color: var(--accent, #6c7aff);
|
||||
border-bottom-color: var(--accent, #6c7aff);
|
||||
}
|
||||
|
||||
/* Table */
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.table th {
|
||||
text-align: left;
|
||||
padding: 8px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.table td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
font-size: 13px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.table tr:hover td {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.mutedRow td {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.mutedMono {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.envHint {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Version rows */
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 0;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
font-size: 12px;
|
||||
font-family: var(--font-body);
|
||||
@@ -99,72 +166,174 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.rowMeta {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.errorText {
|
||||
color: var(--error);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.emptyNote {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
margin: 4px 0 8px;
|
||||
margin: 4px 0 12px;
|
||||
}
|
||||
|
||||
.configForm {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.configSection {
|
||||
/* Edit mode banner */
|
||||
.editBanner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 16px;
|
||||
background: var(--bg-raised);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 6px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.configTitle {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 8px;
|
||||
.editBannerActive {
|
||||
border-color: var(--warning);
|
||||
background: rgba(251, 191, 36, 0.06);
|
||||
}
|
||||
|
||||
.editBannerText {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.editBannerTextWarn {
|
||||
font-size: 12px;
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.editBannerActions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Config grid */
|
||||
.configGrid {
|
||||
display: grid;
|
||||
grid-template-columns: 160px 1fr;
|
||||
gap: 8px 12px;
|
||||
align-items: start;
|
||||
gap: 8px 16px;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.configLabel {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.configField {
|
||||
.configInline {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.configHint {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.envVarEditor {
|
||||
width: 100%;
|
||||
font-family: var(--font-mono);
|
||||
.toggleEnabled {
|
||||
font-size: 12px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 4px;
|
||||
background: var(--bg-surface);
|
||||
color: var(--text-primary);
|
||||
resize: vertical;
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.toggleDisabled {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Port pills */
|
||||
.portPills {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.portPill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 3px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
background: var(--bg-raised);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.portPillDelete {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.portPillDelete:hover {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.portPillDelete:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.portAddInput {
|
||||
width: 70px;
|
||||
padding: 3px 6px;
|
||||
border: 1px dashed var(--border-subtle);
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.portAddInput::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.portAddInput:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* Env var editor */
|
||||
.envVarRow {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.envVarKey {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.envVarValue {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.envVarDelete {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.envVarDelete:hover {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.envVarDelete:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user