release / web (push) Failing after 1m23s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 16s
release / integration (push) Successful in 2m36s
release / android (push) Successful in 4m36s
release / Build signed APK (push) Successful in 4m59s
release / Build + push container image (push) Skipped
Run 11469 failed in three places:
- golangci-lint (errcheck) flagged three unchecked Close calls in
migrations_roundtrip_test.go. Their errors are now discarded
explicitly.
- svelte-check found two kinds of error:
- IconProp was typed for class-based lucide-svelte components.
@lucide/svelte's are Svelte 5 components, so it is now LucideIcon.
- Svelte 5.60 no longer accepts $props<T>(). Eight components now
type the destructuring instead.
- Android: compose-bom 2026.11, androidx.hilt 1.4, navigation 2.10,
lifecycle 2.11, core-ktx 1.19, mediarouter 1.9, coil 3.6 and
OkHttp 5 all require compileSdk 37. ci-android:36 carries SDK 36, so
they are held at their previous versions until an SDK 37 image
exists. OkHttp takes 4.12.1.
- ktlint-gradle 14's newer ktlint rules flag 751 lines in the test
sources, so it stays on 12 until those sources are reformatted.
The rest of the Android update stays: Kotlin 2.4, AGP 9.5, Gradle 9.9,
Retrofit 3, JUnit 6 and the others.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
2.1 KiB
Svelte
56 lines
2.1 KiB
Svelte
<script lang="ts">
|
|
import { page } from '$app/state';
|
|
|
|
let { children }: { children: import('svelte').Snippet } = $props();
|
|
|
|
// Tab bar for the Library section. Mirrors Android's LibraryScreen
|
|
// (artists / albums / liked / history / playlists) — Playlists lives
|
|
// here so a listener finds their personal collection in one place rather
|
|
// than tracking a separate top-level route.
|
|
// Genres and Years sit next to Albums — all three are ways of walking the
|
|
// same collection — rather than at the end beside the personal tabs (Liked,
|
|
// History, Playlists). These two are web-only: Android's LibraryScreen has
|
|
// no equivalent.
|
|
const tabs = [
|
|
{ href: '/library/artists', label: 'Artists' },
|
|
{ href: '/library/albums', label: 'Albums' },
|
|
{ href: '/library/genres', label: 'Genres' },
|
|
{ href: '/library/years', label: 'Years' },
|
|
{ href: '/library/liked', label: 'Liked' },
|
|
{ href: '/library/history', label: 'History' },
|
|
{ href: '/library/playlists', label: 'Playlists' },
|
|
// A report on your listening, and the tracks you've hidden, belong with
|
|
// the rest of your library rather than in Settings.
|
|
{ href: '/library/listening', label: 'Your listening' },
|
|
{ href: '/library/hidden', label: 'Hidden' }
|
|
];
|
|
|
|
function isActiveTab(href: string): boolean {
|
|
return page.url.pathname === href || page.url.pathname.startsWith(href + '/');
|
|
}
|
|
</script>
|
|
|
|
<div class="space-y-4">
|
|
<nav aria-label="Library sections" class="border-b border-border">
|
|
<ul class="flex gap-1 overflow-x-auto">
|
|
{#each tabs as tab}
|
|
{@const active = isActiveTab(tab.href)}
|
|
<li>
|
|
<a
|
|
href={tab.href}
|
|
class="block px-3 md:px-4 py-3 text-sm whitespace-nowrap border-b-2
|
|
{active
|
|
? 'border-accent text-text-primary'
|
|
: 'border-transparent text-text-secondary hover:text-text-primary'}"
|
|
aria-current={active ? 'page' : undefined}
|
|
>
|
|
{tab.label}
|
|
</a>
|
|
</li>
|
|
{/each}
|
|
</ul>
|
|
</nav>
|
|
|
|
{@render children?.()}
|
|
</div>
|