feat(credits): complete Album Credits Modal with Review tab
- Use custom info SVG icon without circle outline - All tracks collapsed by default (removed auto-expand) - Add description field to Album model for editorial reviews - Implement Review tab with album description content - Tab switches between Credits (track list) and Review (description) - Review tab disabled when no description available
This commit is contained in:
1 parent
3410774f32
commit
6eff22632a
5 files changed
+140
-66
No files matched your search
@@ -105,6 +105,8 @@ pub struct Album {
|
||||
pub tracks: Option<TracksContainer>,
|
||||
/// Universal Product Code for the album
|
||||
pub upc: Option<String>,
|
||||
/// Editorial description/review of the album
|
||||
pub description: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
@@ -46,6 +46,8 @@ pub struct AlbumInfo {
|
||||
pub duration: String,
|
||||
pub bit_depth: Option<u32>,
|
||||
pub sampling_rate: Option<f64>,
|
||||
/// Editorial description/review of the album
|
||||
pub description: Option<String>,
|
||||
}
|
||||
|
||||
/// Format duration in seconds to "Xm Ys" or "Xh Ym" format
|
||||
@@ -104,6 +106,7 @@ fn album_to_info(album: &Album) -> AlbumInfo {
|
||||
duration: format_duration(total_duration),
|
||||
bit_depth: album.maximum_bit_depth,
|
||||
sampling_rate: album.maximum_sampling_rate,
|
||||
description: album.description.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user