Implements P5.19.b §13.19 - Indexes + Aliases sections with LIVE 2PC preview.
Backend changes:
- Add POST /indexes/{index}/settings preview endpoint
- Returns current vs proposed settings with SHA256 fingerprints
- Shows node targets, version info, and diff summary
- Displays full two-phase flow (propose/verify/commit) details
- Export compute_settings_diff for testing
Frontend changes:
- Update previewSettingsChanges() to call new preview endpoint
- Display current/proposed fingerprints, version info
- Show node targets and two-phase flow steps
- Render structured diff (added/removed/modified)
Tests:
- Add p13_19_admin_ui_2pc_preview.rs acceptance tests
- Verify fingerprint computation, diff detection, node targets
Closes: miroir-uhj.19.2
1422 lines
27 KiB
CSS
1422 lines
27 KiB
CSS
/* Miroir Admin UI - Plan §13.19 */
|
|
/* Clean, modern, minimal chrome. Generous whitespace. */
|
|
|
|
:root {
|
|
--bg-primary: #f9fafb;
|
|
--bg-secondary: #ffffff;
|
|
--bg-tertiary: #f3f4f6;
|
|
--text-primary: #111827;
|
|
--text-secondary: #6b7280;
|
|
--text-tertiary: #9ca3af;
|
|
--border-color: #e5e7eb;
|
|
--accent-color: #2563eb;
|
|
--accent-hover: #1d4ed8;
|
|
--success-color: #10b981;
|
|
--warning-color: #f59e0b;
|
|
--error-color: #ef4444;
|
|
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--transition: 200ms ease;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg-primary: #111827;
|
|
--bg-secondary: #1f2937;
|
|
--bg-tertiary: #374151;
|
|
--text-primary: #f9fafb;
|
|
--text-secondary: #9ca3af;
|
|
--text-tertiary: #6b7280;
|
|
--border-color: #374151;
|
|
--accent-color: #3b82f6;
|
|
--accent-hover: #60a5fa;
|
|
}
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.app {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 260px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
z-index: 100;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-header h1 {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.sidebar-header .subtitle {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.nav-links {
|
|
list-style: none;
|
|
padding: 1rem 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-links li {
|
|
margin: 0;
|
|
}
|
|
|
|
.nav-links a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.625rem 1.5rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
font-size: 0.875rem;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-links a.active {
|
|
background: var(--bg-tertiary);
|
|
color: var(--accent-color);
|
|
border-left-color: var(--accent-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-links .icon {
|
|
margin-right: 0.75rem;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.connection-status {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--success-color);
|
|
margin-right: 0.5rem;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.status-dot.disconnected {
|
|
background: var(--error-color);
|
|
animation: none;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
margin-left: 260px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.top-bar {
|
|
height: 64px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 1.5rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.mobile-menu-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.25rem;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.top-bar h2 {
|
|
flex: 1;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.top-bar-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.refresh-btn {
|
|
background: none;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.5rem 0.75rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.refresh-btn:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.content-area {
|
|
flex: 1;
|
|
padding: 1.5rem;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.section {
|
|
display: none;
|
|
}
|
|
|
|
.section.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-sub {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.card-subtitle {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.placeholder {
|
|
color: var(--text-tertiary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Tables */
|
|
.table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 0.75rem 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.data-table th {
|
|
background: var(--bg-tertiary);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Status badges */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.625rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge.success {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.badge.warning {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.badge.error {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.badge.info {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.badge.success {
|
|
background: #064e3b;
|
|
color: #d1fae5;
|
|
}
|
|
.badge.warning {
|
|
background: #78350f;
|
|
color: #fef3c7;
|
|
}
|
|
.badge.error {
|
|
background: #7f1d1d;
|
|
color: #fee2e2;
|
|
}
|
|
.badge.info {
|
|
background: #1e3a8a;
|
|
color: #dbeafe;
|
|
}
|
|
}
|
|
|
|
/* Shard Coverage Map */
|
|
.shard-coverage-map {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.shard-cell {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.625rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
position: relative;
|
|
}
|
|
|
|
.shard-cell.healthy {
|
|
background: var(--success-color);
|
|
color: white;
|
|
}
|
|
|
|
.shard-cell.degraded {
|
|
background: var(--warning-color);
|
|
color: white;
|
|
}
|
|
|
|
.shard-cell.missing {
|
|
background: var(--error-color);
|
|
color: white;
|
|
}
|
|
|
|
.shard-cell:hover .shard-tooltip {
|
|
display: block;
|
|
}
|
|
|
|
.shard-tooltip {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.5rem;
|
|
font-size: 0.75rem;
|
|
white-space: nowrap;
|
|
z-index: 10;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Progress Bars */
|
|
.progress-bar {
|
|
height: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 9999px;
|
|
overflow: hidden;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: var(--accent-color);
|
|
transition: width var(--transition);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1024px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.mobile-menu-toggle {
|
|
display: block;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.data-table {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
/* Stacked card layout for tables on mobile */
|
|
.table-container .data-table thead {
|
|
display: none;
|
|
}
|
|
|
|
.table-container .data-table tbody {
|
|
display: block;
|
|
}
|
|
|
|
.table-container .data-table tr {
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.table-container .data-table td {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.25rem 0;
|
|
border: none;
|
|
}
|
|
|
|
.table-container .data-table td::before {
|
|
content: attr(data-label);
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.content-area {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* Accessibility */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
|
|
.status-dot {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* Focus styles for keyboard navigation */
|
|
a:focus-visible,
|
|
button:focus-visible {
|
|
outline: 2px solid var(--accent-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
border: 1px solid transparent;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--error-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.25rem 0.625rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Modals */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
width: 90%;
|
|
max-width: 700px;
|
|
max-height: 90vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-md);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.375rem;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 0.625rem 0.875rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.form-input:disabled {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.form-hint {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.form-select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
/* Settings Editor */
|
|
.settings-preview,
|
|
.settings-editor,
|
|
.settings-diff {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.settings-preview h4,
|
|
.settings-editor h4,
|
|
.settings-diff h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.settings-json {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
font-size: 0.75rem;
|
|
overflow-x: auto;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-textarea {
|
|
width: 100%;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.75rem;
|
|
padding: 1rem;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
resize: vertical;
|
|
min-height: 300px;
|
|
}
|
|
|
|
.settings-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.diff-summary {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.diff-line {
|
|
padding: 0.25rem 0.5rem;
|
|
margin: 0.125rem 0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.diff-line.added {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.diff-line.removed {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.diff-fingerprint {
|
|
font-size: 0.875rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.diff-fingerprint code {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.75rem;
|
|
background: var(--bg-secondary);
|
|
padding: 0.125rem 0.375rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.diff-line.modified {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
/* 2PC Flow Preview */
|
|
.two-phase-flow {
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.flow-step {
|
|
margin-bottom: 1rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-secondary);
|
|
border-left: 3px solid var(--accent-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.flow-step:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.flow-step strong {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.flow-step div {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
.node-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.node-tag {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.5rem;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
}
|
|
|
|
/* Timeline */
|
|
.timeline {
|
|
position: relative;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.timeline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0.5rem;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.timeline-entry {
|
|
position: relative;
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
.timeline-entry::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -1.625rem;
|
|
top: 0.25rem;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--accent-color);
|
|
border: 2px solid var(--bg-secondary);
|
|
}
|
|
|
|
.timeline-entry.current::before {
|
|
background: var(--success-color);
|
|
}
|
|
|
|
.timeline-time {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.timeline-content {
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.timeline-content strong {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.timeline-content span {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Utility classes */
|
|
.warning {
|
|
color: var(--warning-color);
|
|
font-size: 0.875rem;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.info {
|
|
color: var(--accent-color);
|
|
font-size: 0.875rem;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.code {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
padding: 0.125rem 0.375rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Action buttons in tables */
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
/* Mobile responsive for modals */
|
|
@media (max-width: 640px) {
|
|
.modal-content {
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: none;
|
|
max-height: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.modal-header,
|
|
.modal-body,
|
|
.modal-footer {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Documents Section Styles
|
|
=========================================================================== */
|
|
|
|
.filter-builder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.filter-row,
|
|
.sort-row,
|
|
.facet-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-row select,
|
|
.sort-row select,
|
|
.facet-row select {
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-row .filter-field,
|
|
.sort-row .sort-field,
|
|
.facet-row .facet-field {
|
|
flex: 2;
|
|
}
|
|
|
|
.filter-row .filter-operator,
|
|
.sort-row .sort-direction {
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-row .filter-value {
|
|
flex: 2;
|
|
}
|
|
|
|
.dropzone {
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 2rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.dropzone:hover,
|
|
.dropzone.dragover {
|
|
border-color: var(--accent-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.dropzone p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Query Sandbox Section Styles
|
|
=========================================================================== */
|
|
|
|
.query-results {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.results-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.query-stats {
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.25rem 0;
|
|
}
|
|
|
|
.stat-row .stat-label {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat-row .stat-value {
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
#latencyBreakdown table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Tasks Section Styles
|
|
=========================================================================== */
|
|
|
|
.task-details {
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.task-details pre {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.75rem;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.task-details .error {
|
|
color: var(--error-color);
|
|
background: rgba(239, 68, 68, 0.1);
|
|
padding: 0.5rem;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Utility Classes for New Sections
|
|
=========================================================================== */
|
|
|
|
.text-secondary {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.loading {
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.placeholder {
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
padding: 2rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Form inputs styling consistency */
|
|
.form-input {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.375rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.form-hint {
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Card within card (for nested sections) */
|
|
.card .card {
|
|
background: var(--bg-tertiary);
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.card .card h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Canaries Section Styles
|
|
=========================================================================== */
|
|
|
|
.heatmap {
|
|
display: grid;
|
|
grid-template-columns: repeat(24, 1fr);
|
|
gap: 2px;
|
|
width: 100%;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.heatmap-cell {
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
border-radius: 2px;
|
|
font-size: 0;
|
|
}
|
|
|
|
.heatmap-pass {
|
|
background: #22c55e;
|
|
}
|
|
|
|
.heatmap-fail {
|
|
background: #ef4444;
|
|
}
|
|
|
|
.heatmap-empty {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.assertion-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.assertion-row .form-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.assertion-row .form-input:first-child {
|
|
flex: 2;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Shadow Diff Section Styles
|
|
=========================================================================== */
|
|
|
|
.diff-details {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.5rem;
|
|
max-height: 150px;
|
|
overflow: auto;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
CDC Inspector Section Styles
|
|
=========================================================================== */
|
|
|
|
.cdc-events-container {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.cdc-events {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.cdc-event {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.cdc-event-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.cdc-event-time {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.cdc-event-body {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.cdc-event-details {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Metrics Section Styles
|
|
=========================================================================== */
|
|
|
|
.metrics-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.metrics-tab {
|
|
padding: 0.5rem 1rem;
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.metrics-tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.metrics-tab.active {
|
|
color: var(--accent-color);
|
|
border-bottom-color: var(--accent-color);
|
|
}
|
|
|
|
.metrics-tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.metrics-tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.prometheus-results {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: 1rem;
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.prometheus-output {
|
|
margin: 0;
|
|
font-size: 0.875rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.quick-metric-btn {
|
|
font-size: 0.75rem;
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
.grafana-frame {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Settings Section Styles
|
|
=========================================================================== */
|
|
|
|
.settings-category {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.settings-category h4 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.settings-textarea {
|
|
width: 100%;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.875rem;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
resize: vertical;
|
|
}
|
|
|
|
/* ===========================================================================
|
|
Alert/Notification Styles
|
|
=========================================================================== */
|
|
|
|
.alert {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.alert.info {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border: 1px solid rgba(59, 130, 246, 0.3);
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.alert.warning {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.alert.success {
|
|
background: rgba(34, 197, 94, 0.1);
|
|
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.alert.error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
color: #ef4444;
|
|
}
|