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

Add count of workers #1601

Merged
merged 5 commits into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/lib/components/workers-list.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import Badge from '$lib/holocene/badge.svelte';
import CompatibilityBadge from '$lib/holocene/compatibility-badge.svelte';
import EmptyState from '$lib/holocene/empty-state.svelte';
import Icon from '$lib/holocene/icon/icon.svelte';
Expand Down Expand Up @@ -36,7 +37,6 @@
{translate('task-queue')}:
<span class="select-all font-normal">{taskQueue}</span>
</h2>

{#if versionSets?.length}
<h2 class="text-base font-medium" data-testid="version-sets">
{translate('workers', 'version-sets')}
Expand Down Expand Up @@ -83,8 +83,14 @@
{/each}
</Table>
{/if}
<h2 class="text-base font-medium" data-testid="workers">
<h2
class="text-base font-medium flex items-center gap-2"
data-testid="workers"
>
{translate('workers', 'workers')}
<Badge type="count" class="rounded-sm"
>{workers?.pollers?.length || 0}</Badge
>
</h2>
<Table class="mb-6 w-full min-w-[600px] table-fixed">
<caption class="sr-only" slot="caption"
Expand Down