Skip to content

Filter runs by queue, machine, version #2277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 21, 2025
5 changes: 5 additions & 0 deletions .changeset/two-eagles-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@trigger.dev/sdk": patch
---

Added runs.list filtering for queue and machine
2 changes: 1 addition & 1 deletion apps/webapp/app/assets/icons/MachineIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function MachineIcon({ preset, className }: { preset?: string; className?
}
}

function MachineDefaultIcon({ className }: { className?: string }) {
export function MachineDefaultIcon({ className }: { className?: string }) {
return (
<svg className={className} viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down
26 changes: 26 additions & 0 deletions apps/webapp/app/components/BulkActionFilterSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,32 @@ export function BulkActionFilterSummary({
/>
);
}
case "queues": {
const values = Array.isArray(value) ? value : [`${value}`];
return (
<AppliedFilter
variant="minimal/medium"
key={key}
label={filterTitle(key)}
icon={filterIcon(key)}
value={appliedSummary(values.map((v) => v.replace("task/", "")))}
removable={false}
/>
);
}
case "machines": {
const values = Array.isArray(value) ? value : [`${value}`];
return (
<AppliedFilter
variant="minimal/medium"
key={key}
label={filterTitle(key)}
icon={filterIcon(key)}
value={appliedSummary(values)}
removable={false}
/>
);
}
default: {
assertNever(typedKey);
}
Expand Down
4 changes: 3 additions & 1 deletion apps/webapp/app/components/MachineLabelCombo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { type MachinePresetName } from "@trigger.dev/core/v3";
import { MachinePresetName } from "@trigger.dev/core/v3";
import { MachineIcon } from "~/assets/icons/MachineIcon";
import { cn } from "~/utils/cn";

export const machines = Object.values(MachinePresetName.enum);

export function MachineLabelCombo({
preset,
className,
Expand Down
Loading