feat: Reports, Duplicates and Suspect sources live under Collection, with their counts on its rail and a "To look at" line naming the ones waiting; notices link there (M504 #5625)
release / govulncheck (push) Successful in 21s
release / web (push) Successful in 1m21s
release / go (push) Successful in 1m39s
release / integration (push) Successful in 5m31s
release / android (push) Successful in 6m5s
release / Build signed APK (releases and dev) (push) Successful in 6m21s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 32s
release / Verify release artifacts (tag releases only) (push) Skipped
release / govulncheck (push) Successful in 21s
release / web (push) Successful in 1m21s
release / go (push) Successful in 1m39s
release / integration (push) Successful in 5m31s
release / android (push) Successful in 6m5s
release / Build signed APK (releases and dev) (push) Successful in 6m21s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 32s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { createWantArtistsQuery } from '#lib/api/wanted.js';
|
||||
import { createAdminSummaryQuery } from '#lib/api/admin.js';
|
||||
import { QUEUES, countOf, queueLabel } from '#lib/admin/queues.js';
|
||||
import CollectionRail from '#lib/components/wanted/CollectionRail.svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
@@ -28,6 +30,15 @@
|
||||
return parts.join(', ') + '. Nothing needs you.';
|
||||
});
|
||||
const needsYou = $derived(!!counts?.attention || !!counts?.unmatched);
|
||||
|
||||
// The library's health queues (M504) count from the admin summary, the
|
||||
// same read Admin's Overview makes. The line under the verdict names the
|
||||
// ones with something in them; each links to its page.
|
||||
const summaryStore = createAdminSummaryQuery();
|
||||
const summary = $derived($summaryStore.data);
|
||||
const health = $derived(
|
||||
QUEUES.filter((d) => d.href.startsWith('/collection/') && countOf(summary, d.key) > 0)
|
||||
);
|
||||
</script>
|
||||
|
||||
<div class="space-y-4">
|
||||
@@ -50,12 +61,21 @@
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
{#if health.length > 0}
|
||||
<p class="text-sm text-text-primary" data-testid="collection-health">
|
||||
To look at:
|
||||
{#each health as d, i (d.key)}<a href={d.href} class="text-accent-fg hover:underline"
|
||||
>{queueLabel(d, countOf(summary, d.key))}</a
|
||||
>{i < health.length - 1 ? ', ' : '.'}
|
||||
{/each}
|
||||
</p>
|
||||
{/if}
|
||||
</header>
|
||||
|
||||
<div class="md:grid md:grid-cols-[11rem_minmax(0,1fr)] md:gap-6">
|
||||
<div class="mb-4 md:mb-0">
|
||||
<div class="md:sticky md:top-4">
|
||||
<CollectionRail {counts} />
|
||||
<CollectionRail {counts} {summary} />
|
||||
</div>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
|
||||
Reference in New Issue
Block a user