feat(dashboard): show contributor pill stack on each mission control queue item
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import * as m from '$lib/paraglide/messages.js';
|
|||||||
import { getLocale } from '$lib/paraglide/runtime.js';
|
import { getLocale } from '$lib/paraglide/runtime.js';
|
||||||
import { formatMCDate } from '$lib/utils/date.js';
|
import { formatMCDate } from '$lib/utils/date.js';
|
||||||
import type { components } from '$lib/generated/api';
|
import type { components } from '$lib/generated/api';
|
||||||
|
import ContributorStack from './ContributorStack.svelte';
|
||||||
|
|
||||||
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
||||||
|
|
||||||
@@ -51,6 +52,9 @@ function reviewedPct(doc: TranscriptionQueueItemDTO): number {
|
|||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mt-1">
|
||||||
|
<ContributorStack contributors={doc.contributors} hasMore={doc.hasMoreContributors} />
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import * as m from '$lib/paraglide/messages.js';
|
|||||||
import { getLocale } from '$lib/paraglide/runtime.js';
|
import { getLocale } from '$lib/paraglide/runtime.js';
|
||||||
import { formatMCDate } from '$lib/utils/date.js';
|
import { formatMCDate } from '$lib/utils/date.js';
|
||||||
import type { components } from '$lib/generated/api';
|
import type { components } from '$lib/generated/api';
|
||||||
|
import ContributorStack from './ContributorStack.svelte';
|
||||||
|
|
||||||
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
||||||
|
|
||||||
@@ -44,6 +45,9 @@ let { docs, weeklyCount }: Props = $props();
|
|||||||
>{formatMCDate(doc.documentDate, getLocale())}</span
|
>{formatMCDate(doc.documentDate, getLocale())}</span
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
|
<div class="mt-1">
|
||||||
|
<ContributorStack contributors={doc.contributors} hasMore={doc.hasMoreContributors} />
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import * as m from '$lib/paraglide/messages.js';
|
|||||||
import { getLocale } from '$lib/paraglide/runtime.js';
|
import { getLocale } from '$lib/paraglide/runtime.js';
|
||||||
import { formatMCDate } from '$lib/utils/date.js';
|
import { formatMCDate } from '$lib/utils/date.js';
|
||||||
import type { components } from '$lib/generated/api';
|
import type { components } from '$lib/generated/api';
|
||||||
|
import ContributorStack from './ContributorStack.svelte';
|
||||||
|
|
||||||
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
type TranscriptionQueueItemDTO = components['schemas']['TranscriptionQueueItemDTO'];
|
||||||
|
|
||||||
@@ -67,6 +68,9 @@ function blockProgress(doc: TranscriptionQueueItemDTO): number {
|
|||||||
{:else}
|
{:else}
|
||||||
<span class="mt-0.5 text-xs text-ink-3 italic">—</span>
|
<span class="mt-0.5 text-xs text-ink-3 italic">—</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
<div class="mt-1">
|
||||||
|
<ContributorStack contributors={doc.contributors} hasMore={doc.hasMoreContributors} />
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user