From 206d006484dc8d1659e5cf44768eb47b3a5e53ff Mon Sep 17 00:00:00 2001 From: Ben Bolte Date: Sun, 18 Aug 2024 20:18:58 -0700 Subject: [PATCH] full urdf uploading (#299) * full urdf uploading * more changes * more fixes * working, mostly * fix lint * fix tests --- frontend/src/components/footer/Footer.tsx | 7 +- .../src/components/listing/FileUpload.tsx | 5 +- .../src/components/listing/ListingBody.tsx | 17 +- .../components/listing/ListingFileUpload.tsx | 32 +- .../src/components/listing/ListingFooter.tsx | 2 +- .../src/components/listing/ListingHeader.tsx | 2 +- .../src/components/listing/ListingImages.tsx | 107 +++---- .../src/components/listing/ListingMeshes.tsx | 23 +- .../src/components/listing/ListingUrdf.tsx | 299 ++++++++++++++++++ .../src/components/listing/MeshRenderer.tsx | 109 ++----- .../components/listings/ListingGridCard.tsx | 12 +- frontend/src/components/ui/Toast.tsx | 4 +- frontend/src/gen/api.ts | 210 ++++++++++-- frontend/src/hooks/api.tsx | 34 +- frontend/src/pages/Browse.tsx | 8 + frontend/src/pages/ListingDetails.tsx | 6 +- store/app/crud/artifacts.py | 118 ++++--- store/app/crud/base.py | 14 +- store/app/crud/listings.py | 6 +- store/app/crud/urdf.py | 146 +++++++++ store/app/db.py | 2 + store/app/main.py | 3 + store/app/model.py | 164 ++++++++-- store/app/routers/artifacts.py | 107 ++++--- store/app/routers/listings.py | 63 +--- store/app/routers/urdf.py | 128 ++++++++ store/requirements.txt | 1 + store/settings/environment.py | 2 +- tests/test_images.py | 5 +- tests/test_listings.py | 57 +++- 30 files changed, 1239 insertions(+), 454 deletions(-) create mode 100644 frontend/src/components/listing/ListingUrdf.tsx create mode 100644 store/app/crud/urdf.py create mode 100644 store/app/routers/urdf.py diff --git a/frontend/src/components/footer/Footer.tsx b/frontend/src/components/footer/Footer.tsx index aaebfd46..1a0fb04a 100644 --- a/frontend/src/components/footer/Footer.tsx +++ b/frontend/src/components/footer/Footer.tsx @@ -27,6 +27,7 @@ const Footer = () => { return (