mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
web replay fix
This commit is contained in:
1 parent
4ace78c36b
commit
229f015281
2 files changed
+43
-37
No files matched your search
@@ -62,41 +62,43 @@ export default function RunList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<table className="run-table">
|
<div className="run-list">
|
||||||
<thead>
|
<table className="run-table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>started</th>
|
<tr>
|
||||||
<th>spec</th>
|
<th>started</th>
|
||||||
<th>seed</th>
|
<th>spec</th>
|
||||||
<th>platform</th>
|
<th>seed</th>
|
||||||
<th>duration</th>
|
<th>platform</th>
|
||||||
<th>steps</th>
|
<th>duration</th>
|
||||||
<th>violations</th>
|
<th>steps</th>
|
||||||
<th></th>
|
<th>violations</th>
|
||||||
</tr>
|
<th></th>
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{runs.map((run) => (
|
|
||||||
<tr key={run.id}>
|
|
||||||
<td>
|
|
||||||
<Link to={`/runs/${run.id}`}>{formatStartedAt(run.started_at)}</Link>
|
|
||||||
</td>
|
|
||||||
<td title={run.spec_path}>{basename(run.spec_path)}</td>
|
|
||||||
<td>{run.seed}</td>
|
|
||||||
<td>{run.platform}</td>
|
|
||||||
<td>{formatDuration(run.duration_millis)}</td>
|
|
||||||
<td>{run.step_count}</td>
|
|
||||||
<td>
|
|
||||||
{run.violation_count > 0 ? (
|
|
||||||
<span className="chip chip-violation">{run.violation_count}</span>
|
|
||||||
) : (
|
|
||||||
"0"
|
|
||||||
)}
|
|
||||||
</td>
|
|
||||||
<td>{run.in_progress ? <span className="chip chip-progress">in progress</span> : null}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
</table>
|
{runs.map((run) => (
|
||||||
|
<tr key={run.id}>
|
||||||
|
<td>
|
||||||
|
<Link to={`/runs/${run.id}`}>{formatStartedAt(run.started_at)}</Link>
|
||||||
|
</td>
|
||||||
|
<td title={run.spec_path}>{basename(run.spec_path)}</td>
|
||||||
|
<td>{run.seed}</td>
|
||||||
|
<td>{run.platform}</td>
|
||||||
|
<td>{formatDuration(run.duration_millis)}</td>
|
||||||
|
<td>{run.step_count}</td>
|
||||||
|
<td>
|
||||||
|
{run.violation_count > 0 ? (
|
||||||
|
<span className="chip chip-violation">{run.violation_count}</span>
|
||||||
|
) : (
|
||||||
|
"0"
|
||||||
|
)}
|
||||||
|
</td>
|
||||||
|
<td>{run.in_progress ? <span className="chip chip-progress">in progress</span> : null}</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -57,11 +57,15 @@ button:hover {
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.run-list {
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.run-table {
|
.run-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
align-self: flex-start;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.run-table th,
|
.run-table th,
|
||||||
|
|||||||
Reference in new issue
Block a user