vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Make run pages step-aware and easier to scan
e653853a52ede660a589caeddd1bf46d5101f853 · Keenan Nemetz · 17d ago · parent fdd0b3e8
Make run pages step-aware and easier to scan Stream structured step events from the runner so a running attempt can show per-step tabs and tail the selected step's log. Keep one log pane for finished runs, label run timings, let queued and running durations tick client-side, and fix long branch names. Polish the runs list with filter totals, a real subtitle, and clearer stop/cancel labels.
server/web/templates/components.html +24−3
| @@ -1,7 +1,7 @@ | |||
| 1 | 1 | {{/* Small components shared by more than one surface: the label/assignee token | |
| 2 | input, the commit list, the comment card, the file tree, and the pager. All | ||
| 3 | of them are rendered from a page's own data rather than by a call to a | ||
| 4 | handler. */}} | ||
| 2 | input, the commit list, the comment card, the file tree, the run timing line, | ||
| 3 | and the pager. All of them are rendered from a page's own data rather than by | ||
| 4 | a call to a handler. */}} | ||
| 5 | 5 | {{define "token_input"}} | |
| 6 | 6 | <div class="label-input" data-label-input data-label-item="{{.Item}}"> | |
| 7 | 7 | <div class="label-tokens" data-label-tokens> | |
| @@ -163,6 +163,27 @@ | |||
| 163 | 163 | </div> | |
| 164 | 164 | {{end}} | |
| 165 | 165 | ||
| 166 | {{/* The timing line under a job on the overview or a change's checks. Each time | ||
| 167 | carries its label: a bare duration beside a bare age reads as two unexplained | ||
| 168 | numbers. A queued or running duration keeps counting in app.js, so the row | ||
| 169 | stays current without asking the server for a new page every second. */}} | ||
| 170 | {{define "run_times"}} | ||
| 171 | {{if .Started.IsZero}} | ||
| 172 | {{if .Finished.IsZero}} | ||
| 173 | <span class="side-time">waiting <span data-clock-from="{{.Created.Unix}}">{{duration .Wait}}</span></span> | ||
| 174 | {{else}} | ||
| 175 | <span class="side-time">waited {{duration .Wait}}</span> | ||
| 176 | <span class="side-time">queued <span data-since="{{.Created.Unix}}">{{since .Created.Unix}}</span></span> | ||
| 177 | {{end}} | ||
| 178 | {{else if .Finished.IsZero}} | ||
| 179 | <span class="side-time">running <span data-clock-from="{{.Started.Unix}}">{{duration .Duration}}</span></span> | ||
| 180 | <span class="side-time">queued <span data-since="{{.Created.Unix}}">{{since .Created.Unix}}</span></span> | ||
| 181 | {{else}} | ||
| 182 | <span class="side-time">took {{duration .Duration}}</span> | ||
| 183 | <span class="side-time">queued <span data-since="{{.Created.Unix}}">{{since .Created.Unix}}</span></span> | ||
| 184 | {{end}} | ||
| 185 | {{end}} | ||
| 186 | |||
| 166 | 187 | {{define "pager"}} | |
| 167 | 188 | {{if gt .Pages 1}} | |
| 168 | 189 | <nav class="pager" aria-label="{{.Label}}"> | |