From 1a0e505e519293733ccbd863ba8e58937cd644d8 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 27 Dec 2024 17:55:34 +0000 Subject: [PATCH] Rework error messages for failed playcount/bio fetch --- .../live/artist_live/show.html.heex | 16 +++++++- priv/gettext/default.pot | 38 +++++++++---------- .../live/artist_live/show_test.exs | 4 +- 3 files changed, 35 insertions(+), 23 deletions(-) diff --git a/lib/music_library_web/live/artist_live/show.html.heex b/lib/music_library_web/live/artist_live/show.html.heex index 6bdf4bd3..3b8d340b 100644 --- a/lib/music_library_web/live/artist_live/show.html.heex +++ b/lib/music_library_web/live/artist_live/show.html.heex @@ -15,7 +15,13 @@ <:failed :let={_failure}>
- {gettext("There was an error loading the play count")} + <.icon + name="hero-exclamation-triangle" + class="-mt-1 mr-1 ml-2 h-5 w-5" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Error loading play count")}
0}> @@ -44,7 +50,13 @@ <:failed :let={_failure}>
- {gettext("There was an error loading the biography")} + <.icon + name="hero-exclamation-triangle" + class="-mt-1 mr-1 h-5 w-5" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Error loading biography")}