feat: Reset song count indicator when switching playlists - Show '0 of 0 songs • Switching playlist...' during playlist switch - Provides consistent visual feedback across all UI elements - Makes playlist switching feel even more responsive and clear

This commit is contained in:
Geert Rademakes 2025-08-06 11:14:16 +02:00
parent 491235af29
commit 90bcd10ed9

View File

@ -338,11 +338,22 @@ export const PaginatedSongList: React.FC<PaginatedSongListProps> = memo(({
: `Selected ${selectedSongs.size} song${selectedSongs.size === 1 ? '' : 's'}`} : `Selected ${selectedSongs.size} song${selectedSongs.size === 1 ? '' : 's'}`}
</Checkbox> </Checkbox>
<Text color="gray.400" fontSize="sm"> <Text color="gray.400" fontSize="sm">
{songs.length} of {totalSongs} songs {totalDuration} {isSwitchingPlaylist ? (
{hasMore && songs.length > 0 && ( <>
<Text as="span" color="blue.400" ml={2}> 0 of 0 songs
Scroll for more <Text as="span" color="blue.400" ml={1}>
</Text> Switching playlist...
</Text>
</>
) : (
<>
{songs.length} of {totalSongs} songs {totalDuration}
{hasMore && songs.length > 0 && (
<Text as="span" color="blue.400" ml={2}>
Scroll for more
</Text>
)}
</>
)} )}
</Text> </Text>
</HStack> </HStack>