diff --git a/backend/melodies/models.py b/backend/melodies/models.py index 6000c37..5b87936 100644 --- a/backend/melodies/models.py +++ b/backend/melodies/models.py @@ -28,7 +28,6 @@ class MelodyInfo(BaseModel): color: str = "" isTrueRing: bool = False previewURL: str = "" - notes: List[int] = [] class MelodyAttributes(BaseModel): diff --git a/backend/melodies/router.py b/backend/melodies/router.py index 63adc76..41d3c86 100644 --- a/backend/melodies/router.py +++ b/backend/melodies/router.py @@ -82,7 +82,7 @@ async def upload_file( url = service.upload_file(melody_id, contents, file.filename, content_type) - # Update the melody document with the new URL if it's a preview + # Update the melody document with the file URL if file_type == "preview": service.update_melody(melody_id, MelodyUpdate( information=MelodyInfo( @@ -90,6 +90,8 @@ async def upload_file( previewURL=url, ) )) + elif file_type == "binary": + service.update_melody(melody_id, MelodyUpdate(url=url)) return {"url": url, "file_type": file_type} diff --git a/bellsystemsblack-300x138_darkTheme.png b/bellsystemsblack-300x138_darkTheme.png new file mode 100644 index 0000000..3ffde5d Binary files /dev/null and b/bellsystemsblack-300x138_darkTheme.png differ diff --git a/frontend/public/logo-dark.png b/frontend/public/logo-dark.png new file mode 100644 index 0000000..3ffde5d Binary files /dev/null and b/frontend/public/logo-dark.png differ diff --git a/frontend/public/logo-light.png b/frontend/public/logo-light.png new file mode 100644 index 0000000..378e9f6 Binary files /dev/null and b/frontend/public/logo-light.png differ diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index b5533d5..05eb451 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -15,8 +15,8 @@ function ProtectedRoute({ children }) { if (loading) { return ( -
Loading...
+Loading...
+
Welcome, {user?.name}. You are logged in as{" "} - {user?.role}. + {user?.role}.
+