Skip to content
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