misc: Migrate Artists page to GridView
Remove custom page implementation for Artists, and instead rely on the generic `GridView` approach. This also simplifies adding new sorting/filtering options as next improvements. The new `ArtistFilter` is a dummy implementation without any real filters at the moment. Also, the `go-jellyfin` upgrade is needed to correctly display the album count for each artist.
This commit is contained in:
@@ -64,6 +64,10 @@ type ArtistPageConfig struct {
|
||||
TracklistColumns []string
|
||||
}
|
||||
|
||||
type ArtistsPageConfig struct {
|
||||
SortOrder string
|
||||
}
|
||||
|
||||
type FavoritesPageConfig struct {
|
||||
InitialView string
|
||||
TracklistColumns []string
|
||||
@@ -122,6 +126,7 @@ type Config struct {
|
||||
AlbumPage AlbumPageConfig
|
||||
AlbumsPage AlbumsPageConfig
|
||||
ArtistPage ArtistPageConfig
|
||||
ArtistsPage ArtistsPageConfig
|
||||
FavoritesPage FavoritesPageConfig
|
||||
PlaylistPage PlaylistPageConfig
|
||||
PlaylistsPage PlaylistsPageConfig
|
||||
@@ -163,6 +168,9 @@ func DefaultConfig(appVersionTag string) *Config {
|
||||
InitialView: "Discography",
|
||||
TracklistColumns: []string{"Album", "Time", "Plays", "Favorite", "Rating"},
|
||||
},
|
||||
ArtistsPage: ArtistsPageConfig{
|
||||
SortOrder: string("Name (A-Z)"),
|
||||
},
|
||||
FavoritesPage: FavoritesPageConfig{
|
||||
TracklistColumns: []string{"Artist", "Album", "Time", "Plays"},
|
||||
InitialView: "Albums",
|
||||
|
||||
Reference in New Issue
Block a user