Skip to content

Commit a8bed20

Browse files
committed
Added queues and machines to the bulk action summary
1 parent 7e242bf commit a8bed20

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

apps/webapp/app/components/BulkActionFilterSummary.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,32 @@ export function BulkActionFilterSummary({
201201
/>
202202
);
203203
}
204+
case "queues": {
205+
const values = Array.isArray(value) ? value : [`${value}`];
206+
return (
207+
<AppliedFilter
208+
variant="minimal/medium"
209+
key={key}
210+
label={filterTitle(key)}
211+
icon={filterIcon(key)}
212+
value={appliedSummary(values.map((v) => v.replace("task/", "")))}
213+
removable={false}
214+
/>
215+
);
216+
}
217+
case "machines": {
218+
const values = Array.isArray(value) ? value : [`${value}`];
219+
return (
220+
<AppliedFilter
221+
variant="minimal/medium"
222+
key={key}
223+
label={filterTitle(key)}
224+
icon={filterIcon(key)}
225+
value={appliedSummary(values)}
226+
removable={false}
227+
/>
228+
);
229+
}
204230
default: {
205231
assertNever(typedKey);
206232
}

0 commit comments

Comments
 (0)