From 908c349cfd169874d6afdf1a2dc595a08fbe6c71 Mon Sep 17 00:00:00 2001
From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com>
Date: Thu, 4 Jun 2026 02:12:52 +0200
Subject: [PATCH] fix(mainstage): rename Home Page setting, start-page fallback
+ empty state (#975)
* fix(mainstage): rename Home Page setting, add start-page fallback + empty state
- Rename "Home Page" personalisation section to "Mainstage" across 9 locales
so the heading matches the sidebar entry; add "mainstage" search keyword.
- Index route "/" now redirects to the first visible library item when the
Mainstage sidebar entry is hidden, instead of stranding the app on a blank
page. New pure resolveStartRoute() mirrors sidebar order + nav-mode gating.
- Show a guided empty state on Mainstage when every section is toggled off,
with a CTA into Settings -> Personalisation.
- Unit tests for resolveStartRoute.
* docs(changelog): Mainstage rename, start-page fallback + empty state (#975)
---
CHANGELOG.md | 15 ++++++
src/app/AppRoutes.tsx | 25 +++++++++-
src/components/settings/settingsTabs.ts | 2 +-
src/locales/de/home.ts | 5 +-
src/locales/de/settings.ts | 2 +-
src/locales/en/home.ts | 5 +-
src/locales/en/settings.ts | 2 +-
src/locales/es/home.ts | 5 +-
src/locales/es/settings.ts | 2 +-
src/locales/fr/home.ts | 5 +-
src/locales/fr/settings.ts | 2 +-
src/locales/nb/home.ts | 5 +-
src/locales/nb/settings.ts | 2 +-
src/locales/nl/home.ts | 5 +-
src/locales/nl/settings.ts | 2 +-
src/locales/ro/home.ts | 5 +-
src/locales/ro/settings.ts | 2 +-
src/locales/ru/home.ts | 3 ++
src/locales/ru/settings.ts | 2 +-
src/locales/zh/home.ts | 5 +-
src/locales/zh/settings.ts | 2 +-
src/pages/Home.tsx | 20 ++++++++
.../sidebarNavReorder.test.ts | 47 +++++++++++++++++++
.../componentHelpers/sidebarNavReorder.ts | 25 ++++++++++
24 files changed, 175 insertions(+), 20 deletions(-)
create mode 100644 src/utils/componentHelpers/sidebarNavReorder.test.ts
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 79cda700..6f479cf2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -411,6 +411,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
+### Mainstage — renamed to match the sidebar
+
+**By [@Psychotoxical](https://github.com/Psychotoxical), reported by zunoz on Discord, PR [#975](https://github.com/Psychotoxical/psysonic/pull/975)**
+
+* The **Settings → Personalisation** section for customising the home page is renamed **Mainstage** so it matches the sidebar entry it controls. Localised across all 9 languages; settings search still finds it under the new name.
+
+
+
## Fixed
@@ -840,6 +848,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* The queue collapse handle now shows a hand cursor like every other button; the thin resize line beside it keeps the resize cursor.
* On Favorites, the **Plays**, **Last Played** and **BPM** columns are now actually sortable — they showed a clickable cursor but clicking did nothing.
+### Mainstage — no more blank start page
+
+**By [@Psychotoxical](https://github.com/Psychotoxical), reported by zunoz on Discord, PR [#975](https://github.com/Psychotoxical/psysonic/pull/975)**
+
+* Hiding **Mainstage** from the sidebar no longer leaves the app opening on a blank page — it now starts on the first visible library entry instead.
+* When every Mainstage section is turned off, the page shows a short message with a shortcut into **Settings → Personalisation** rather than appearing empty.
+
## [1.46.0] - 2026-05-18
> **🙏 Special thanks to [@zz5zz](https://github.com/zz5zz)** for his tireless quirk-spotting and bug reports on the [Psysonic Discord](https://discord.gg/AMnDRErm4u) — several of the polish fixes in this release landed directly off the back of his messages.
diff --git a/src/app/AppRoutes.tsx b/src/app/AppRoutes.tsx
index f078f4db..5dd168a5 100644
--- a/src/app/AppRoutes.tsx
+++ b/src/app/AppRoutes.tsx
@@ -1,7 +1,11 @@
import { lazy } from 'react';
-import { Route, Routes } from 'react-router-dom';
+import { Navigate, Route, Routes } from 'react-router-dom';
import MobilePlayerView from '../components/MobilePlayerView';
import { useIsMobile } from '../hooks/useIsMobile';
+import { useSidebarStore } from '../store/sidebarStore';
+import { useAuthStore } from '../store/authStore';
+import { useLuckyMixAvailable } from '../hooks/useLuckyMixAvailable';
+import { resolveStartRoute } from '../utils/componentHelpers/sidebarNavReorder';
// Route-level lazy loading: keeps the non-page graph (shell, player, stores) in
// the entry chunk; each page is fetched when its route is first visited.
@@ -36,6 +40,23 @@ const InternetRadio = lazy(() => import('../pages/InternetRadio'));
const Genres = lazy(() => import('../pages/Genres'));
const GenreDetail = lazy(() => import('../pages/GenreDetail'));
+/**
+ * Index route ("/") = Mainstage. When the user has hidden Mainstage from the
+ * sidebar there is no nav link back to it, so landing on "/" would strand them
+ * on a page they deliberately removed (and which is blank when its sections are
+ * all off too). In that case redirect to the first visible library entry —
+ * mirroring the sidebar's own ordering — so the app never opens on a dead page.
+ */
+function MainstageRoute() {
+ const items = useSidebarStore(s => s.items);
+ const randomNavMode = useAuthStore(s => s.randomNavMode);
+ const luckyMixAvailable = useLuckyMixAvailable() && randomNavMode === 'separate';
+ const mainstageVisible = items.find(i => i.id === 'mainstage')?.visible ?? true;
+ if (mainstageVisible) return ;
+ const target = resolveStartRoute(items, randomNavMode, luckyMixAvailable);
+ return target ? : ;
+}
+
/**
* The main application route table. Rendered inside `AppShell`'s scroll
* viewport. `/now-playing` swaps to the mobile player view on narrow widths;
@@ -46,7 +67,7 @@ export default function AppRoutes() {
const isMobile = useIsMobile();
return (
- } />
+ } />
} />
} />
} />
diff --git a/src/components/settings/settingsTabs.ts b/src/components/settings/settingsTabs.ts
index 92ec14eb..c3bc2273 100644
--- a/src/components/settings/settingsTabs.ts
+++ b/src/components/settings/settingsTabs.ts
@@ -45,7 +45,7 @@ export const SETTINGS_INDEX: SearchIndexEntry[] = [
{ tab: 'integrations', titleKey: 'settings.nowPlayingEnabled', keywords: 'now playing share dropdown presence' },
{ tab: 'personalisation',titleKey: 'settings.sidebarTitle', keywords: 'sidebar nav navigation items reorder customize' },
{ tab: 'personalisation',titleKey: 'settings.artistLayoutTitle', keywords: 'artist page layout sections order' },
- { tab: 'personalisation',titleKey: 'settings.homeCustomizerTitle', keywords: 'home page customize sections' },
+ { tab: 'personalisation',titleKey: 'settings.homeCustomizerTitle', keywords: 'mainstage home page customize sections' },
{ tab: 'personalisation',titleKey: 'settings.queueToolbarTitle', keywords: 'queue toolbar buttons reorder customize shuffle save load' },
{ tab: 'personalisation',titleKey: 'settings.playlistLayoutTitle', keywords: 'playlist page layout add songs import csv download zip cache offline suggestions controls hide show' },
{ tab: 'personalisation',titleKey: 'settings.playerBarTitle', keywords: 'player bar playback favorites stars rating lastfm love equalizer mini player controls hide show' },
diff --git a/src/locales/de/home.ts b/src/locales/de/home.ts
index fea7115e..6db97796 100644
--- a/src/locales/de/home.ts
+++ b/src/locales/de/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Weil du {{artist}} gehört hast',
similarTo: 'Ähnlich wie {{artist}}',
becauseYouLikeTracks_one: '{{count}} Titel',
- becauseYouLikeTracks_other: '{{count}} Titel'
+ becauseYouLikeTracks_other: '{{count}} Titel',
+ mainstageEmptyTitle: 'Deine Mainstage ist leer',
+ mainstageEmptyBody: 'Alle Bereiche sind ausgeschaltet. Schalte Bereiche wieder ein oder blende die Mainstage aus der Seitenleiste aus.',
+ mainstageEmptyCta: 'Personalisierung öffnen'
};
diff --git a/src/locales/de/settings.ts b/src/locales/de/settings.ts
index af1bf411..b7ba30cb 100644
--- a/src/locales/de/settings.ts
+++ b/src/locales/de/settings.ts
@@ -326,7 +326,7 @@ export const settings = {
searchNoResults: 'Keine Treffer für deine Suche.',
integrationsPrivacyTitle: 'Hinweis zum Datenschutz',
integrationsPrivacyBody: 'Alle Integrationen auf diesem Tab sind Opt-in und senden, sobald aktiviert, Daten an externe Dienste oder an deinen Navidrome-Server. Last.fm erhält deinen Wiedergabeverlauf, Discord zeigt den aktuell laufenden Track in deinem Profil an, Bandsintown wird pro Künstler für Tour-Daten abgefragt, und der „Jetzt läuft"-Hinweis veröffentlicht deinen aktuellen Titel für andere Benutzer deines Navidrome-Servers. Wer das nicht möchte, lässt den jeweiligen Abschnitt einfach deaktiviert.',
- homeCustomizerTitle: 'Startseite',
+ homeCustomizerTitle: 'Mainstage',
queueModeTitle: 'Warteschlangen-Ansicht',
queueModeQueueSub: 'Zeigt nur kommende Titel. Der laufende Titel bleibt im Kopf und verschwindet aus der Liste, sobald er gespielt wurde.',
queueModePlaylistSub: 'Behält die ganze Warteschlange in der Liste, der laufende Titel oben hervorgehoben; gespielte Titel bleiben stehen.',
diff --git a/src/locales/en/home.ts b/src/locales/en/home.ts
index 11fffc95..1a6998d6 100644
--- a/src/locales/en/home.ts
+++ b/src/locales/en/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Because you listened to {{artist}}',
similarTo: 'Similar to {{artist}}',
becauseYouLikeTracks_one: '{{count}} track',
- becauseYouLikeTracks_other: '{{count}} tracks'
+ becauseYouLikeTracks_other: '{{count}} tracks',
+ mainstageEmptyTitle: 'Your Mainstage is empty',
+ mainstageEmptyBody: 'Every section is turned off. Turn sections back on, or hide Mainstage from the sidebar.',
+ mainstageEmptyCta: 'Open Personalisation settings'
};
diff --git a/src/locales/en/settings.ts b/src/locales/en/settings.ts
index 218c59e1..1c699fc7 100644
--- a/src/locales/en/settings.ts
+++ b/src/locales/en/settings.ts
@@ -390,7 +390,7 @@ export const settings = {
searchNoResults: 'No settings match your search.',
integrationsPrivacyTitle: 'Privacy notice',
integrationsPrivacyBody: 'All integrations on this tab are opt-in and send data to external services or to your Navidrome server when enabled. Last.fm receives your listening history, Discord shows the currently playing track in your profile, Bandsintown is queried per artist to fetch tour dates, and the Now-Playing share publishes your current track to other users of your Navidrome server. If you don\'t want any of this, simply leave the corresponding section disabled.',
- homeCustomizerTitle: 'Home Page',
+ homeCustomizerTitle: 'Mainstage',
queueModeTitle: 'Queue Display Mode',
queueModeQueueSub: 'Show only upcoming tracks. The current track stays in the header and leaves the list once it has played.',
queueModePlaylistSub: 'Keep the whole queue in the list with the current track highlighted at the top; played tracks stay.',
diff --git a/src/locales/es/home.ts b/src/locales/es/home.ts
index 2d6742d3..3b4d8e6f 100644
--- a/src/locales/es/home.ts
+++ b/src/locales/es/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Porque escuchaste a {{artist}}',
similarTo: 'Similar a {{artist}}',
becauseYouLikeTracks_one: '{{count}} canción',
- becauseYouLikeTracks_other: '{{count}} canciones'
+ becauseYouLikeTracks_other: '{{count}} canciones',
+ mainstageEmptyTitle: 'Tu Escenario Principal está vacío',
+ mainstageEmptyBody: 'Todas las secciones están desactivadas. Vuelve a activarlas u oculta el Escenario Principal de la barra lateral.',
+ mainstageEmptyCta: 'Abrir Personalización'
};
diff --git a/src/locales/es/settings.ts b/src/locales/es/settings.ts
index ba35419e..363870be 100644
--- a/src/locales/es/settings.ts
+++ b/src/locales/es/settings.ts
@@ -325,7 +325,7 @@ export const settings = {
aboutMaintainersLabel: 'Mantenedores',
integrationsPrivacyTitle: 'Aviso de privacidad',
integrationsPrivacyBody: 'Todas las integraciones de esta pestaña son opt-in y, una vez activadas, envían datos a servicios externos o a tu servidor Navidrome. Last.fm recibe tu historial de escucha, Discord muestra la pista actual en tu perfil, Bandsintown se consulta por artista para obtener fechas de gira, y la compartición «En reproducción» publica tu pista actual para otros usuarios de tu servidor Navidrome. Si no quieres nada de esto, simplemente deja desactivada la sección correspondiente.',
- homeCustomizerTitle: 'Página de Inicio',
+ homeCustomizerTitle: 'Escenario Principal',
queueModeTitle: 'Modo de visualización de la cola',
queueModeQueueSub: 'Muestra solo las próximas pistas. La pista actual permanece en el encabezado y sale de la lista al reproducirse.',
queueModePlaylistSub: 'Mantiene toda la cola en la lista, con la pista actual resaltada arriba; las reproducidas permanecen.',
diff --git a/src/locales/fr/home.ts b/src/locales/fr/home.ts
index a13e05a6..fb3a1464 100644
--- a/src/locales/fr/home.ts
+++ b/src/locales/fr/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Parce que tu as écouté {{artist}}',
similarTo: 'Similaire à {{artist}}',
becauseYouLikeTracks_one: '{{count}} titre',
- becauseYouLikeTracks_other: '{{count}} titres'
+ becauseYouLikeTracks_other: '{{count}} titres',
+ mainstageEmptyTitle: 'Votre Scène principale est vide',
+ mainstageEmptyBody: 'Toutes les sections sont désactivées. Réactivez des sections ou masquez la Scène principale de la barre latérale.',
+ mainstageEmptyCta: 'Ouvrir la Personnalisation'
};
diff --git a/src/locales/fr/settings.ts b/src/locales/fr/settings.ts
index f1674d56..dc163cde 100644
--- a/src/locales/fr/settings.ts
+++ b/src/locales/fr/settings.ts
@@ -323,7 +323,7 @@ export const settings = {
aboutMaintainersLabel: 'Mainteneurs',
integrationsPrivacyTitle: 'Avis de confidentialité',
integrationsPrivacyBody: 'Toutes les intégrations de cet onglet sont facultatives et, une fois activées, envoient des données à des services externes ou à votre serveur Navidrome. Last.fm reçoit votre historique d\'écoute, Discord affiche le morceau en cours dans votre profil, Bandsintown est interrogé par artiste pour récupérer les dates de tournée, et le partage « En cours de lecture » publie votre morceau actuel auprès des autres utilisateurs de votre serveur Navidrome. Si vous ne voulez rien de tout cela, laissez simplement la section correspondante désactivée.',
- homeCustomizerTitle: 'Page d\'accueil',
+ homeCustomizerTitle: 'Scène principale',
queueModeTitle: 'Mode d\'affichage de la file',
queueModeQueueSub: 'N\'affiche que les pistes à venir. La piste en cours reste dans l\'en-tête et quitte la liste une fois jouée.',
queueModePlaylistSub: 'Conserve toute la file dans la liste, la piste en cours surlignée en haut ; les pistes jouées restent.',
diff --git a/src/locales/nb/home.ts b/src/locales/nb/home.ts
index 64116d97..953463ec 100644
--- a/src/locales/nb/home.ts
+++ b/src/locales/nb/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Fordi du har hørt på {{artist}}',
similarTo: 'Likt {{artist}}',
becauseYouLikeTracks_one: '{{count}} spor',
- becauseYouLikeTracks_other: '{{count}} spor'
+ becauseYouLikeTracks_other: '{{count}} spor',
+ mainstageEmptyTitle: 'Hovedscenen din er tom',
+ mainstageEmptyBody: 'Alle seksjoner er slått av. Slå på seksjoner igjen, eller skjul Hovedscene fra sidefeltet.',
+ mainstageEmptyCta: 'Åpne Tilpasning'
};
diff --git a/src/locales/nb/settings.ts b/src/locales/nb/settings.ts
index 5fe28a20..a7fcd585 100644
--- a/src/locales/nb/settings.ts
+++ b/src/locales/nb/settings.ts
@@ -322,7 +322,7 @@ export const settings = {
aboutMaintainersLabel: 'Ansvarlige',
integrationsPrivacyTitle: 'Personvern-merknad',
integrationsPrivacyBody: 'Alle integrasjoner på denne fanen er frivillige og sender, når aktivert, data til eksterne tjenester eller til Navidrome-serveren din. Last.fm mottar lyttehistorikken din, Discord viser gjeldende spor i profilen din, Bandsintown spørres per artist for turnédatoer, og "Spilles nå"-delingen publiserer gjeldende spor til andre brukere av Navidrome-serveren din. Hvis du ikke ønsker noe av dette, la den aktuelle seksjonen stå deaktivert.',
- homeCustomizerTitle: 'Hjemmeside',
+ homeCustomizerTitle: 'Hovedscene',
queueModeTitle: 'Visningsmodus for kø',
queueModeQueueSub: 'Viser bare kommende spor. Det gjeldende sporet blir i toppen og forsvinner fra listen når det er spilt.',
queueModePlaylistSub: 'Beholder hele køen i listen med gjeldende spor uthevet øverst; avspilte spor blir værende.',
diff --git a/src/locales/nl/home.ts b/src/locales/nl/home.ts
index 60c8e3f9..f3f80522 100644
--- a/src/locales/nl/home.ts
+++ b/src/locales/nl/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Omdat je naar {{artist}} hebt geluisterd',
similarTo: 'Lijkt op {{artist}}',
becauseYouLikeTracks_one: '{{count}} nummer',
- becauseYouLikeTracks_other: '{{count}} nummers'
+ becauseYouLikeTracks_other: '{{count}} nummers',
+ mainstageEmptyTitle: 'Je Hoofdpodium is leeg',
+ mainstageEmptyBody: 'Alle secties zijn uitgeschakeld. Schakel secties weer in of verberg het Hoofdpodium in de zijbalk.',
+ mainstageEmptyCta: 'Personalisatie openen'
};
diff --git a/src/locales/nl/settings.ts b/src/locales/nl/settings.ts
index 2aeec038..5f310653 100644
--- a/src/locales/nl/settings.ts
+++ b/src/locales/nl/settings.ts
@@ -323,7 +323,7 @@ export const settings = {
aboutMaintainersLabel: 'Beheerders',
integrationsPrivacyTitle: 'Privacyverklaring',
integrationsPrivacyBody: 'Alle integraties op dit tabblad zijn opt-in en sturen, eenmaal ingeschakeld, gegevens naar externe diensten of naar je Navidrome-server. Last.fm ontvangt je luistergeschiedenis, Discord toont het nu spelende nummer in je profiel, Bandsintown wordt per artiest bevraagd voor tourdatums, en de "Nu aan het afspelen"-deling publiceert je huidige nummer bij andere gebruikers van je Navidrome-server. Wil je dit niet, laat dan de bijbehorende sectie gewoon uitgeschakeld.',
- homeCustomizerTitle: 'Startpagina',
+ homeCustomizerTitle: 'Hoofdpodium',
queueModeTitle: 'Weergavemodus wachtrij',
queueModeQueueSub: 'Toont alleen komende nummers. Het huidige nummer blijft in de kop en verdwijnt uit de lijst zodra het is afgespeeld.',
queueModePlaylistSub: 'Houdt de hele wachtrij in de lijst met het huidige nummer bovenaan gemarkeerd; afgespeelde nummers blijven staan.',
diff --git a/src/locales/ro/home.ts b/src/locales/ro/home.ts
index 0dd91dee..af4781c9 100644
--- a/src/locales/ro/home.ts
+++ b/src/locales/ro/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: 'Deoarece ai ascultat {{artist}}',
similarTo: 'Similar cu {{artist}}',
becauseYouLikeTracks_one: '{{count}} piesă',
- becauseYouLikeTracks_other: '{{count}} piese'
+ becauseYouLikeTracks_other: '{{count}} piese',
+ mainstageEmptyTitle: 'Scena Principală este goală',
+ mainstageEmptyBody: 'Toate secțiunile sunt dezactivate. Reactivează secțiuni sau ascunde Scena Principală din bara laterală.',
+ mainstageEmptyCta: 'Deschide Personalizare'
};
diff --git a/src/locales/ro/settings.ts b/src/locales/ro/settings.ts
index 60faa7e7..fa96480c 100644
--- a/src/locales/ro/settings.ts
+++ b/src/locales/ro/settings.ts
@@ -328,7 +328,7 @@ export const settings = {
searchNoResults: 'Nicio setare nu corespunde cu ce ai căutat.',
integrationsPrivacyTitle: 'Notificare de confidențialitate',
integrationsPrivacyBody: 'Toate integrările din acest tab sunt opționale și trimit date către servicii externe sau server-ul tău Navidrome când sunt activate. Last.fm primește istoricul ascultărilor tale, Discord arată piesa redată curent în profilul tău, Bandsintown e interogat per artist pentru a aduce date de turnee, și distribuirea Now-Playing publică piesa curentă către alți useri din server-ul tău Navidrome. Dacă nu vrei vreo opțiune, doar lasă secțiunea corespunzătoare dezactivată',
- homeCustomizerTitle: 'Pagina Principală',
+ homeCustomizerTitle: 'Scena Principală',
queueModeTitle: 'Mod de afișare a cozii',
queueModeQueueSub: 'Arată doar piesele următoare. Piesa curentă rămâne în antet și iese din listă după ce a fost redată.',
queueModePlaylistSub: 'Păstrează toată coada în listă, cu piesa curentă evidențiată sus; piesele redate rămân.',
diff --git a/src/locales/ru/home.ts b/src/locales/ru/home.ts
index 96f7188f..4427b102 100644
--- a/src/locales/ru/home.ts
+++ b/src/locales/ru/home.ts
@@ -17,4 +17,7 @@ export const home = {
becauseYouLikeTracks_few: '{{count}} трека',
becauseYouLikeTracks_many: '{{count}} треков',
becauseYouLikeTracks_other: '{{count}} треков',
+ mainstageEmptyTitle: 'Раздел «Для вас» пуст',
+ mainstageEmptyBody: 'Все разделы отключены. Включите разделы снова или скройте «Для вас» из боковой панели.',
+ mainstageEmptyCta: 'Открыть Персонализацию',
};
diff --git a/src/locales/ru/settings.ts b/src/locales/ru/settings.ts
index 14578211..ceb70458 100644
--- a/src/locales/ru/settings.ts
+++ b/src/locales/ru/settings.ts
@@ -404,7 +404,7 @@ export const settings = {
aboutMaintainersLabel: 'Сопровождающие',
integrationsPrivacyTitle: 'Уведомление о конфиденциальности',
integrationsPrivacyBody: 'Все интеграции на этой вкладке включаются по желанию и при активации отправляют данные во внешние сервисы или на ваш сервер Navidrome. Last.fm получает вашу историю прослушивания, Discord показывает текущую композицию в вашем профиле, Bandsintown опрашивается по артисту для получения дат гастролей, а «Сейчас играет» делится текущей композицией с другими пользователями вашего сервера Navidrome. Если вы не хотите ничего из этого, просто оставьте соответствующий раздел отключённым.',
- homeCustomizerTitle: 'Главная',
+ homeCustomizerTitle: 'Для вас',
queueModeTitle: 'Режим отображения очереди',
queueModeQueueSub: 'Показывает только предстоящие треки. Текущий трек остаётся в заголовке и исчезает из списка после воспроизведения.',
queueModePlaylistSub: 'Сохраняет всю очередь в списке, текущий трек выделен вверху; воспроизведённые треки остаются.',
diff --git a/src/locales/zh/home.ts b/src/locales/zh/home.ts
index 77f2fc6a..b28a572c 100644
--- a/src/locales/zh/home.ts
+++ b/src/locales/zh/home.ts
@@ -14,5 +14,8 @@ export const home = {
becauseYouLikeFor: '因为你听过 {{artist}}',
similarTo: '类似 {{artist}}',
becauseYouLikeTracks_one: '{{count}} 首',
- becauseYouLikeTracks_other: '{{count}} 首'
+ becauseYouLikeTracks_other: '{{count}} 首',
+ mainstageEmptyTitle: '你的主舞台是空的',
+ mainstageEmptyBody: '所有板块均已关闭。重新开启板块,或在侧边栏中隐藏主舞台。',
+ mainstageEmptyCta: '打开个性化设置'
};
diff --git a/src/locales/zh/settings.ts b/src/locales/zh/settings.ts
index a62a6cea..5b353c19 100644
--- a/src/locales/zh/settings.ts
+++ b/src/locales/zh/settings.ts
@@ -322,7 +322,7 @@ export const settings = {
aboutMaintainersLabel: '维护者',
integrationsPrivacyTitle: '隐私说明',
integrationsPrivacyBody: '此标签页中的所有集成均为 选择加入,启用后会向外部服务或您的 Navidrome 服务器发送数据。Last.fm 接收您的收听历史,Discord 在您的个人资料中显示正在播放的曲目,Bandsintown 会按艺人查询以获取巡演日期,"正在播放" 分享会向您 Navidrome 服务器的其他用户公开您当前的曲目。如果您不需要这些功能,只需将相应部分保持停用即可。',
- homeCustomizerTitle: '首页',
+ homeCustomizerTitle: '主舞台',
queueModeTitle: '队列显示模式',
queueModeQueueSub: '仅显示即将播放的曲目。当前曲目保留在标题栏中,播放完毕后从列表移除。',
queueModePlaylistSub: '在列表中保留整个队列,当前曲目在顶部高亮显示;已播放的曲目保留。',
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index a2f9d7ce..6aacf716 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -298,6 +298,11 @@ export default function Home() {
mostPlayed.length === 0 &&
recentlyPlayed.length === 0 &&
starred.length === 0;
+ // Every section toggled off in Settings → Personalisation → Mainstage. The
+ // page would otherwise be entirely blank, so surface a guided empty state
+ // pointing back at the toggles (or the option to hide Mainstage from the
+ // sidebar) instead of leaving the user on nothing.
+ const allSectionsHidden = homeSections.every(s => !s.visible);
return (