design page overhaul + support page perf
- Replace emoji folder icons with Google Drive-style SVG folders (blue, rounded body + tab, open animation on drag-over)
- New FileTypeIcon SVG component: color-coded by file type (purple for STL/OBJ/FBX, teal for STEP/IGES, red for PDF, amber for DWG/DXF etc.) with a rendered 3D cube for 3D formats instead of text label
- Image thumbnails: 3D-preview hover overlay (box icon) on image cards
- Inline rename: click the pencil icon on any file or folder to rename in-place; Enter confirms, Escape cancels; calls new PATCH /api/admin/cad/rename
- Internal drag-and-drop: file cards now have draggable=true; dragging a card onto a folder moves it (calls rename API) rather than uploading; external OS file drops still work as before
- Rename API: new /api/admin/cad/rename route using Supabase .move() for files and list+move for folder renames
- Add select{} to findMany so only displayed columns are fetched (removes loading of screenshot blobs, metadata JSON, and other unused heavy fields)
- Drop the double orderBy [status, createdAt] in favour of just createdAt desc (status is already filtered; simpler sort = faster)
- resolve redirect: router.push -> router.replace (cleaner history stack)
99acb68View on GitHub β