refactor: remove deprecated navidrome/audiobookshelf widgets

Consolidate into the unified Audio Stats widget which adapts its UI
based on the linked integration kind — Navidrome shows artists/albums/
songs/now-playing, Audiobookshelf shows libraries/audiobooks/podcasts/
listening-time/sessions.

Removes: widget definitions, components, API routers, and the
deprecatedWidgetKinds mechanism (no longer needed).
This commit is contained in:
Thomas Camlong committed 2026-06-09 20:58:54 +02:00
1 parent 9da8ea1dec
commit 69ed608241
13 files changed
+4 -220

No files matched your search

@@ -3,7 +3,7 @@ import { Avatar, Box, Button, Card, Center, Group, Stack, Text, Tooltip } from "
import { clientApi } from "@homarr/api/client";
import { createId, objectEntries } from "@homarr/common";
import { deprecatedWidgetKinds, getIconUrl, getIntegrationName } from "@homarr/definitions";
import { getIconUrl, getIntegrationName } from "@homarr/definitions";
import type { IntegrationKind, WidgetKind } from "@homarr/definitions";
import { createModal, modalSizeSelect, useModalAction } from "@homarr/modals";
import { useSettings } from "@homarr/settings";
@@ -26,7 +26,6 @@ export const ItemSelectModal = createModal<void>(({ actions }) => {
const items = useMemo(
() =>
objectEntries(widgetImports)
.filter(([kind]) => !deprecatedWidgetKinds.has(kind))
.map(([kind, value]) => ({
kind,
supportedIntegrations: