[PR #181] [CLOSED] Add STL thumbnail generation support #943

Closed
opened 2026-05-06 12:34:05 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/181
Author: @MisterBeardy
Created: 1/29/2026
Status: Closed

Base: 0.1.6-finalHead: feature/stl-thumbnail


📝 Commits (8)

  • bacc624 Retrigger CI pipeline
  • f9f7bcc Retrigger CI pipeline
  • 1dad0aa test
  • 3bc01aa Retrigger CI pipeline
  • 8c9bb62 Add missing frontend bundle
  • 31d6492 Fix frontend build artifacts after rebase
  • b76eb44 Add STL thumbnail generation support
  • 3c8dcf5 Update frontend build with STL thumbnail support

📊 Changes

12 files changed (+1110 additions, -92 deletions)

View changed files

📝 backend/app/api/routes/library.py (+220 -0)
📝 backend/app/schemas/library.py (+29 -0)
backend/app/services/stl_thumbnail.py (+227 -0)
📝 backend/tests/integration/test_library_api.py (+123 -0)
backend/tests/unit/services/test_stl_thumbnail.py (+326 -0)
📝 frontend/package-lock.json (+4 -4)
📝 frontend/package.json (+1 -1)
📝 frontend/src/api/client.ts (+30 -0)
📝 frontend/src/pages/FileManagerPage.tsx (+60 -1)
📝 requirements.txt (+4 -0)
📝 static/assets/index-B5TQDpQY.js (+85 -85)
📝 static/index.html (+1 -1)

📄 Description

Summary

  • Add STL thumbnail generation service using trimesh and matplotlib for software-based 3D rendering
  • Handle mesh simplification for large files (>100k vertices)
  • Auto-generate thumbnails during STL file upload and ZIP extraction
  • Add POST /library/files/{id}/regenerate-thumbnail endpoint for single file regeneration
  • Add POST /library/generate-stl-thumbnails batch endpoint for bulk generation
  • Add "Generate Thumbnails" button to File Manager toolbar
  • Add "Regenerate Thumbnail" option to file context menu
  • Add comprehensive unit and integration tests

Test plan

  • Unit tests pass: pytest backend/tests/unit/services/test_stl_thumbnail.py (9/9)
  • Integration tests pass: pytest backend/tests/integration/test_library_api.py (30/30)
  • Docker build tested
  • Local development build tested
  • Manual testing of STL thumbnail generation in File Manager

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maziggy/bambuddy/pull/181 **Author:** [@MisterBeardy](https://github.com/MisterBeardy) **Created:** 1/29/2026 **Status:** ❌ Closed **Base:** `0.1.6-final` ← **Head:** `feature/stl-thumbnail` --- ### 📝 Commits (8) - [`bacc624`](https://github.com/maziggy/bambuddy/commit/bacc624a0b9caf83d71b2839c1acf10fef35a173) Retrigger CI pipeline - [`f9f7bcc`](https://github.com/maziggy/bambuddy/commit/f9f7bcc3b3ec73f3e3139d0b989fc7a37814dd2b) Retrigger CI pipeline - [`1dad0aa`](https://github.com/maziggy/bambuddy/commit/1dad0aa39ac5e797ca306c57d47f10b0f20b0ed5) test - [`3bc01aa`](https://github.com/maziggy/bambuddy/commit/3bc01aa7b1c53c783e31f1c99075c47088a77729) Retrigger CI pipeline - [`8c9bb62`](https://github.com/maziggy/bambuddy/commit/8c9bb6261ccf24f9acc8b69cd0fca8eb1fb8a5cd) Add missing frontend bundle - [`31d6492`](https://github.com/maziggy/bambuddy/commit/31d6492d0f8f5b63c7287352c869c6efd330f993) Fix frontend build artifacts after rebase - [`b76eb44`](https://github.com/maziggy/bambuddy/commit/b76eb443d6f2b6984c3ea4f6cdad8c0d9a9e4e82) Add STL thumbnail generation support - [`3c8dcf5`](https://github.com/maziggy/bambuddy/commit/3c8dcf5288adaf766817861cc5b85e966fc9d234) Update frontend build with STL thumbnail support ### 📊 Changes **12 files changed** (+1110 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `backend/app/api/routes/library.py` (+220 -0) 📝 `backend/app/schemas/library.py` (+29 -0) ➕ `backend/app/services/stl_thumbnail.py` (+227 -0) 📝 `backend/tests/integration/test_library_api.py` (+123 -0) ➕ `backend/tests/unit/services/test_stl_thumbnail.py` (+326 -0) 📝 `frontend/package-lock.json` (+4 -4) 📝 `frontend/package.json` (+1 -1) 📝 `frontend/src/api/client.ts` (+30 -0) 📝 `frontend/src/pages/FileManagerPage.tsx` (+60 -1) 📝 `requirements.txt` (+4 -0) 📝 `static/assets/index-B5TQDpQY.js` (+85 -85) 📝 `static/index.html` (+1 -1) </details> ### 📄 Description ## Summary - Add STL thumbnail generation service using trimesh and matplotlib for software-based 3D rendering - Handle mesh simplification for large files (>100k vertices) - Auto-generate thumbnails during STL file upload and ZIP extraction - Add `POST /library/files/{id}/regenerate-thumbnail` endpoint for single file regeneration - Add `POST /library/generate-stl-thumbnails` batch endpoint for bulk generation - Add "Generate Thumbnails" button to File Manager toolbar - Add "Regenerate Thumbnail" option to file context menu - Add comprehensive unit and integration tests ## Test plan - [x] Unit tests pass: `pytest backend/tests/unit/services/test_stl_thumbnail.py` (9/9) - [x] Integration tests pass: `pytest backend/tests/integration/test_library_api.py` (30/30) - [x] Docker build tested - [x] Local development build tested - [x] Manual testing of STL thumbnail generation in File Manager 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:34:05 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#943
No description provided.