feat: Settings is one page per section down a left rail, Account first, every setting a row; the profile form no longer saves blanks over your name and email (M503 #5595 #5596 #5597)
release / govulncheck (push) Successful in 18s
release / web (push) Successful in 1m45s
release / go (push) Successful in 1m58s
release / integration (push) Successful in 5m39s
release / android (push) Successful in 5m43s
release / Build signed APK (releases and dev) (push) Successful in 5m58s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped

- /settings lands on Account: the Android app, profile, password, signed-in
  devices. Then Playback, Appearance, Notifications, Connections, About.
- Each setting is a row (name, one short line, control at the end) in a
  capped-width column; one-of-N choices are a shared Segmented control.
- Collection and Settings share one SectionRail.
- Connections leads ListenBrainz with a status line: not connected,
  connected and not sending, or sending with the last scrobble's age.
- Notifications prints its column labels once; the digest email's
  settings link points at /settings/notifications.
- #5596: the profile form now loads what is stored and sends only the
  fields that changed. It used to start blank, and the server reads a
  blank as "clear", so one Save wiped the display name and email.
- Recommendation metrics moves to Library › Your listening, and Hidden
  tracks gets a Library tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 23:34:51 -04:00
co-authored by Claude Opus 5.5
parent c0c0f8a71f
commit c94c09aeae
32 changed files with 1552 additions and 1408 deletions
+61
View File
@@ -0,0 +1,61 @@
<script lang="ts" module>
export type RailItem = {
href: string;
label: string;
count?: number;
attention?: number;
// Further paths that belong to this item, e.g. an artist's page under
// the Catalogue. The item is also current on any path below its href.
also?: string[];
// The item is current only on its exact href (a section's landing page,
// whose href prefixes every other item's).
exact?: boolean;
};
</script>
<script lang="ts">
import { page } from '$app/state';
// A section's pages, down the left (#5572, #5595): Collection and Settings
// both use it, so a section's navigation sits in the same place and looks
// the same everywhere (#189, "stable chrome"). On a narrow screen the rail
// runs across the top. An item can carry a count and, accented, how many
// of those need a person.
let { label, items }: { label: string; items: RailItem[] } = $props();
function isActive(item: RailItem): boolean {
const path = page.url.pathname;
if (item.also?.some((p) => path.startsWith(p))) return true;
return item.exact ? path === item.href : path === item.href || path.startsWith(item.href + '/');
}
</script>
<nav aria-label={label} class="border-b border-border md:border-b-0 md:border-r md:pr-3">
<ul class="flex gap-1 overflow-x-auto md:flex-col md:overflow-visible">
{#each items as item (item.href)}
{@const active = isActive(item)}
<li>
<a
href={item.href}
aria-current={active ? 'page' : undefined}
class="flex items-center gap-1.5 whitespace-nowrap border-b-2 px-3 py-2 text-sm transition-colors md:rounded-md md:border-b-0 md:border-l-2 {active
? 'border-accent text-text-primary md:bg-surface-hover'
: 'border-transparent text-text-secondary hover:text-text-primary md:hover:bg-surface-hover'}"
>
<span class="md:flex-1">{item.label}</span>
{#if item.attention}
<span
class="rounded-full bg-accent px-1.5 text-xs text-text-on-accent"
aria-label="{item.attention} need you"
data-testid="tab-attention">{item.attention}</span
>
{/if}
{#if item.count !== undefined}
<span class="text-xs tabular-nums text-text-muted">{item.count}</span>
{/if}
</a>
</li>
{/each}
</ul>
</nav>