From e7c2b92a3bca9e277d8e4b6a2acefade1bca3a1f Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 17 Sep 2025 09:07:29 +0300 Subject: [PATCH] Remove track count from scrobbled tracks list --- .../live/scrobbled_tracks_live/index.html.heex | 7 ++----- priv/gettext/default.pot | 7 ------- priv/gettext/en/LC_MESSAGES/default.po | 7 ------- .../music_library_web/live/scrobbled_tracks_live_test.exs | 8 -------- 4 files changed, 2 insertions(+), 27 deletions(-) diff --git a/lib/music_library_web/live/scrobbled_tracks_live/index.html.heex b/lib/music_library_web/live/scrobbled_tracks_live/index.html.heex index 5656761e..a9b79c6e 100644 --- a/lib/music_library_web/live/scrobbled_tracks_live/index.html.heex +++ b/lib/music_library_web/live/scrobbled_tracks_live/index.html.heex @@ -1,10 +1,7 @@
-
-
+
+
<.search_form query={@track_list_params.query} /> -
- {ngettext("1 track", "%{count} tracks", @track_list_params.total_records)} -
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 1a808330..6b437b2b 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -1324,13 +1324,6 @@ msgstr "" msgid "No records released on this day." msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex -#, elixir-autogen, elixir-format -msgid "1 track" -msgid_plural "%{count} tracks" -msgstr[0] "" -msgstr[1] "" - #: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex #, elixir-autogen, elixir-format msgid "Album name" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 03f37250..df50e27c 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -1324,13 +1324,6 @@ msgstr "" msgid "No records released on this day." msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex -#, elixir-autogen, elixir-format -msgid "1 track" -msgid_plural "%{count} tracks" -msgstr[0] "" -msgstr[1] "" - #: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex #, elixir-autogen, elixir-format, fuzzy msgid "Album name" diff --git a/test/music_library_web/live/scrobbled_tracks_live_test.exs b/test/music_library_web/live/scrobbled_tracks_live_test.exs index bbb1077b..71bb7ae3 100644 --- a/test/music_library_web/live/scrobbled_tracks_live_test.exs +++ b/test/music_library_web/live/scrobbled_tracks_live_test.exs @@ -45,14 +45,6 @@ defmodule MusicLibraryWeb.ScrobbledTracksLiveTest do assert html =~ "No scrobbled tracks found" end - - test "displays track count", %{conn: conn} do - create_test_tracks(3) - - {:ok, _index_live, html} = live(conn, ~p"/scrobbled-tracks") - - assert html =~ ~r/\d+ tracks?/ - end end describe "Search functionality" do