feat(ui): add live collection job status mock screen
This commit is contained in:
@@ -168,6 +168,11 @@ main {
|
||||
margin-top: 0.9rem;
|
||||
}
|
||||
|
||||
#api-connect-form.is-disabled {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#api-connect-btn {
|
||||
background: #3498db;
|
||||
color: white;
|
||||
@@ -194,6 +199,108 @@ main {
|
||||
color: #dc3545;
|
||||
}
|
||||
|
||||
.job-status {
|
||||
margin-top: 1rem;
|
||||
border: 1px solid #d0d7de;
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.job-status-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.job-status-header h4 {
|
||||
margin: 0;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
#cancel-job-btn {
|
||||
background: #dc3545;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 0.45rem 0.75rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#cancel-job-btn:disabled {
|
||||
background: #9ca3af;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.job-status-meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
|
||||
gap: 0.5rem 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.meta-label {
|
||||
color: #64748b;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.job-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
padding: 0.2rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.job-status-badge.status-queued,
|
||||
.job-status-badge.status-running {
|
||||
background: #eff6ff;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.job-status-badge.status-success {
|
||||
background: #ecfdf3;
|
||||
color: #15803d;
|
||||
}
|
||||
|
||||
.job-status-badge.status-failed {
|
||||
background: #fef2f2;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.job-status-badge.status-canceled {
|
||||
background: #f1f5f9;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.job-status-logs ul {
|
||||
list-style: none;
|
||||
margin-top: 0.35rem;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.job-status-logs li {
|
||||
display: grid;
|
||||
grid-template-columns: 90px 1fr;
|
||||
gap: 0.5rem;
|
||||
padding: 0.45rem 0;
|
||||
border-bottom: 1px solid #eef2f7;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.log-time {
|
||||
color: #64748b;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.log-message {
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
#upload-status {
|
||||
margin-top: 1rem;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user