@@ -9,11 +9,13 @@ import { BeakerIcon, BookOpenIcon, CheckIcon } from "@heroicons/react/24/solid";
99import { useLocation } from "@remix-run/react" ;
1010import { formatDuration , formatDurationMilliseconds } from "@trigger.dev/core/v3" ;
1111import { useCallback , useRef } from "react" ;
12+ import { Badge } from "~/components/primitives/Badge" ;
1213import { Button , LinkButton } from "~/components/primitives/Buttons" ;
1314import { Checkbox } from "~/components/primitives/Checkbox" ;
1415import { Dialog , DialogTrigger } from "~/components/primitives/Dialog" ;
1516import { Header3 } from "~/components/primitives/Headers" ;
1617import { useSelectedItems } from "~/components/primitives/SelectedItemsProvider" ;
18+ import { SimpleTooltip } from "~/components/primitives/Tooltip" ;
1719import { useEnvironments } from "~/hooks/useEnvironments" ;
1820import { useFeatures } from "~/hooks/useFeatures" ;
1921import { useOrganization } from "~/hooks/useOrganizations" ;
@@ -39,9 +41,12 @@ import {
3941import { CancelRunDialog } from "./CancelRunDialog" ;
4042import { LiveTimer } from "./LiveTimer" ;
4143import { ReplayRunDialog } from "./ReplayRunDialog" ;
42- import { TaskRunStatusCombo } from "./TaskRunStatus" ;
4344import { RunTag } from "./RunTag" ;
44- import { Badge } from "~/components/primitives/Badge" ;
45+ import {
46+ descriptionForTaskRunStatus ,
47+ filterableTaskRunStatuses ,
48+ TaskRunStatusCombo ,
49+ } from "./TaskRunStatus" ;
4550
4651type RunsTableProps = {
4752 total : number ;
@@ -126,7 +131,27 @@ export function TaskRunsTable({
126131 < TableHeaderCell > Env</ TableHeaderCell >
127132 < TableHeaderCell > Task</ TableHeaderCell >
128133 < TableHeaderCell > Version</ TableHeaderCell >
129- < TableHeaderCell > Status</ TableHeaderCell >
134+ < TableHeaderCell
135+ tooltip = {
136+ < div className = "flex flex-col divide-y divide-grid-dimmed" >
137+ { filterableTaskRunStatuses . map ( ( status ) => (
138+ < div
139+ key = { status }
140+ className = "grid grid-cols-[8rem_1fr] gap-x-2 py-2 first:pt-1 last:pb-1"
141+ >
142+ < div className = "mb-0.5 flex items-center gap-1.5 whitespace-nowrap" >
143+ < TaskRunStatusCombo status = { status } />
144+ </ div >
145+ < Paragraph variant = "extra-small" className = "!text-wrap text-text-dimmed" >
146+ { descriptionForTaskRunStatus ( status ) }
147+ </ Paragraph >
148+ </ div >
149+ ) ) }
150+ </ div >
151+ }
152+ >
153+ Status
154+ </ TableHeaderCell >
130155 < TableHeaderCell > Started</ TableHeaderCell >
131156 < TableHeaderCell
132157 colSpan = { 3 }
@@ -287,7 +312,11 @@ export function TaskRunsTable({
287312 </ TableCell >
288313 < TableCell to = { path } > { run . version ?? "–" } </ TableCell >
289314 < TableCell to = { path } >
290- < TaskRunStatusCombo status = { run . status } />
315+ < SimpleTooltip
316+ content = { descriptionForTaskRunStatus ( run . status ) }
317+ disableHoverableContent
318+ button = { < TaskRunStatusCombo status = { run . status } /> }
319+ />
291320 </ TableCell >
292321 < TableCell to = { path } >
293322 { run . startedAt ? < DateTime date = { run . startedAt } /> : "–" }
0 commit comments