From 506569b038ad78f4408e83a4df34744eac3ecccd Mon Sep 17 00:00:00 2001 From: Geert Rademakes Date: Fri, 25 Apr 2025 11:30:47 +0200 Subject: [PATCH] UI fixes --- packages/frontend/src/pages/Configuration.tsx | 49 +++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/pages/Configuration.tsx b/packages/frontend/src/pages/Configuration.tsx index b582b09..56c99c1 100644 --- a/packages/frontend/src/pages/Configuration.tsx +++ b/packages/frontend/src/pages/Configuration.tsx @@ -1,4 +1,6 @@ -import { Box, Heading, VStack, Text, Button, OrderedList, ListItem, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalBody, ModalFooter, useToast } from "@chakra-ui/react"; +import { Box, Heading, VStack, Text, Button, OrderedList, ListItem, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalBody, ModalFooter, useToast, IconButton, Flex } from "@chakra-ui/react"; +import { ChevronLeftIcon } from "@chakra-ui/icons"; +import { useNavigate } from "react-router-dom"; import { useXmlParser } from "../hooks/useXmlParser"; import { exportToXml } from "../services/xmlService"; import { StyledFileInput } from "../components/StyledFileInput"; @@ -8,6 +10,7 @@ export function Configuration() { const { songs, resetLibrary } = useXmlParser(); const { isOpen, onOpen, onClose } = useDisclosure(); const toast = useToast(); + const navigate = useNavigate(); const handleExport = () => { const xmlContent = exportToXml(songs, []); @@ -45,9 +48,35 @@ export function Configuration() { }; return ( - + - Configuration + + } + aria-label="Go back" + variant="ghost" + onClick={() => navigate('/')} + color="gray.300" + _hover={{ color: "white", bg: "whiteAlpha.200" }} + /> + Configuration + Library Management @@ -82,6 +111,20 @@ export function Configuration() { Export your current library back to XML format to import into Rekordbox. + + + Click the button below to export your library to XML + + + Open Rekordbox 7 and go to Preferences → Advanced → rekordbox xml + + + Select your exported XML file in the rekordbox xml section + + + Your imported playlists will appear in the left sidebar under the sd card with < > in them icon. + +