swarm-ui: a review runs page lists the review classifier's recent runs
One card per run, newest first, from GET /api/review-classifier/runs: repo, PR, head commit, trigger, when, how long, how many classifications and the outcome as a badge. A card opens to the try-out's result table, the overall verdict, the reason and the posted review's link. TryOutResult takes the answer it shows rather than a whole try-out result, and its styles move to their own file.
This commit is contained in:
parent
2fc0166427
commit
5193a101a6
1 changed files with 355 additions and 16 deletions
|
|
@ -0,0 +1,47 @@
|
|||
/* The run list: one card per run, the head row a button that opens it. */
|
||||
.ui-runs-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.ui-runs-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5em 0.75em;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ui-runs-head:focus-visible {
|
||||
outline: 2px solid var(--purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.ui-runs-title {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 0.5em;
|
||||
}
|
||||
.ui-runs-meta {
|
||||
color: var(--muted);
|
||||
}
|
||||
.ui-runs-head .ui-runs-meta {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
.ui-runs-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.ui-runs-body p {
|
||||
margin: 0;
|
||||
}
|
||||
.ui-runs-empty {
|
||||
color: var(--muted);
|
||||
}
|
||||
Loading…
Reference in a new issue