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/static/vole.css +25−49
| @@ -1617,10 +1617,22 @@ details[open] > summary .tree-chevron { transform: rotate(90deg); } | |||
| 1617 | 1617 | .side-meta { | |
| 1618 | 1618 | display: flex; | |
| 1619 | 1619 | gap: 8px; | |
| 1620 | min-width: 0; | ||
| 1620 | 1621 | font-size: calc(12.1px * var(--font-scale)); | |
| 1621 | 1622 | color: var(--fg-faint); | |
| 1622 | 1623 | white-space: nowrap; | |
| 1623 | 1624 | } | |
| 1625 | /* A branch or workflow name gives way before the times do: it is the one part of | ||
| 1626 | the row that can be arbitrarily long, so it takes an ellipsis and keeps the | ||
| 1627 | whole value in its title. */ | ||
| 1628 | .side-ellipsis { | ||
| 1629 | flex: 0 1 auto; | ||
| 1630 | min-width: 0; | ||
| 1631 | overflow: hidden; | ||
| 1632 | text-overflow: ellipsis; | ||
| 1633 | white-space: nowrap; | ||
| 1634 | } | ||
| 1635 | .side-time { flex: 0 0 auto; white-space: nowrap; } | ||
| 1624 | 1636 | .side-run-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; } | |
| 1625 | 1637 | .side-run-top .status { flex: 0 0 auto; } | |
| 1626 | 1638 | ||
| @@ -1707,60 +1719,30 @@ details[open] > summary .tree-chevron { transform: rotate(90deg); } | |||
| 1707 | 1719 | .run-summary .status-note { margin: 0; } | |
| 1708 | 1720 | .run-summary code { font-size: calc(11.55px * var(--font-scale)); overflow-wrap: anywhere; } | |
| 1709 | 1721 | ||
| 1710 | /* Step logs are loaded on demand. The details element is the trigger; the pre is | ||
| 1711 | the target, and htmx uses textContent so a log can never become markup. */ | ||
| 1712 | .run-log { | ||
| 1713 | margin: 4px 0; | ||
| 1714 | background: var(--bg-panel); | ||
| 1715 | border: 1px solid var(--border); | ||
| 1716 | border-radius: var(--radius); | ||
| 1717 | overflow: hidden; | ||
| 1718 | } | ||
| 1719 | .run-log > summary { | ||
| 1720 | display: flex; | ||
| 1721 | align-items: center; | ||
| 1722 | gap: 6px; | ||
| 1723 | padding: 6px 10px; | ||
| 1724 | color: var(--fg-muted); | ||
| 1725 | font-size: calc(13.2px * var(--font-scale)); | ||
| 1726 | cursor: pointer; | ||
| 1727 | list-style: none; | ||
| 1728 | } | ||
| 1729 | .run-log > summary::-webkit-details-marker { display: none; } | ||
| 1730 | .run-log > summary:hover { color: var(--fg); background: var(--bg-hover); } | ||
| 1731 | .run-log > summary .icon { width: 12px; height: 12px; color: var(--fg-faint); } | ||
| 1732 | .run-log[open] > summary { | ||
| 1733 | color: var(--fg); | ||
| 1734 | border-bottom: 1px solid var(--border); | ||
| 1735 | } | ||
| 1722 | /* A run's log is one pre. While the attempt runs, app.js tails the selected | ||
| 1723 | step's byte range; once it is recorded, the step tabs swap the same pre with | ||
| 1724 | htmx, so a log can never become markup. */ | ||
| 1736 | 1725 | .run-log-card { | |
| 1737 | 1726 | padding: 0; | |
| 1738 | 1727 | overflow: hidden; | |
| 1739 | 1728 | } | |
| 1740 | .run-log-card > .run-log { | ||
| 1741 | margin: 0; | ||
| 1742 | border: 0; | ||
| 1729 | .run-log-steps { | ||
| 1730 | display: flex; | ||
| 1731 | flex-wrap: wrap; | ||
| 1732 | gap: 6px; | ||
| 1733 | padding: 10px 12px; | ||
| 1743 | 1734 | border-bottom: 1px solid var(--border); | |
| 1744 | border-radius: 0; | ||
| 1745 | } | ||
| 1746 | .run-log-card > .run-log:last-child { border-bottom: 0; } | ||
| 1747 | .run-log-title { flex: 1; color: var(--fg); font-weight: 500; } | ||
| 1748 | .run-log-meta { | ||
| 1749 | margin-left: auto; | ||
| 1750 | color: var(--fg-faint); | ||
| 1751 | font-size: calc(12.1px * var(--font-scale)); | ||
| 1752 | font-variant-numeric: tabular-nums; | ||
| 1753 | 1735 | } | |
| 1736 | .run-log-step { font-family: inherit; cursor: pointer; } | ||
| 1737 | .run-log-step-name { color: var(--fg); } | ||
| 1738 | .run-log-step .run-step-meta { margin-left: 2px; } | ||
| 1739 | .run-log-step.is-empty { cursor: default; opacity: 0.65; } | ||
| 1740 | .run-log-step.is-empty:hover { color: var(--fg-muted); border-color: var(--border-strong); } | ||
| 1754 | 1741 | .run-step-num { | |
| 1755 | 1742 | color: var(--fg-faint); | |
| 1756 | 1743 | font-variant-numeric: tabular-nums; | |
| 1757 | 1744 | min-width: 2.5ch; | |
| 1758 | 1745 | } | |
| 1759 | .run-step-name { | ||
| 1760 | flex: 1; | ||
| 1761 | color: var(--fg); | ||
| 1762 | overflow-wrap: anywhere; | ||
| 1763 | } | ||
| 1764 | 1746 | .run-step-meta { | |
| 1765 | 1747 | margin-left: 8px; | |
| 1766 | 1748 | color: var(--fg-faint); | |
| @@ -1768,12 +1750,6 @@ details[open] > summary .tree-chevron { transform: rotate(90deg); } | |||
| 1768 | 1750 | font-variant-numeric: tabular-nums; | |
| 1769 | 1751 | white-space: nowrap; | |
| 1770 | 1752 | } | |
| 1771 | .run-log-empty { | ||
| 1772 | margin: 0; | ||
| 1773 | padding: 10px 12px; | ||
| 1774 | color: var(--fg-muted); | ||
| 1775 | font-size: calc(13.2px * var(--font-scale)); | ||
| 1776 | } | ||
| 1777 | 1753 | .run-log-text { | |
| 1778 | 1754 | margin: 0; | |
| 1779 | 1755 | padding: 10px 12px; | |