Add job detail template with execution history and metrics display
- Created a new job_detail.html template extending base.html - Implemented a macro for rendering nested data structures - Added sections for job identification, schedule & timing, status, configuration, execution history, and results - Included a timeline for execution history with visual indicators for job status - Displayed job metrics including total executions, success rate, and average duration - Handled cases for displaying results or indicating absence of results based on job status
This commit is contained in:
1 parent
5bf6b98ccc
commit
82c7712613
11 files changed
+1432
-79
No files matched your search
@@ -0,0 +1,3 @@
|
||||
.swagger-ui{color:#3b4151;container-name:swagger-ui;container-type:inline-size;/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */font-family:sans-serif}.swagger-ui html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui footer,.swagger-ui header,.swagger-ui nav,.swagger-ui section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure{margin:1em 40px}.swagger-ui hr{box-sizing:content-box;height:0;overflow:visible}.swagger-ui pre{font-family:monospace,monospace;font-size:1em}.swagger-ui a{background-color:transparent;-webkit-text-decoration-skip:objects}.swagger-ui abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.swagger-ui b,.swagger-ui strong{font-weight:inherit;font-weight:bolder}.swagger-ui code,.swagger-ui kbd,.swagger-ui samp{font-family:monospace,monospace;font-size:1em}.swagger-ui dfn{font-style:italic}.swagger-ui mark{background-color:#ff0;color:#000}.swagger-ui small{font-size:80%}.swagger-ui sub,.swagger-ui sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.swagger-ui sub{bottom:-.25em}.swagger-ui sup{top:-.5em}.swagger-ui audio,.swagger-ui video{display:inline-block}.swagger-ui audio:not([controls]){display:none;height:0}.swagger-ui img{border-style:none}.swagger-ui svg:not(:root){overflow:hidden}.swagger-ui button,.swagger-ui input,.swagger-ui optgroup,.swagger-ui select,.swagger-ui textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}.swagger-ui button,.swagger-ui input{overflow:visible}.swagger-ui button,.swagger-ui select{text-transform:none}.swagger-ui [type=reset],.swagger-ui [type=submit],.swagger-ui button,.swagger-ui html [type=button]{-webkit-appearance:button}.swagger-ui [type=button]::-moz-focus-inner,.swagger-ui [type=reset]::-moz-focus-inner,.swagger-ui [type=submit]::-moz-focus-inner,.swagger-ui button::-moz-focus-inner{border-style:none;padding:0}.swagger-ui [type=button]:-moz-focusring,.swagger-ui [type=reset]:-moz-focusring,.swagger-ui [type=submit]:-moz-focusring,.swagger-ui button:-moz-focusring{outline:1px dotted ButtonText}.swagger-ui fieldset{padding:.35em .75em .625em}.swagger-ui legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.swagger-ui progress{display:inline-block;vertical-align:baseline}.swagger-ui textarea{overflow:auto}.swagger-ui [type=checkbox],.swagger-ui [type=radio]{box-sizing:border-box;padding:0}.swagger-ui [type=number]::-webkit-inner-spin-button,.swagger-ui [type=number]::-webkit-outer-spin-button{height:auto}.swagger-ui [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.swagger-ui [type=search]::-webkit-search-cancel-button,.swagger-ui [type=search]::-webkit-search-decoration{-webkit-appearance:none}.swagger-ui ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.swagger-ui details,.swagger-ui menu{display:block}.swagger-ui summary{display:list-item}.swagger-ui canvas{display:inline-block}.swagger-ui [hidden],.swagger-ui template{display:none}.swagger-ui .debug *{outline:1px solid gold}.swagger-ui .debug-white *{outline:1px solid #fff}.swagger-ui .debug-black *{outline:1px solid #000}.swagger-ui .debug-grid{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/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vz//z8DLsD4gcGXiYEAGBIKGBne//fFpwAgwAB98AaF2pjlUQAAAABJRU5ErkJggg==) repeat 0 0}.swagger-ui .debug-grid-16{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpLine truncated
|
||||
|
||||
/*# sourceMappingURL=swagger-ui.css.map*/
|
||||
@@ -275,3 +275,392 @@ footer {
|
||||
margin-top: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ── Dashboard timelines ────────────────────────────────── */
|
||||
.timeline-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 22px;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding-right: 4px;
|
||||
}
|
||||
.timeline-day {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid #2d2d3a;
|
||||
border-radius: 10px;
|
||||
padding: 14px 18px 22px;
|
||||
}
|
||||
.timeline-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
.timeline-header h2 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #f1f5f9;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.timeline-today-tag {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
background: rgba(99, 102, 241, 0.18);
|
||||
color: #a5b4fc;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.timeline-legend {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
font-size: 12px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
.legend-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.swatch {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.swatch-completed { background: #4ade80; }
|
||||
.swatch-running { background: #facc15; }
|
||||
.swatch-scheduled { background: #818cf8; }
|
||||
|
||||
.timeline-axis {
|
||||
position: relative;
|
||||
height: 18px;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
.tick {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
transform: translateX(-50%);
|
||||
color: #64748b;
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.tick-label { user-select: none; }
|
||||
|
||||
.timeline-track {
|
||||
--lane-count: 1;
|
||||
--lane-height: 26px;
|
||||
position: relative;
|
||||
background: #0f1117;
|
||||
border: 1px solid #22222e;
|
||||
border-radius: 6px;
|
||||
min-height: 32px;
|
||||
height: calc(var(--lane-count) * var(--lane-height) + 6px);
|
||||
padding: 3px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gridline {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
background: rgba(148, 163, 184, 0.08);
|
||||
pointer-events: none;
|
||||
}
|
||||
.now-marker {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
background: #ef4444;
|
||||
box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
}
|
||||
.timeline-empty {
|
||||
color: #475569;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
padding: 30px 0;
|
||||
}
|
||||
.job-bar {
|
||||
--lane: 0;
|
||||
position: absolute;
|
||||
height: 22px;
|
||||
top: calc(var(--lane) * var(--lane-height, 26px) + 3px);
|
||||
border-radius: 4px;
|
||||
padding: 0 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
color: #0f172a;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
z-index: 2;
|
||||
min-width: 4px;
|
||||
}
|
||||
.job-bar-label {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.job-bar-completed { background: rgba(74, 222, 128, 0.85); }
|
||||
.job-bar-running { background: rgba(250, 204, 21, 0.85); }
|
||||
.job-bar-scheduled {
|
||||
background: rgba(129, 140, 248, 0.85);
|
||||
border: 1px dashed rgba(255, 255, 255, 0.25);
|
||||
color: #1e1b4b;
|
||||
}
|
||||
|
||||
/* ── Dashboard metrics cards ────────────────────────────── */
|
||||
.metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 14px;
|
||||
margin-top: 18px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
.metric-card {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid #2d2d3a;
|
||||
border-radius: 10px;
|
||||
padding: 14px 16px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
.metric-card h3 {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: #94a3b8;
|
||||
margin: 0;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid #2d2d3a;
|
||||
}
|
||||
.metric-card .num { font-variant-numeric: tabular-nums; text-align: right; }
|
||||
.metric-card .good { color: #4ade80; }
|
||||
.metric-card .bad { color: #f87171; }
|
||||
.metric-card .warn { color: #facc15; }
|
||||
.metric-card .muted { color: #64748b; font-size: 12px; }
|
||||
|
||||
.big-stat {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
.big-stat-value {
|
||||
font-size: 36px;
|
||||
font-weight: 700;
|
||||
color: #f1f5f9;
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1;
|
||||
}
|
||||
.big-stat-sub { color: #94a3b8; font-size: 12px; }
|
||||
|
||||
.kv-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.kv-list li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
color: #cbd5e1;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.kv-list li span:first-child {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.metric-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
.metric-table th, .metric-table td {
|
||||
padding: 6px 6px;
|
||||
text-align: right;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
.metric-table thead th {
|
||||
color: #94a3b8;
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.04em;
|
||||
border-bottom: 1px solid #2d2d3a;
|
||||
}
|
||||
.metric-table tbody th {
|
||||
text-align: left;
|
||||
color: #94a3b8;
|
||||
font-weight: 500;
|
||||
}
|
||||
.metric-table tbody tr + tr td,
|
||||
.metric-table tbody tr + tr th { border-top: 1px solid rgba(45, 45, 58, 0.6); }
|
||||
|
||||
.empty-note {
|
||||
font-size: 13px;
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
/* Dashboard variant: allow content to flow & page to scroll naturally. */
|
||||
.dashboard-container.dashboard-stack {
|
||||
height: auto;
|
||||
min-height: calc(100vh - 86px);
|
||||
}
|
||||
.dashboard-container.dashboard-stack .timeline-wrap {
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* ── Clickable rows / job links ─────────────────────────── */
|
||||
.row-link {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
padding: 2px 4px;
|
||||
margin: -2px -4px;
|
||||
border-radius: 4px;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.row-link:hover { background: rgba(99, 102, 241, 0.12); }
|
||||
|
||||
.job-link {
|
||||
color: #a5b4fc;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
.job-link:hover { text-decoration: underline; }
|
||||
.job-link .muted { font-weight: 400; }
|
||||
|
||||
a.job-bar { text-decoration: none; cursor: pointer; }
|
||||
a.job-bar:hover { filter: brightness(1.1); box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
|
||||
|
||||
/* ── Job detail page ────────────────────────────────────── */
|
||||
.detail-header {
|
||||
margin-bottom: 14px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 2px solid #2d2d3a;
|
||||
}
|
||||
.detail-header h1 {
|
||||
border-bottom: none;
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.detail-crumbs {
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.detail-crumbs a {
|
||||
color: #a5b4fc;
|
||||
text-decoration: none;
|
||||
}
|
||||
.detail-crumbs a:hover { text-decoration: underline; }
|
||||
.detail-subtitle {
|
||||
font-size: 13px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.detail-subtitle code,
|
||||
.kv-list code,
|
||||
.metric-table code {
|
||||
background: rgba(255,255,255,0.06);
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.swatch-failed { background: #f87171; }
|
||||
|
||||
.badge-status-completed { background: rgba(34,197,94,0.18); color: #4ade80; font-size: 13px; padding: 4px 12px; }
|
||||
.badge-status-failed { background: rgba(239,68,68,0.18); color: #f87171; font-size: 13px; padding: 4px 12px; }
|
||||
.badge-status-running { background: rgba(234,179,8,0.18); color: #facc15; font-size: 13px; padding: 4px 12px; }
|
||||
.badge-status-created { background: rgba(129,140,248,0.18); color: #a5b4fc; font-size: 13px; padding: 4px 12px; }
|
||||
.badge-status-cancelled { background: rgba(100,116,139,0.18); color: #94a3b8; font-size: 13px; padding: 4px 12px; }
|
||||
|
||||
.history-timeline { padding: 14px 18px 16px; }
|
||||
.history-track {
|
||||
position: relative;
|
||||
background: #0f1117;
|
||||
border: 1px solid #22222e;
|
||||
border-radius: 6px;
|
||||
height: 56px;
|
||||
margin-bottom: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.history-dot {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-left: -7px;
|
||||
margin-top: -7px;
|
||||
border-radius: 50%;
|
||||
background: #4ade80;
|
||||
box-shadow: 0 0 0 2px rgba(15, 17, 23, 0.9);
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
z-index: 2;
|
||||
}
|
||||
.history-dot:hover {
|
||||
transform: scale(1.35);
|
||||
z-index: 3;
|
||||
}
|
||||
.history-dot-completed { background: #4ade80; }
|
||||
.history-dot-failed { background: #f87171; }
|
||||
.history-dot-running { background: #facc15; }
|
||||
.history-dot-scheduled {
|
||||
background: #818cf8;
|
||||
border: 1px dashed rgba(255,255,255,0.35);
|
||||
}
|
||||
.history-dot.is-current {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: -9px;
|
||||
margin-top: -9px;
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.55), 0 0 12px rgba(99,102,241,0.6);
|
||||
z-index: 4;
|
||||
}
|
||||
.history-footnote {
|
||||
font-size: 12px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.metric-card-wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.results-table tbody th {
|
||||
width: 30%;
|
||||
padding-right: 14px;
|
||||
}
|
||||
.results-table tbody td {
|
||||
text-align: left;
|
||||
}
|
||||
.nested-item { display: block; font-size: 13px; }
|
||||
.nested-key { color: #94a3b8; margin-right: 6px; }
|
||||
Reference in new issue
Block a user