Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 0 additions & 185 deletions apps/web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2359,191 +2359,6 @@ a.drawer-li:hover,
background: var(--card, var(--background));
color: var(--foreground);
}
.bi-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 0.75rem;
}
.bi-stat {
padding: 1rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--card, var(--background));
}
.bi-stat-v {
font-size: 1.6rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.bi-stat-k {
font-size: 0.75rem;
color: var(--muted-foreground);
}
.bi-chart {
position: relative;
}
.bi-legend {
display: flex;
gap: 1rem;
font-size: 0.78rem;
margin-bottom: 0.5rem;
}
.bi-legend span {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.bi-legend i {
width: 10px;
height: 10px;
border-radius: 3px;
display: inline-block;
}
.bi-bars {
display: flex;
align-items: flex-end;
height: 160px;
padding-top: 8px;
border-bottom: 1px solid var(--border);
}
.bi-col {
flex: 1;
height: 100%;
display: flex;
flex-direction: column-reverse;
align-items: center;
gap: 2px;
}
.bi-col i {
display: block;
width: 100%;
max-width: 28px;
}
.bi-col:hover i,
.bi-col:focus-visible i {
filter: brightness(1.12);
}
.bi-col:focus-visible {
outline: 2px solid var(--ring, currentColor);
outline-offset: 1px;
}
.bi-x {
display: flex;
margin-top: 6px;
font-size: 0.7rem;
color: var(--muted-foreground);
font-variant-numeric: tabular-nums;
}
.bi-x span {
flex: 1;
text-align: center;
}
.bi-tip {
position: absolute;
top: 20px;
transform: translateX(-50%);
pointer-events: none;
z-index: 5;
padding: 0.4rem 0.6rem;
font-size: 0.78rem;
white-space: nowrap;
background: var(--popover, var(--card));
border: 1px solid var(--border);
border-radius: 6px;
}
.bi-tip b {
display: block;
}
.bi-scroll {
overflow-x: auto;
}
.bi-table {
width: 100%;
min-width: 560px;
border-collapse: collapse;
font-size: 0.85rem;
}
.bi-table th {
text-align: left;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted-foreground);
padding: 0.4rem 0.5rem;
}
.bi-table td {
padding: 0.55rem 0.5rem;
border-top: 1px solid var(--border);
font-variant-numeric: tabular-nums;
}
.bi-meter {
display: inline-flex;
gap: 2px;
width: 72px;
height: 8px;
margin-right: 8px;
vertical-align: middle;
border-radius: 4px;
overflow: hidden;
background: var(--muted);
}
.bi-meter i {
display: block;
height: 100%;
}
.bi-fails {
list-style: none;
margin: 0;
padding: 0;
}
.bi-fails button {
display: flex;
align-items: center;
gap: 0.75rem;
width: 100%;
padding: 0.6rem 0;
text-align: left;
border-top: 1px solid var(--border);
}
.bi-fails li:first-child button {
border-top: 0;
}
.bi-fails span {
margin-left: auto;
font-size: 0.78rem;
color: var(--muted-foreground);
}
.bi-later-h {
margin: 0.5rem 0 0.25rem;
font-size: 0.85rem;
font-weight: 700;
}
.bi-soon {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
margin-top: 0.75rem;
}
.bi-soon > div {
padding: 1rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--muted);
}
.bi-soon b {
display: block;
font-size: 0.85rem;
margin-bottom: 0.25rem;
}
.bi-soon span {
font-size: 0.78rem;
color: var(--muted-foreground);
}
@media (max-width: 960px) {
.bi-soon {
grid-template-columns: 1fr;
}
}

/* Sidebar bottom: profile button, Tools button, account menu. */
.sb-bottom {
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/bench/approvals-insights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ export function ApprovalsCard({
}) {
const tally = useApprovalTally(tenantId, runs);
return (
<section className="insights-panel">
<section className="bi-panel">
<h3>Approvals</h3>
<p className="insights-note">
<p className="bi-sub">
How you answered when a worker asked to act.
{capped ? ` Based on the ${runs.length} most recent runs.` : ""}
</p>
{tally.kind === "loading" ? (
<Skeleton className="h-24 w-full" />
) : tally.kind === "error" ? (
<p className="insights-note">Couldn't load approvals.</p>
<p className="bi-sub">Couldn't load approvals.</p>
) : (
<div className="appr">
{ROWS.map(([key, label, color]) => {
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/insights-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export type BenchDay = {
export type BenchWorkflowRow = {
readonly key: string;
readonly name: string;
readonly definitionName: string;
readonly runs: number;
readonly ok: number;
readonly fail: number;
Expand Down Expand Up @@ -190,6 +191,7 @@ export function computeBenchInsights(
return {
key,
name: newest[0] !== undefined ? runDisplayName(newest[0]) : key,
definitionName: newest[0]?.definitionName ?? key,
runs: rs.length,
ok: rs.filter((r) => bucketOf(r, now) === "ok").length,
fail: rs.filter((r) => bucketOf(r, now) === "fail").length,
Expand Down
Loading
Loading