fixed SPA

This commit is contained in:
2025-12-16 15:23:40 +01:00
parent 1555dc02e9
commit 2809d18c12
13 changed files with 3096 additions and 1026 deletions

View File

@@ -1,50 +1,58 @@
:root {
--bg: #0b1020;
--card: #0f172a;
--card-soft: #131c35;
--border: rgba(255, 255, 255, 0.08);
--muted: #94a3b8;
--text: #e2e8f0;
--accent: #10b981;
--accent-2: #0ea5e9;
--danger: #ef4444;
--success: #22c55e;
--shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
--automation-bg: #f0f2f5;
--automation-card: #ffffff;
--automation-card-soft: #f7f8fa;
--automation-border: #e4e6eb;
--automation-muted: #6b7280;
--automation-text: #0f172a;
--automation-accent: #1877f2;
--automation-accent-2: #2563eb;
--automation-danger: #dc2626;
--automation-success: #059669;
--automation-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
--automation-shadow-md: 0 14px 45px rgba(15, 23, 42, 0.12);
}
* {
.automation-view * {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
background: radial-gradient(120% 120% at 10% 20%, rgba(16, 185, 129, 0.12), transparent 40%),
radial-gradient(120% 120% at 80% 0%, rgba(14, 165, 233, 0.12), transparent 40%),
var(--bg);
color: var(--text);
min-height: 100vh;
padding: 32px 18px 48px;
.automation-view {
color: var(--automation-text);
}
.auto-shell {
max-width: 1500px;
margin: 0 auto;
.automation-view .auto-shell {
display: flex;
flex-direction: column;
gap: 18px;
gap: 16px;
padding-bottom: 32px;
}
.auto-hero {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.08)),
var(--card);
border: 1px solid var(--border);
border-radius: 18px;
padding: 22px 22px 18px;
box-shadow: var(--shadow);
.automation-view .auto-hero {
position: relative;
overflow: hidden;
background: var(--automation-card);
border: 1px solid var(--automation-border);
border-radius: 14px;
padding: 18px 20px;
box-shadow: var(--automation-shadow-sm);
margin: 0;
}
.hero-head {
.automation-view .auto-hero::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(120deg, rgba(24, 119, 242, 0.08), rgba(37, 99, 235, 0.05));
pointer-events: none;
}
.automation-view .auto-hero > * {
position: relative;
z-index: 1;
}
.automation-view .hero-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
@@ -52,91 +60,78 @@ body {
flex-wrap: wrap;
}
.hero-text h1 {
.automation-view .hero-text h1 {
margin: 4px 0;
font-size: 28px;
letter-spacing: -0.02em;
font-size: 24px;
letter-spacing: -0.01em;
color: var(--automation-text);
}
.subline {
margin: 6px 0 10px;
color: var(--muted);
}
.eyebrow {
font-size: 13px;
.automation-view .eyebrow {
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-2);
color: var(--automation-accent-2);
margin: 0;
font-weight: 700;
}
.hero-pills {
.automation-view .back-link {
color: var(--automation-accent);
text-decoration: none;
font-size: 13px;
font-weight: 600;
}
.automation-view .back-link:hover {
text-decoration: underline;
}
.automation-view .hero-actions {
display: flex;
gap: 10px;
gap: 8px;
align-items: center;
flex-wrap: wrap;
}
.pill {
background: rgba(255, 255, 255, 0.04);
color: var(--text);
border: 1px solid var(--border);
border-radius: 999px;
padding: 8px 12px;
font-size: 13px;
}
.hero-actions {
display: flex;
gap: 10px;
align-items: center;
}
.back-link {
color: var(--muted);
text-decoration: none;
font-size: 14px;
}
.hero-stats {
margin-top: 14px;
.automation-view .hero-stats {
margin-top: 12px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.stat {
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
.automation-view .stat {
background: var(--automation-card-soft);
border: 1px solid var(--automation-border);
border-radius: 12px;
padding: 12px;
box-shadow: var(--automation-shadow-sm);
}
.stat-label {
color: var(--muted);
font-size: 13px;
.automation-view .stat-label {
color: var(--automation-muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
margin: 0 0 4px;
}
.stat-value {
.automation-view .stat-value {
font-size: 22px;
font-weight: 700;
margin: 0;
}
.auto-grid {
display: grid;
grid-template-columns: 1fr;
gap: 18px;
.automation-view .panel {
background: var(--automation-card);
border: 1px solid var(--automation-border);
border-radius: 12px;
padding: 18px 18px 16px;
box-shadow: var(--automation-shadow-sm);
}
.panel {
background: var(--card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 18px;
box-shadow: var(--shadow);
}
.panel-header {
.automation-view .panel-header {
display: flex;
align-items: center;
justify-content: space-between;
@@ -145,137 +140,147 @@ body {
margin-bottom: 12px;
}
.panel-eyebrow {
.automation-view .panel-eyebrow {
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 12px;
color: var(--muted);
color: var(--automation-muted);
margin: 0;
font-weight: 700;
}
.panel-actions {
.automation-view .panel-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.form-grid {
.automation-view .form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.field {
.automation-view .field {
display: flex;
flex-direction: column;
gap: 6px;
}
.field.full {
.automation-view .field.full {
grid-column: 1 / -1;
}
.field.inline {
.automation-view .field.inline {
min-width: 0;
}
.field[data-section] {
.automation-view .field[data-section] {
display: grid;
}
label {
.automation-view label {
font-weight: 600;
color: var(--text);
color: var(--automation-text);
}
input,
textarea,
select {
.automation-view input,
.automation-view textarea,
.automation-view select {
width: 100%;
border-radius: 10px;
border: 1px solid var(--border);
border: 1px solid var(--automation-border);
padding: 10px 12px;
background: #0c1427;
color: var(--text);
background: #fff;
color: var(--automation-text);
font-family: inherit;
font-size: 14px;
outline: none;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
border-color: var(--accent-2);
box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
.automation-view input:focus,
.automation-view textarea:focus,
.automation-view select:focus {
border-color: var(--automation-accent-2);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea {
.automation-view textarea {
resize: vertical;
}
small {
color: var(--muted);
.automation-view small {
color: var(--automation-muted);
}
.template-hint {
border: 1px dashed var(--border);
background: rgba(255, 255, 255, 0.02);
.automation-view .template-hint {
border: 1px dashed var(--automation-border);
background: #f8fafc;
border-radius: 12px;
padding: 10px 12px;
font-family: 'JetBrains Mono', monospace;
color: var(--muted);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
color: var(--automation-muted);
}
.template-title {
.automation-view .template-title {
margin: 0 0 6px;
color: var(--text);
font-weight: 600;
color: var(--automation-text);
font-weight: 700;
}
.template-copy {
.automation-view .template-copy {
margin: 0;
word-break: break-all;
}
.form-status {
.automation-view .form-status {
min-height: 22px;
color: var(--muted);
color: var(--automation-muted);
}
.form-status.error {
color: var(--danger);
.automation-view .form-status.error {
color: var(--automation-danger);
}
.form-status.success {
color: var(--success);
.automation-view .form-status.success {
color: var(--automation-success);
}
.auto-table {
.automation-view .table-wrap {
overflow-x: auto;
}
.automation-view .auto-table {
width: 100%;
border-collapse: collapse;
min-width: 720px;
}
.auto-table th,
.auto-table td {
.automation-view .auto-table th,
.automation-view .auto-table td {
padding: 10px 8px;
text-align: left;
border-bottom: 1px solid var(--border);
border-bottom: 1px solid var(--automation-border);
font-size: 14px;
white-space: nowrap;
}
.auto-table th {
color: var(--muted);
font-weight: 600;
.automation-view .auto-table th {
color: var(--automation-muted);
font-weight: 700;
background: var(--automation-card-soft);
}
.auto-table th[data-sort-column="runs"],
.auto-table td.runs-count {
.automation-view .auto-table th[data-sort-column="runs"],
.automation-view .auto-table td.runs-count {
width: 1%;
white-space: nowrap;
text-align: right;
}
.auto-table .sort-indicator {
.automation-view .auto-table .sort-indicator {
display: inline-block;
margin-left: 6px;
width: 10px;
@@ -284,108 +289,112 @@ small {
border-bottom: 0;
border-left: 0;
transform: rotate(45deg);
opacity: 0.35;
opacity: 0.25;
}
.auto-table th.sort-asc .sort-indicator {
border-top: 6px solid var(--accent-2);
.automation-view .auto-table th.sort-asc .sort-indicator {
border-top: 6px solid var(--automation-accent-2);
transform: rotate(225deg);
opacity: 0.9;
}
.auto-table th.sort-desc .sort-indicator {
border-top: 6px solid var(--accent-2);
.automation-view .auto-table th.sort-desc .sort-indicator {
border-top: 6px solid var(--automation-accent-2);
transform: rotate(45deg);
opacity: 0.9;
}
.table-filter-row input,
.table-filter-row select {
.automation-view .table-filter-row th {
background: var(--automation-card);
}
.automation-view .table-filter-row input,
.automation-view .table-filter-row select {
width: 100%;
border-radius: 8px;
border: 1px solid var(--border);
border: 1px solid var(--automation-border);
padding: 8px 10px;
background: #0c1427;
color: var(--text);
background: #fff;
color: var(--automation-text);
font-size: 13px;
}
.auto-table tr.is-selected {
background: rgba(14, 165, 233, 0.08);
.automation-view .auto-table tr.is-selected td {
background: #eef2ff;
}
.row-title {
.automation-view .row-title {
font-weight: 700;
color: var(--text);
color: var(--automation-text);
}
.row-sub {
color: var(--muted);
.automation-view .row-sub {
color: var(--automation-muted);
font-size: 13px;
word-break: break-all;
}
.table-wrap {
overflow-x: auto;
}
.badge {
.automation-view .badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border);
background: #eef2ff;
color: var(--automation-accent-2);
border: 1px solid rgba(37, 99, 235, 0.28);
}
.badge.success {
color: var(--success);
border-color: rgba(34, 197, 94, 0.35);
.automation-view .badge.success {
background: rgba(5, 150, 105, 0.12);
color: var(--automation-success);
border-color: rgba(5, 150, 105, 0.35);
}
.badge.error {
color: var(--danger);
border-color: rgba(239, 68, 68, 0.35);
.automation-view .badge.error {
background: rgba(220, 38, 38, 0.12);
color: var(--automation-danger);
border-color: rgba(220, 38, 38, 0.35);
}
.row-actions {
.automation-view .row-actions {
display: flex;
gap: 6px;
flex-wrap: nowrap;
}
.hidden-value {
.automation-view .hidden-value {
display: none;
}
.icon-btn {
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.04);
color: var(--text);
.automation-view .icon-btn {
border: 1px solid var(--automation-border);
background: var(--automation-card-soft);
color: var(--automation-text);
border-radius: 8px;
padding: 6px 8px;
cursor: pointer;
font-size: 14px;
line-height: 1;
transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.icon-btn:hover {
.automation-view .icon-btn:hover {
transform: translateY(-1px);
opacity: 0.95;
border-color: rgba(255, 255, 255, 0.2);
border-color: #d1d5db;
box-shadow: var(--automation-shadow-sm);
}
.icon-btn.danger {
color: #ef4444;
border-color: rgba(239, 68, 68, 0.35);
.automation-view .icon-btn.danger {
color: var(--automation-danger);
border-color: rgba(220, 38, 38, 0.35);
}
.primary-btn,
.secondary-btn,
.ghost-btn {
.automation-view .primary-btn,
.automation-view .secondary-btn,
.automation-view .ghost-btn {
border: 1px solid transparent;
border-radius: 10px;
padding: 10px 14px;
@@ -395,49 +404,50 @@ small {
transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.primary-btn {
background: linear-gradient(135deg, var(--accent), var(--accent-2));
color: #0b1020;
box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
.automation-view .primary-btn {
background: linear-gradient(135deg, var(--automation-accent-2), var(--automation-accent));
color: #fff;
box-shadow: 0 10px 30px rgba(24, 119, 242, 0.25);
border: none;
}
.secondary-btn {
background: rgba(255, 255, 255, 0.06);
color: var(--text);
border-color: var(--border);
.automation-view .secondary-btn {
background: #e4e6eb;
color: var(--automation-text);
border-color: #d1d5db;
}
.ghost-btn {
.automation-view .ghost-btn {
background: transparent;
color: var(--text);
border-color: var(--border);
color: var(--automation-text);
border-color: var(--automation-border);
}
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
.automation-view .primary-btn:hover,
.automation-view .secondary-btn:hover,
.automation-view .ghost-btn:hover {
transform: translateY(-1px);
opacity: 0.95;
}
.list-status,
.runs-status,
.import-status {
.automation-view .list-status,
.automation-view .runs-status,
.automation-view .import-status {
min-height: 20px;
color: var(--muted);
color: var(--automation-muted);
margin-bottom: 8px;
}
.filter-input {
.automation-view .filter-input {
border-radius: 10px;
border: 1px solid var(--border);
border: 1px solid var(--automation-border);
padding: 8px 10px;
background: #0c1427;
color: var(--text);
background: #fff;
color: var(--automation-text);
min-width: 200px;
}
.runs-list {
.automation-view .runs-list {
list-style: none;
padding: 0;
margin: 0;
@@ -445,14 +455,15 @@ small {
gap: 10px;
}
.run-item {
border: 1px solid var(--border);
.automation-view .run-item {
border: 1px solid var(--automation-border);
border-radius: 12px;
padding: 12px;
background: #0c1427;
background: var(--automation-card-soft);
box-shadow: var(--automation-shadow-sm);
}
.run-top {
.automation-view .run-top {
display: flex;
align-items: center;
justify-content: space-between;
@@ -460,58 +471,57 @@ small {
flex-wrap: wrap;
}
.run-meta {
.automation-view .run-meta {
display: flex;
gap: 8px;
align-items: center;
color: var(--muted);
color: var(--automation-muted);
font-size: 13px;
}
.run-body {
.automation-view .run-body {
margin: 8px 0 0;
color: var(--text);
font-family: 'JetBrains Mono', monospace;
color: var(--automation-text);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-size: 13px;
white-space: pre-wrap;
word-break: break-all;
}
.runs-hint {
color: var(--muted);
.automation-view .runs-hint {
color: var(--automation-muted);
margin: 0;
}
.import-panel textarea {
width: 100%;
}
.import-hint {
color: var(--muted);
.automation-view .import-hint {
color: var(--automation-muted);
margin: 0 0 8px;
}
.switch {
.automation-view .switch {
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-weight: 600;
color: var(--automation-text);
}
.switch input {
.automation-view .switch input {
display: none;
}
.switch-slider {
.automation-view .switch-slider {
width: 42px;
height: 22px;
background: rgba(255, 255, 255, 0.2);
background: #d1d5db;
border-radius: 999px;
position: relative;
transition: background 0.2s ease;
}
.switch-slider::after {
content: '';
.automation-view .switch-slider::after {
content: "";
width: 18px;
height: 18px;
background: #fff;
@@ -519,51 +529,52 @@ small {
position: absolute;
top: 2px;
left: 2px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
transition: transform 0.2s ease;
}
.switch input:checked + .switch-slider {
background: var(--accent);
.automation-view .switch input:checked + .switch-slider {
background: var(--automation-accent);
}
.switch input:checked + .switch-slider::after {
.automation-view .switch input:checked + .switch-slider::after {
transform: translateX(20px);
}
.switch-label {
color: var(--muted);
.automation-view .switch-label {
color: var(--automation-muted);
font-weight: 600;
}
.modal {
.automation-view .modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(2px);
padding: 24px;
background: rgba(15, 23, 42, 0.55);
z-index: 900;
}
.modal__backdrop {
.automation-view .modal__backdrop {
position: absolute;
inset: 0;
}
.modal__content {
.automation-view .modal__content {
position: relative;
background: var(--card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 18px;
background: var(--automation-card);
border: 1px solid var(--automation-border);
border-radius: 14px;
padding: 20px 20px 16px;
width: min(1100px, 96vw);
max-height: 92vh;
overflow-y: auto;
box-shadow: var(--shadow);
box-shadow: var(--automation-shadow-md);
}
.modal__header {
.automation-view .modal__header {
display: flex;
align-items: center;
justify-content: space-between;
@@ -571,25 +582,25 @@ small {
margin-bottom: 10px;
}
.modal-actions {
.automation-view .modal-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.modal[hidden] {
.automation-view .modal[hidden] {
display: none;
}
.preview-panel {
border: 1px solid var(--border);
.automation-view .preview-panel {
border: 1px solid var(--automation-border);
border-radius: 12px;
padding: 12px;
background: rgba(255, 255, 255, 0.02);
background: var(--automation-card-soft);
}
.preview-header {
.automation-view .preview-header {
display: flex;
align-items: center;
justify-content: space-between;
@@ -597,29 +608,29 @@ small {
margin-bottom: 8px;
}
.preview-grid {
.automation-view .preview-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 10px;
}
.preview-block {
border: 1px dashed var(--border);
.automation-view .preview-block {
border: 1px dashed var(--automation-border);
border-radius: 10px;
padding: 8px;
background: #0c1427;
background: #fff;
}
.preview-label {
.automation-view .preview-label {
margin: 0 0 4px;
color: var(--muted);
color: var(--automation-muted);
font-size: 13px;
}
.preview-value {
.automation-view .preview-value {
margin: 0;
color: var(--text);
font-family: 'JetBrains Mono', monospace;
color: var(--automation-text);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-size: 13px;
white-space: pre-wrap;
word-break: break-all;
@@ -627,65 +638,65 @@ small {
overflow: auto;
}
.preview-hint {
color: var(--muted);
.automation-view .preview-hint {
color: var(--automation-muted);
margin: 8px 0 0;
font-size: 13px;
}
.placeholder-table {
.automation-view .placeholder-table {
width: 100%;
border-collapse: collapse;
margin-top: 6px;
}
.placeholder-table td {
.automation-view .placeholder-table td {
padding: 6px 8px;
border-bottom: 1px solid var(--border);
font-family: 'JetBrains Mono', monospace;
border-bottom: 1px solid var(--automation-border);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-size: 13px;
color: var(--text);
color: var(--automation-text);
vertical-align: top;
}
.placeholder-table td.placeholder-key {
.automation-view .placeholder-table td.placeholder-key {
width: 30%;
color: var(--muted);
color: var(--automation-muted);
}
.placeholder-hint {
color: var(--muted);
.automation-view .placeholder-hint {
color: var(--automation-muted);
font-size: 12px;
margin: 6px 0 0;
}
@media (max-width: 1050px) {
.auto-grid {
.automation-view .form-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
body {
padding: 16px 12px 32px;
.automation-view .auto-shell {
gap: 12px;
}
.panel-header {
.automation-view .panel-header {
flex-direction: column;
align-items: flex-start;
}
.panel-actions {
.automation-view .panel-actions {
width: 100%;
justify-content: flex-start;
}
.form-grid {
grid-template-columns: 1fr;
}
.hero-head {
.automation-view .hero-head {
flex-direction: column;
align-items: flex-start;
}
.automation-view .modal {
padding: 12px;
}
}