refactor(settings): thematic tab regroup + accordion sub-sections + in-page search (closes #257) (#259)

* refactor(settings): regroup tabs thematically + accordion sub-sections (progress on #257)

New tab structure: Servers (first) · Library · Audio · Lyrics · Appearance ·
Personalisation · Integrations · Input · Storage · System · Users.

Reusable SettingsSubSection (native <details>) wraps related settings per tab,
with an optional action slot for per-section reset buttons.

Moved:
- Lyrics sources + sidebar lyrics style → Lyrics
- Sidebar / artist layout / home customisers → Personalisation
- Last.fm / Discord / Bandsintown / Now-playing share → Integrations
  (with an opt-in privacy banner at the top)
- Tray / minimize / Linux smooth-scroll → System (new App-Verhalten group)
- Preload mini-player / custom titlebar / show artist images → Appearance visual options
- Language picker → System

Audio, Appearance and System tabs are now fully accordion-grouped.
Library tab reduced to Random Mix + Ratings accordions.
Servers tab is its own home (server cards + AudioMuse + logout) and the default
landing tab.

Indicators in the titlebar and offline banner route to the right tab.
EN + DE translations added for the new tab labels and privacy banner; other
locales fall back to English until the full i18n pass lands.

* refactor(settings): audio/input/storage/system accordions, in-page search, Navidrome focus

Settings refactor progress — every tab is now accordion-grouped:
- Audio: Output · Hi-Res · EQ · Playback · Next-track buffer
- Input: Keybindings · Global shortcuts (reset in accordion action slot)
- Storage: Offline · Downloads
- System: Language (default open) · Behavior · Backup · Logging · About · Contributors
- Contributors: own card grid with per-contributor expand, sorted by
  contribution count. Changelog accordion removed (release-notes link and
  "show changelog on update" toggle now live inside About).
- About: Navidrome focus; AI credit and Special Thanks removed; new
  Maintainers row (Psychotoxical + cucadmuh).

In-page search: magnifier icon next to the Settings title. Click opens a
240px search field. Filters the active tab's sub-sections by title match
(data-settings-search). Cross-tab search is tracked as a follow-up.

serverCompatible updated in all 8 locales from "Compatible with: Navidrome
Gonic Airsonic Subsonic" to a Navidrome-first wording that warns other
Subsonic-compatible servers may have reduced functionality.

Full i18n pass (tabLyrics/tabPersonalisation/tabIntegrations, aboutDesc,
privacy banner, etc. in fr/nl/zh/nb/ru/es) follows in a separate commit
after visual review.

* i18n(settings): complete localisation pass for refactored tabs

Added in all 8 locales (fr, nl, zh, nb, ru, es — en+de already in place):
- Tab labels: tabLibrary, tabServers, tabLyrics, tabPersonalisation, tabIntegrations
- inputKeybindingsTitle, searchPlaceholder, searchNoResults, aboutMaintainersLabel
- integrationsPrivacyTitle, integrationsPrivacyBody
- aboutContributorsCount_one/_other (ru also _few/_many for proper plural forms)
- aboutDesc rewritten to describe a Navidrome-focused player instead of a
  generic Subsonic-compatible one.

Removed dead keys in all 8 locales:
- aboutAiCredit, aboutSpecialThanksLabel — no longer rendered
- changelog — inline changelog accordion removed
- tabServer, tabGeneral — superseded by new tab structure

---------

Co-authored-by: Psychotoxical <dev@psysonic.app>
This commit is contained in:
Frank Stellmacher
2026-04-22 02:25:56 +02:00
committed by GitHub
parent f6f76723d8
commit 2a496c600b
14 changed files with 1205 additions and 740 deletions
+290
View File
@@ -2449,6 +2449,296 @@
color: var(--text-primary);
}
/* ── Settings Sub-Section (Accordion) ──────────────────────────────────────
Gruppiert verwandte Einstellungen innerhalb eines Tabs. Nutzt <details>
fuer gratis Keyboard + ARIA. */
.settings-sub-section {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
margin-bottom: var(--space-3);
overflow: hidden;
}
.settings-sub-section-summary {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-3);
cursor: pointer;
list-style: none;
user-select: none;
transition: background 120ms ease;
}
.settings-sub-section-summary::-webkit-details-marker {
display: none;
}
.settings-sub-section-summary:hover {
background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.settings-sub-section-icon {
display: inline-flex;
color: var(--accent);
flex-shrink: 0;
}
.settings-sub-section-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
flex: 1;
min-width: 0;
}
.settings-sub-section-action {
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
.settings-sub-section-chevron {
color: var(--text-muted);
flex-shrink: 0;
transition: transform 180ms ease;
}
.settings-sub-section[open] > .settings-sub-section-summary .settings-sub-section-chevron {
transform: rotate(180deg);
}
.settings-sub-section-desc {
font-size: 12px;
color: var(--text-muted);
line-height: 1.5;
margin: 0;
padding: 0 var(--space-3) var(--space-2);
}
.settings-sub-section-content {
padding: var(--space-2) var(--space-3) var(--space-3);
}
/* Wenn das Accordion eine <section class="settings-section"> wrappt (Legacy-
Content, der noch seine eigenen Header traegt), blenden wir den internen
Section-Header aus — der Accordion-Summary uebernimmt dessen Rolle. */
.settings-sub-section-content > .settings-section {
margin-bottom: 0;
}
.settings-sub-section-content > .settings-section > .settings-section-header {
display: none;
}
/* ── In-Page-Suche fuer Settings ─────────────────────────────────────────── */
.settings-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
margin-bottom: 1.5rem;
}
.settings-header .page-title {
margin-bottom: 0;
}
.settings-search {
display: flex;
align-items: center;
flex-shrink: 0;
}
.settings-search-wrap {
position: relative;
display: flex;
align-items: center;
width: 240px;
}
.settings-search-icon {
position: absolute;
left: 10px;
color: var(--text-muted);
pointer-events: none;
}
.settings-search-input {
width: 100%;
padding: 6px 32px;
font-size: 13px;
}
.settings-search-clear {
position: absolute;
right: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
transition: background 120ms ease, color 120ms ease;
}
.settings-search-clear:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.settings-sub-section--hidden {
display: none;
}
.settings-search-empty {
padding: var(--space-3) var(--space-4);
font-size: 13px;
color: var(--text-muted);
border-radius: var(--radius-md);
background: var(--bg-card);
border: 1px dashed var(--border-subtle);
text-align: center;
}
/* ── Mitwirkende: Card-Grid mit klappbaren Beitragslisten ────────────────── */
.contributors-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: var(--space-2);
}
.contributor-card {
background: var(--bg-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
overflow: hidden;
transition: border-color 120ms ease, background 120ms ease;
}
.contributor-card[open] {
grid-column: 1 / -1;
background: color-mix(in srgb, var(--accent) 4%, var(--bg-elevated));
border-color: color-mix(in srgb, var(--accent) 35%, var(--border-subtle));
}
.contributor-card-summary {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
cursor: pointer;
list-style: none;
user-select: none;
}
.contributor-card-summary::-webkit-details-marker {
display: none;
}
.contributor-card-summary:hover {
background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.contributor-card-avatar {
border-radius: 50%;
flex-shrink: 0;
}
.contributor-card-meta {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.contributor-card-name {
color: var(--accent);
font-weight: 600;
font-size: 13px;
cursor: pointer;
width: fit-content;
}
.contributor-card-name:hover {
text-decoration: underline;
}
.contributor-card-sub {
display: flex;
gap: 6px;
align-items: center;
font-size: 11px;
color: var(--text-muted);
}
.contributor-card-since {
background: var(--accent-dim);
color: var(--accent);
padding: 1px 6px;
border-radius: 99px;
font-weight: 600;
}
.contributor-card-chevron {
color: var(--text-muted);
flex-shrink: 0;
transition: transform 180ms ease;
}
.contributor-card[open] .contributor-card-chevron {
transform: rotate(180deg);
}
.contributor-card-list {
margin: 0;
padding: 0 var(--space-3) var(--space-3) calc(var(--space-3) + 40px);
font-size: 12px;
color: var(--text-secondary);
line-height: 1.7;
}
/* ── Datenschutz-Hinweis-Banner (z.B. oben im Integrations-Tab) ──────────── */
.settings-privacy-notice {
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
margin-bottom: var(--space-4);
border-radius: var(--radius-lg);
background: color-mix(in srgb, var(--color-warning, #f59e0b) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--color-warning, #f59e0b) 40%, transparent);
color: var(--text-primary);
}
.settings-privacy-notice-icon {
color: var(--color-warning, #f59e0b);
flex-shrink: 0;
margin-top: 2px;
}
.settings-privacy-notice-title {
font-weight: 600;
font-size: 13px;
margin-bottom: var(--space-1);
}
.settings-privacy-notice-body {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.55;
}
.settings-privacy-notice-body strong {
color: var(--text-primary);
font-weight: 600;
}
.settings-card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);