release / integration (push) Canceled after 0s
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 8s
A playback error can no longer be resolved as "requested": the server refuses it, migration 106 takes it out of the CHECK (no row used it), and the Reports history and types drop its label. The web and Android error tables lose the copy for errors only the wanted list, follows, release-type profiles, downloads and indexers sent, and comments stop naming Discover, following and the requests page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.3 KiB
Svelte
47 lines
1.3 KiB
Svelte
<script lang="ts" generics="Id extends string">
|
|
// In-page tabs: one strip of buttons switching what a single page shows.
|
|
// This is for state inside one page, not route navigation, such as
|
|
// Liked's Artists | Albums | Tracks or a queue's status filter.
|
|
type Item = {
|
|
id: Id;
|
|
label: string;
|
|
/** Shown as a pill after the label. Omit for no pill. */
|
|
count?: number;
|
|
};
|
|
|
|
let {
|
|
items,
|
|
value = $bindable(),
|
|
ariaLabel
|
|
}: {
|
|
items: Item[];
|
|
value: Id;
|
|
ariaLabel: string;
|
|
} = $props();
|
|
</script>
|
|
|
|
<div role="tablist" aria-label={ariaLabel} class="flex gap-2 border-b border-border">
|
|
{#each items as item (item.id)}
|
|
{@const active = value === item.id}
|
|
<button
|
|
type="button"
|
|
role="tab"
|
|
aria-selected={active}
|
|
class="border-b-2 px-3 py-2 text-sm transition-colors {active
|
|
? 'border-accent text-text-primary'
|
|
: 'border-transparent text-text-secondary hover:text-text-primary'}"
|
|
onclick={() => (value = item.id)}
|
|
>
|
|
{item.label}
|
|
{#if item.count !== undefined}
|
|
<span
|
|
class="ml-1.5 inline-flex items-center rounded-full bg-accent-tint px-2 py-0.5 text-xs text-accent-fg"
|
|
data-testid="tab-count"
|
|
>
|
|
{item.count}
|
|
</span>
|
|
{/if}
|
|
</button>
|
|
{/each}
|
|
</div>
|