1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[PR #508] [MERGED] feat(queue): show spool grams left in filament slot mapping #1061

Closed
opened 2026-05-07 00:15:46 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/508
Author: @cimdDev
Created: 2/23/2026
Status: Merged
Merged: 2/24/2026
Merged by: @maziggy

Base: 0.2.2b1Head: custom/feature-queue-spool-remaining-weight


📝 Commits (4)

  • 4e80efe feat(queue): show spool grams left in filament slot mapping
  • f7459d1 Merge branch '0.2.2b1' into custom/feature-queue-spool-remaining-weight
  • c936945 Merge branch '0.2.2b1' into custom/feature-queue-spool-remaining-weight
  • 7104b56 Fix formatting of option elements in FilamentMapping

📊 Changes

7 files changed (+35 additions, -5 deletions)

View changed files

📝 frontend/src/components/PrintModal/FilamentMapping.tsx (+29 -5)
📝 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/i18n/locales/pt-BR.ts (+1 -0)

📄 Description

Description

Adds remaining spool weight to the filament slot assignment dropdown in the queue print modal / Edit Queue Item.

Fixes #507

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

  • Compute per-slot remaining grams from assigned spool inventory data (label_weight - weight_used)
  • Append a compact remaining-weight suffix to slot dropdown options in PrintModal/FilamentMapping
  • Add localized printModal.slotRemainingShort strings for all supported languages

Screenshots

image

Testing

  • 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

Additional Notes


🔄 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/508 **Author:** [@cimdDev](https://github.com/cimdDev) **Created:** 2/23/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.2b1` ← **Head:** `custom/feature-queue-spool-remaining-weight` --- ### 📝 Commits (4) - [`4e80efe`](https://github.com/maziggy/bambuddy/commit/4e80efec3f24bc1ddc3558d28301b3fbf3465da1) feat(queue): show spool grams left in filament slot mapping - [`f7459d1`](https://github.com/maziggy/bambuddy/commit/f7459d1934d9a99e26c801f82188fd5a8256f769) Merge branch '0.2.2b1' into custom/feature-queue-spool-remaining-weight - [`c936945`](https://github.com/maziggy/bambuddy/commit/c93694584bdcf07e4e9a39da9a3d3de01d96748b) Merge branch '0.2.2b1' into custom/feature-queue-spool-remaining-weight - [`7104b56`](https://github.com/maziggy/bambuddy/commit/7104b56c068b3018a7362c2f5bc1905ecdfdf8b4) Fix formatting of option elements in FilamentMapping ### 📊 Changes **7 files changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/PrintModal/FilamentMapping.tsx` (+29 -5) 📝 `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/i18n/locales/pt-BR.ts` (+1 -0) </details> ### 📄 Description ## Description Adds remaining spool weight to the filament slot assignment dropdown in the queue print modal / Edit Queue Item. ## Related Issue <!-- Link to the issue this PR addresses (if applicable) --> Fixes #507 ## 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 <!-- List the specific changes made in this PR --> - Compute per-slot remaining grams from assigned spool inventory data (`label_weight - weight_used`) - Append a compact remaining-weight suffix to slot dropdown options in `PrintModal/FilamentMapping` - Add localized `printModal.slotRemainingShort` strings for all supported languages ## Screenshots <img width="357" height="141" alt="image" src="https://github.com/user-attachments/assets/fd53208e-9744-49bd-ab8f-449615bf4be3" /> ## Testing <!-- Describe how you tested your changes --> - [x] I have tested this on my local machine - [ ] I have tested with my printer model: <!-- e.g., X1C, P1S, A1 --> ## 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 <!-- Add any additional information that reviewers should know --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:15:46 +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-maziggy-1#1061
No description provided.