Link the scrobbled count in stats

This commit is contained in:
Claudio Ortolina
2026-03-14 09:59:09 +00:00
parent 7cdd502701
commit 4d1ac9652c
2 changed files with 2 additions and 0 deletions
@@ -36,6 +36,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
title={gettext("Scrobbles")} title={gettext("Scrobbles")}
count={to_compact(@scrobble_count)} count={to_compact(@scrobble_count)}
tooltip={@scrobble_count} tooltip={@scrobble_count}
path={~p"/scrobbled-tracks"}
/> />
</dl> </dl>
</div> </div>
@@ -250,6 +250,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
session = session =
conn conn
|> visit("/") |> visit("/")
|> assert_has("dd", "4")
|> assert_has("#album-#{machinarium_soundtrack_track.scrobbled_at_uts}", |> assert_has("#album-#{machinarium_soundtrack_track.scrobbled_at_uts}",
text: "Wishlisted" text: "Wishlisted"
) )