[PR #356] [MERGED] Queue Page - Add weight information #1009

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

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/356
Author: @aneopsy
Created: 2/13/2026
Status: Merged
Merged: 2/16/2026
Merged by: @maziggy

Base: 0.2.0bHead: 0.2.0b


📝 Commits (4)

  • aa684b4 feat(queue): add filament weight display
  • e21283d test: add unit tests for extract_filament_usage_from_3mf function
  • fa3372f Merge branch '0.2.0b' into 0.2.0b
  • 0774130 Merge branch '0.2.0b' into 0.2.0b

📊 Changes

11 files changed (+262 additions, -18 deletions)

View changed files

📝 backend/app/api/routes/print_queue.py (+11 -0)
📝 backend/app/schemas/print_queue.py (+1 -0)
📝 backend/app/utils/threemf_tools.py (+51 -17)
📝 backend/tests/unit/test_threemf_tools.py (+161 -0)
📝 frontend/src/api/client.ts (+1 -0)
📝 frontend/src/i18n/locales/de.ts (+1 -0)
📝 frontend/src/i18n/locales/en.ts (+1 -0)
📝 frontend/src/i18n/locales/fr.ts (+1 -0)
📝 frontend/src/i18n/locales/it.ts (+1 -0)
📝 frontend/src/i18n/locales/ja.ts (+1 -0)
📝 frontend/src/pages/QueuePage.tsx (+32 -1)

📄 Description

Description

  • Added weight information to the Queue tab: a summary card showing total material weight in queue
  • Added individual weight details displayed next to the time on each Queue element

Fixes #355

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

  • Frontend: Added a summary card displaying the total weight of prints in the queue, and included individual print weights in the queue card list.
  • Backend: Added print_weight field and a function to extract print weight from archive and 3MF files.

Screenshots

611369276_1227390166201161_6355419227692940177_n

Testing

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

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

Additional Notes

Added the queue.summary.totalMaterial entry to the English i18n file. This key still needs to be added for the other supported languages.


🔄 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/356 **Author:** [@aneopsy](https://github.com/aneopsy) **Created:** 2/13/2026 **Status:** ✅ Merged **Merged:** 2/16/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.0b` ← **Head:** `0.2.0b` --- ### 📝 Commits (4) - [`aa684b4`](https://github.com/maziggy/bambuddy/commit/aa684b4b3635e9881d79c39e96c08b2ab876559c) feat(queue): add filament weight display - [`e21283d`](https://github.com/maziggy/bambuddy/commit/e21283de1c12f41835167b63cd7a155ffcae4943) test: add unit tests for extract_filament_usage_from_3mf function - [`fa3372f`](https://github.com/maziggy/bambuddy/commit/fa3372f4026adfc29bffc839bddbe6f4b974744f) Merge branch '0.2.0b' into 0.2.0b - [`0774130`](https://github.com/maziggy/bambuddy/commit/07741309941fdcdf29e9d08a24bcddeb72beef8a) Merge branch '0.2.0b' into 0.2.0b ### 📊 Changes **11 files changed** (+262 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `backend/app/api/routes/print_queue.py` (+11 -0) 📝 `backend/app/schemas/print_queue.py` (+1 -0) 📝 `backend/app/utils/threemf_tools.py` (+51 -17) 📝 `backend/tests/unit/test_threemf_tools.py` (+161 -0) 📝 `frontend/src/api/client.ts` (+1 -0) 📝 `frontend/src/i18n/locales/de.ts` (+1 -0) 📝 `frontend/src/i18n/locales/en.ts` (+1 -0) 📝 `frontend/src/i18n/locales/fr.ts` (+1 -0) 📝 `frontend/src/i18n/locales/it.ts` (+1 -0) 📝 `frontend/src/i18n/locales/ja.ts` (+1 -0) 📝 `frontend/src/pages/QueuePage.tsx` (+32 -1) </details> ### 📄 Description ## Description - Added weight information to the Queue tab: a summary card showing total material weight in queue - Added individual weight details displayed next to the time on each Queue element ## Related Issue Fixes #355 ## Type of Change - [ ] 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 - Frontend: Added a summary card displaying the total weight of prints in the queue, and included individual print weights in the queue card list. - Backend: Added print_weight field and a function to extract print weight from archive and 3MF files. ## Screenshots <img width="1262" height="720" alt="611369276_1227390166201161_6355419227692940177_n" src="https://github.com/user-attachments/assets/38215f47-dfd6-4a6a-beb8-af26db802330" /> ## Testing - [x] I have tested this on my local machine - [x] I have tested with my printer model: X1C ## Checklist - [X] My code follows the project's coding style - [X] I have commented my code where necessary - [X] I have updated the documentation (if needed) - [X] My changes generate no new warnings - [X] I have tested my changes thoroughly ## Additional Notes Added the `queue.summary.totalMaterial` entry to the English i18n file. This key still needs to be added for the other supported languages. --- <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:27 +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#1009
No description provided.