|
7 | 7 | import { type LoaderFunctionArgs } from "@remix-run/server-runtime"; |
8 | 8 | import { |
9 | 9 | formatDurationMilliseconds, |
10 | | - MachinePresetName, |
11 | 10 | type TaskRunError, |
12 | 11 | taskRunErrorEnhancer, |
13 | 12 | } from "@trigger.dev/core/v3"; |
@@ -46,7 +45,10 @@ import { RunTag } from "~/components/runs/v3/RunTag"; |
46 | 45 | import { SpanEvents } from "~/components/runs/v3/SpanEvents"; |
47 | 46 | import { SpanTitle } from "~/components/runs/v3/SpanTitle"; |
48 | 47 | import { TaskRunAttemptStatusCombo } from "~/components/runs/v3/TaskRunAttemptStatus"; |
49 | | -import { TaskRunStatusCombo, TaskRunStatusReason } from "~/components/runs/v3/TaskRunStatus"; |
| 48 | +import { |
| 49 | + descriptionForTaskRunStatus, |
| 50 | + TaskRunStatusCombo, |
| 51 | +} from "~/components/runs/v3/TaskRunStatus"; |
50 | 52 | import { WaitpointDetailTable } from "~/components/runs/v3/WaitpointDetails"; |
51 | 53 | import { RuntimeIcon } from "~/components/RuntimeIcon"; |
52 | 54 | import { WarmStartCombo } from "~/components/WarmStarts"; |
@@ -403,7 +405,10 @@ function RunBody({ |
403 | 405 | <Property.Item> |
404 | 406 | <Property.Label>Status</Property.Label> |
405 | 407 | <Property.Value> |
406 | | - <TaskRunStatusCombo status={run.status} /> |
| 408 | + <SimpleTooltip |
| 409 | + button={<TaskRunStatusCombo status={run.status} />} |
| 410 | + content={descriptionForTaskRunStatus(run.status)} |
| 411 | + /> |
407 | 412 | </Property.Value> |
408 | 413 | </Property.Item> |
409 | 414 | <Property.Item> |
@@ -767,9 +772,11 @@ function RunBody({ |
767 | 772 | </div> |
768 | 773 | ) : ( |
769 | 774 | <div className="flex flex-col gap-4 pt-3"> |
770 | | - <div className="space-y-2 border-b border-grid-bright pb-3"> |
771 | | - <TaskRunStatusCombo status={run.status} className="text-sm" /> |
772 | | - <TaskRunStatusReason status={run.status} statusReason={run.statusReason} /> |
| 775 | + <div className="border-b border-grid-bright pb-3"> |
| 776 | + <SimpleTooltip |
| 777 | + button={<TaskRunStatusCombo status={run.status} className="text-sm" />} |
| 778 | + content={descriptionForTaskRunStatus(run.status)} |
| 779 | + /> |
773 | 780 | </div> |
774 | 781 | <RunTimeline run={run} /> |
775 | 782 |
|
|
0 commit comments