feat: Make playlist switching less intrusive - Remove full loading screen for playlist switches - Only show full loading for initial XML parsing - Use subtle spinner in song list area for playlist loading - Improve UX by keeping interface responsive during navigation
This commit is contained in:
parent
65120ff654
commit
54bffbc25d
@ -313,16 +313,11 @@ export default function RekordboxReader() {
|
||||
};
|
||||
}, [isResizing]);
|
||||
|
||||
if (xmlLoading || songsLoading) {
|
||||
if (xmlLoading) {
|
||||
return (
|
||||
<Flex height="100vh" align="center" justify="center" direction="column" gap={4}>
|
||||
<Spinner size="xl" />
|
||||
<Text>Loading your library...</Text>
|
||||
{currentPlaylist !== "All Songs" && (
|
||||
<Text fontSize="sm" color="gray.500">
|
||||
Navigating to playlist: {currentPlaylist}
|
||||
</Text>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
@ -355,7 +350,7 @@ export default function RekordboxReader() {
|
||||
userSelect={isResizing ? 'none' : 'auto'}
|
||||
>
|
||||
{/* Welcome Modal */}
|
||||
{!xmlLoading && !songsLoading && songs.length === 0 && (
|
||||
{!xmlLoading && songs.length === 0 && (
|
||||
<Modal isOpen={isWelcomeOpen} onClose={onWelcomeClose} isCentered>
|
||||
<ModalOverlay />
|
||||
<ModalContent bg="gray.800" maxW="md">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user