From bd5aaf9839f253011bc14e73b53d587829176fa6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 30 May 2023 04:21:15 +0300 Subject: [PATCH] Artist index poster improvements --- .../Banners/ArtistIndexBannersConnector.js | 1 + .../Index/Posters/ArtistIndexPoster.css | 2 +- .../Index/Posters/ArtistIndexPoster.css.d.ts | 2 +- .../Artist/Index/Posters/ArtistIndexPoster.js | 27 ++++-- .../Index/Posters/ArtistIndexPosterInfo.js | 92 ++++++++++++++++--- .../Index/Posters/ArtistIndexPosters.js | 28 +++++- .../Posters/ArtistIndexPostersConnector.js | 1 + .../ArtistIndexPosterOptionsModalContent.js | 22 +++++ frontend/src/Store/Actions/artistActions.js | 4 +- .../src/Store/Actions/artistIndexActions.js | 1 + src/NzbDrone.Core/Localization/Core/en.json | 5 + 11 files changed, 155 insertions(+), 30 deletions(-) diff --git a/frontend/src/Artist/Index/Banners/ArtistIndexBannersConnector.js b/frontend/src/Artist/Index/Banners/ArtistIndexBannersConnector.js index ec37747bc..1cf68ba2b 100644 --- a/frontend/src/Artist/Index/Banners/ArtistIndexBannersConnector.js +++ b/frontend/src/Artist/Index/Banners/ArtistIndexBannersConnector.js @@ -14,6 +14,7 @@ function createMapStateToProps() { bannerOptions, showRelativeDates: uiSettings.showRelativeDates, shortDateFormat: uiSettings.shortDateFormat, + longDateFormat: uiSettings.longDateFormat, timeFormat: uiSettings.timeFormat, isSmallScreen: dimensions.isSmallScreen }; diff --git a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css index 33f81db64..aaccec8a8 100644 --- a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css +++ b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css @@ -43,7 +43,7 @@ $hoverScale: 1.05; font-size: 20px; } -.nextAiring { +.nextAlbum { background-color: var(--artistBackgroundColor); text-align: center; font-size: $smallFontSize; diff --git a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css.d.ts b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css.d.ts index a40dbcefd..b1eeccf08 100644 --- a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css.d.ts +++ b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.css.d.ts @@ -7,7 +7,7 @@ interface CssExports { 'controls': string; 'ended': string; 'link': string; - 'nextAiring': string; + 'nextAlbum': string; 'overlayTitle': string; 'posterContainer': string; 'title': string; diff --git a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js index 52e59a6f0..455736ff1 100644 --- a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js +++ b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js @@ -73,7 +73,8 @@ class ArtistIndexPoster extends Component { monitored, foreignArtistId, status, - nextAiring, + nextAlbum, + lastAlbum, statistics, images, posterWidth, @@ -83,9 +84,11 @@ class ArtistIndexPoster extends Component { showMonitored, showQualityProfile, qualityProfile, + showNextAlbum, showSearchAction, showRelativeDates, shortDateFormat, + longDateFormat, timeFormat, isRefreshingArtist, isSearchingArtist, @@ -118,7 +121,7 @@ class ArtistIndexPoster extends Component { return (
-
+