[PR #247] [MERGED] Feature/updated plate view #973

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

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/247
Author: @MisterBeardy
Created: 2/3/2026
Status: Merged
Merged: 2/3/2026
Merged by: @maziggy

Base: 0.1.8bHead: feature/updated_plate_view


📝 Commits (6)

  • a2571aa Fix filename matching for files with spaces (Issue #218)
  • 104b9d4 Fix external spool ams_mapping2 slot_id (Issue #213)
  • be7aff1 Plate management updates
  • b2cc824 rebase changes
  • 6f1d1fa Updated archive view to work after merging with latest 0.1.8b
  • 685bf84 Merge branch '0.1.8b' into feature/updated_plate_view

📊 Changes

19 files changed (+10343 additions, -246 deletions)

View changed files

.python-bin/python (+1 -0)
📝 backend/app/api/routes/archives.py (+80 -15)
📝 backend/app/api/routes/library.py (+73 -13)
📝 backend/app/api/routes/printers.py (+315 -0)
📝 frontend/src/__tests__/mocks/handlers.ts (+8 -2)
📝 frontend/src/__tests__/pages/ArchivesPage.test.tsx (+8 -2)
📝 frontend/src/api/client.ts (+31 -42)
📝 frontend/src/components/FileManagerModal.tsx (+236 -3)
📝 frontend/src/components/ModelViewer.tsx (+401 -146)
📝 frontend/src/components/ModelViewerModal.tsx (+183 -15)
📝 frontend/src/pages/ArchivesPage.tsx (+11 -0)
📝 frontend/src/pages/FileManagerPage.tsx (+42 -1)
frontend/src/types/plates.ts (+41 -0)
📝 frontend/vitest.config.ts (+0 -7)
plans/3mf-plate-management-verification.md (+13 -0)
plans/3mf-plate-management.md (+206 -0)
static/assets/index-BtqA5ccK.css (+1 -0)
static/assets/index-SHZgHE2U.js (+8665 -0)
whats_new.md (+28 -0)

📄 Description

Description

What's New: 3D File Preview Updates

Overview

  • Expanded 3D previews in the Library File Manager and Printer File Manager.
  • Added STL support (interactive 3D view) alongside existing 3MF/G-code previews.
  • Improved multi-plate handling for 3MF files in the printer file manager.

Library File Manager (Files Page)

  • 3D preview now supports .3mf, .gcode, and .stl files.
  • STL files open in the same viewer modal used by 3MF files.
  • Plate-aware selection continues to work for 3MF files with multiple plates.

Printer File Manager (Printers → File Manager)

  • Added a 3D View action for .3mf, .gcode, and .stl files on the printer.
  • New printer-side 3MF plate endpoints:
    • Plate list and metadata retrieval.
    • Plate thumbnail retrieval.
  • Added a printer-side gcode preview endpoint for 3MF and .gcode files.
  • STL models are centered on the build sheet in the 3D viewer.

Model Viewer Enhancements

  • Added STL rendering support using STLLoader.
  • Viewer now selects the correct rendering pipeline based on file type.
  • STL models auto-center on the build plate for a consistent viewing experience.

Affected Areas

  • Frontend: File Manager modals and 3D viewer.
  • Backend: Printer file preview endpoints for plates, plate thumbnails, and gcode.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition or update

Changes Made

  • Expanded 3D previews in the Library File Manager and Printer File Manager.
  • Added STL support (interactive 3D view) alongside existing 3MF/G-code previews.
  • Improved multi-plate handling for 3MF files in the printer file manager.
  • 3D preview now supports .3mf, .gcode, and .stl files.
  • STL files open in the same viewer modal used by 3MF files.
  • Plate-aware selection continues to work for 3MF files with multiple plates.
  • Added a 3D View action for .3mf, .gcode, and .stl files on the printer.
  • New printer-side 3MF plate endpoints:
    • Plate list and metadata retrieval.
    • Plate thumbnail retrieval.
  • Added a printer-side gcode preview endpoint for 3MF and .gcode files.
  • STL models are centered on the build sheet in the 3D viewer.
  • Added STL rendering support using STLLoader.
  • Viewer now selects the correct rendering pipeline based on file type.
  • STL models auto-center on the build plate for a consistent viewing experience.
  • Frontend: File Manager modals and 3D viewer.
  • Backend: Printer file preview endpoints for plates, plate thumbnails, and gcode.

Screenshots

image image

Testing

Upload 3mf and gcode files to the archive and file manager
Upload STL to file manager
Open 3D view on each page for each type of file

  • I have tested this on my local machine
  • I have tested with my printer model:

Checklist

  • My code follows the project's coding style
  • I have commented my code where necessary
  • I have updated the documentation (if needed)
  • My changes generate no new warnings
  • I have tested my changes thoroughly

🔄 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/247 **Author:** [@MisterBeardy](https://github.com/MisterBeardy) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/3/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.1.8b` ← **Head:** `feature/updated_plate_view` --- ### 📝 Commits (6) - [`a2571aa`](https://github.com/maziggy/bambuddy/commit/a2571aaf2e69634c0a1fb706de5575a7dd3541cf) Fix filename matching for files with spaces (Issue #218) - [`104b9d4`](https://github.com/maziggy/bambuddy/commit/104b9d4a2528f40e8ee54eb1b7f81fbc3752a3a2) Fix external spool ams_mapping2 slot_id (Issue #213) - [`be7aff1`](https://github.com/maziggy/bambuddy/commit/be7aff1f91b69829ef8e93b92df65a13f3a6eeee) Plate management updates - [`b2cc824`](https://github.com/maziggy/bambuddy/commit/b2cc82480d9d96e24357df1229bc7f941c869fd5) rebase changes - [`6f1d1fa`](https://github.com/maziggy/bambuddy/commit/6f1d1fa06ea9eb4d4b945850e7d4e22477b7386c) Updated archive view to work after merging with latest 0.1.8b - [`685bf84`](https://github.com/maziggy/bambuddy/commit/685bf84de185d4a321f41b4d54881c59acd5dfb3) Merge branch '0.1.8b' into feature/updated_plate_view ### 📊 Changes **19 files changed** (+10343 additions, -246 deletions) <details> <summary>View changed files</summary> ➕ `.python-bin/python` (+1 -0) 📝 `backend/app/api/routes/archives.py` (+80 -15) 📝 `backend/app/api/routes/library.py` (+73 -13) 📝 `backend/app/api/routes/printers.py` (+315 -0) 📝 `frontend/src/__tests__/mocks/handlers.ts` (+8 -2) 📝 `frontend/src/__tests__/pages/ArchivesPage.test.tsx` (+8 -2) 📝 `frontend/src/api/client.ts` (+31 -42) 📝 `frontend/src/components/FileManagerModal.tsx` (+236 -3) 📝 `frontend/src/components/ModelViewer.tsx` (+401 -146) 📝 `frontend/src/components/ModelViewerModal.tsx` (+183 -15) 📝 `frontend/src/pages/ArchivesPage.tsx` (+11 -0) 📝 `frontend/src/pages/FileManagerPage.tsx` (+42 -1) ➕ `frontend/src/types/plates.ts` (+41 -0) 📝 `frontend/vitest.config.ts` (+0 -7) ➕ `plans/3mf-plate-management-verification.md` (+13 -0) ➕ `plans/3mf-plate-management.md` (+206 -0) ➕ `static/assets/index-BtqA5ccK.css` (+1 -0) ➕ `static/assets/index-SHZgHE2U.js` (+8665 -0) ➕ `whats_new.md` (+28 -0) </details> ### 📄 Description ## Description # What's New: 3D File Preview Updates ## Overview - Expanded 3D previews in the Library File Manager and Printer File Manager. - Added STL support (interactive 3D view) alongside existing 3MF/G-code previews. - Improved multi-plate handling for 3MF files in the printer file manager. ## Library File Manager (Files Page) - 3D preview now supports `.3mf`, `.gcode`, and `.stl` files. - STL files open in the same viewer modal used by 3MF files. - Plate-aware selection continues to work for 3MF files with multiple plates. ## Printer File Manager (Printers → File Manager) - Added a 3D View action for `.3mf`, `.gcode`, and `.stl` files on the printer. - New printer-side 3MF plate endpoints: - Plate list and metadata retrieval. - Plate thumbnail retrieval. - Added a printer-side gcode preview endpoint for 3MF and `.gcode` files. - STL models are centered on the build sheet in the 3D viewer. ## Model Viewer Enhancements - Added STL rendering support using `STLLoader`. - Viewer now selects the correct rendering pipeline based on file type. - STL models auto-center on the build plate for a consistent viewing experience. ## Affected Areas - Frontend: File Manager modals and 3D viewer. - Backend: Printer file preview endpoints for plates, plate thumbnails, and gcode. ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change that fixes an issue) - [X] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Test addition or update ## Changes Made - Expanded 3D previews in the Library File Manager and Printer File Manager. - Added STL support (interactive 3D view) alongside existing 3MF/G-code previews. - Improved multi-plate handling for 3MF files in the printer file manager. - 3D preview now supports `.3mf`, `.gcode`, and `.stl` files. - STL files open in the same viewer modal used by 3MF files. - Plate-aware selection continues to work for 3MF files with multiple plates. - Added a 3D View action for `.3mf`, `.gcode`, and `.stl` files on the printer. - New printer-side 3MF plate endpoints: - Plate list and metadata retrieval. - Plate thumbnail retrieval. - Added a printer-side gcode preview endpoint for 3MF and `.gcode` files. - STL models are centered on the build sheet in the 3D viewer. - Added STL rendering support using `STLLoader`. - Viewer now selects the correct rendering pipeline based on file type. - STL models auto-center on the build plate for a consistent viewing experience. - Frontend: File Manager modals and 3D viewer. - Backend: Printer file preview endpoints for plates, plate thumbnails, and gcode. ## Screenshots <img width="687" height="806" alt="image" src="https://github.com/user-attachments/assets/6be8c62d-29d0-41d2-b97a-ca6f4e85097f" /> <img width="678" height="800" alt="image" src="https://github.com/user-attachments/assets/f88ce804-2408-44e9-88fb-3b8738001b74" /> ## Testing Upload 3mf and gcode files to the archive and file manager Upload STL to file manager Open 3D view on each page for each type of file - [X] I have tested this on my local machine - [ ] I have tested with my printer model: <!-- e.g., X1C, P1S, A1 --> ## Checklist - [X] My code follows the project's coding style - [ ] I have commented my code where necessary - [ ] I have updated the documentation (if needed) - [X] My changes generate no new warnings - [X] I have tested my changes thoroughly --- <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:16 +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#973
No description provided.