fix(android): restore Home's Most played tile and its skeleton (DRY A1 follow-up)
release / web (push) Successful in 1m29s
release / go (push) Successful in 1m54s
release / govulncheck (push) Successful in 19s
release / android (push) Failing after 1m25s
release / integration (push) Successful in 4m11s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 3m54s

The A1 edit that moved the Most played cover onto TrackCoverThumb
matched the skeleton tile's cover box first and cut from there to the
real tile's body, dropping CompactTrackTile's header. The skeleton keeps
its plain placeholder box; the real tile uses TrackCoverThumb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 10:24:15 -05:00
co-authored by Claude Opus 5.5
parent 9bf831e20e
commit a18d5aaa11
@@ -34,6 +34,7 @@ import androidx.compose.foundation.lazy.grid.LazyHorizontalGrid
import androidx.compose.foundation.lazy.grid.items as gridItems import androidx.compose.foundation.lazy.grid.items as gridItems
import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold import androidx.compose.material3.Scaffold
@@ -47,6 +48,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.Dp
@@ -1490,6 +1492,28 @@ private fun SkeletonCompactTrackTile() {
.height(MOST_PLAYED_TILE_HEIGHT_DP.dp) .height(MOST_PLAYED_TILE_HEIGHT_DP.dp)
.padding(horizontal = 8.dp, vertical = 4.dp), .padding(horizontal = 8.dp, vertical = 4.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) {
Box(
modifier = Modifier
.size(MOST_PLAYED_COVER_DP.dp)
.clip(RoundedCornerShape(4.dp))
.background(MaterialTheme.colorScheme.surfaceVariant),
)
}
}
@Composable
private fun CompactTrackTile(
track: TrackRef,
onClick: () -> Unit,
) {
Row(
modifier = Modifier
.width(MOST_PLAYED_TILE_WIDTH_DP.dp)
.height(MOST_PLAYED_TILE_HEIGHT_DP.dp)
.clickable(onClick = onClick)
.padding(horizontal = 8.dp, vertical = 4.dp),
verticalAlignment = Alignment.CenterVertically,
) { ) {
TrackCoverThumb( TrackCoverThumb(
coverUrl = track.coverUrl, coverUrl = track.coverUrl,