[PR #429] [MERGED] Show remaining spool weigth instead of used #1035

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

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/429
Author: @Keybored02
Created: 2/18/2026
Status: Merged
Merged: 2/18/2026
Merged by: @maziggy

Base: 0.2.1bHead: feature/use_remaining_filament


📝 Commits (5)

  • 7efbb1f Show remaining spool weigth instead of used
  • 626a345 Merge branch '0.2.1b' into feature/use_remaining_filament
  • 07015a7 fix(i18n): update remaining filament labels in multiple languages
  • c68b73f Merge branch 'feature/use_remaining_filament' of https://github.com/Keybored02/bambuddy into feature/use_remaining_filament
  • 1c068d2 Merge branch '0.2.1b' into feature/use_remaining_filament

📊 Changes

8 files changed (+22 additions, -5 deletions)

View changed files

📝 frontend/src/components/AssignSpoolModal.tsx (+1 -1)
📝 frontend/src/components/FilamentHoverCard.tsx (+6 -2)
📝 frontend/src/i18n/locales/de.ts (+2 -0)
📝 frontend/src/i18n/locales/en.ts (+2 -0)
📝 frontend/src/i18n/locales/fr.ts (+2 -0)
📝 frontend/src/i18n/locales/it.ts (+4 -2)
📝 frontend/src/i18n/locales/ja.ts (+2 -0)
📝 frontend/src/pages/PrintersPage.tsx (+3 -0)

📄 Description

Description

Show remaining spool weight instead of used in AssignSpoolModal and assignedSpool alongside percentage. This avoids me doing math in my head to know how much is left exactly.

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

  • AssignSpoolModal.tsx - Changed weight display from showing "used" to showing "remaining" weight
    FilamentHoverCard.tsx:
  • Added remainingWeightGrams?: number | null field to the assignedSpool interface
  • Added display of remaining weight (in grams) next to the fill level percentage
  • Italian localization (it.ts): updated unassignSpool translation from "Deassegna" to "Scollega", updated fill label from "Riempi" to "Residuo" for improved
  • PrintersPage.tsx - Added remainingWeightGrams calculation (3 locations) that computes remaining weight as label_weight - weight_used

Screenshots

image image

Testing

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

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/429 **Author:** [@Keybored02](https://github.com/Keybored02) **Created:** 2/18/2026 **Status:** ✅ Merged **Merged:** 2/18/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.1b` ← **Head:** `feature/use_remaining_filament` --- ### 📝 Commits (5) - [`7efbb1f`](https://github.com/maziggy/bambuddy/commit/7efbb1fc58ea4ab8124d4d9c0bd747af366e7726) Show remaining spool weigth instead of used - [`626a345`](https://github.com/maziggy/bambuddy/commit/626a3455964bfcca4d41f2297ecf6982598a66f7) Merge branch '0.2.1b' into feature/use_remaining_filament - [`07015a7`](https://github.com/maziggy/bambuddy/commit/07015a7f8fdb070ff83aa8bcba0907df00fe826e) fix(i18n): update remaining filament labels in multiple languages - [`c68b73f`](https://github.com/maziggy/bambuddy/commit/c68b73fde8d03722436e73d458e4d89066c58451) Merge branch 'feature/use_remaining_filament' of https://github.com/Keybored02/bambuddy into feature/use_remaining_filament - [`1c068d2`](https://github.com/maziggy/bambuddy/commit/1c068d2a2f19f61154421180fb12ace54d1a8c78) Merge branch '0.2.1b' into feature/use_remaining_filament ### 📊 Changes **8 files changed** (+22 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/AssignSpoolModal.tsx` (+1 -1) 📝 `frontend/src/components/FilamentHoverCard.tsx` (+6 -2) 📝 `frontend/src/i18n/locales/de.ts` (+2 -0) 📝 `frontend/src/i18n/locales/en.ts` (+2 -0) 📝 `frontend/src/i18n/locales/fr.ts` (+2 -0) 📝 `frontend/src/i18n/locales/it.ts` (+4 -2) 📝 `frontend/src/i18n/locales/ja.ts` (+2 -0) 📝 `frontend/src/pages/PrintersPage.tsx` (+3 -0) </details> ### 📄 Description ## Description Show remaining spool weight instead of used in AssignSpoolModal and assignedSpool alongside percentage. This avoids me doing math in my head to know how much is left exactly. ## 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 - `AssignSpoolModal.tsx` - Changed weight display from showing "used" to showing "remaining" weight `FilamentHoverCard.tsx`: - Added `remainingWeightGrams?: number | null field` to the `assignedSpool` interface - Added display of remaining weight (in grams) next to the fill level percentage - Italian localization (`it.ts`): updated `unassignSpool` translation from "Deassegna" to "Scollega", updated fill label from "Riempi" to "Residuo" for improved - `PrintersPage.tsx` - Added `remainingWeightGrams` calculation (3 locations) that computes remaining weight as l`abel_weight - weight_used` ## Screenshots <img width="426" height="81" alt="image" src="https://github.com/user-attachments/assets/53a7e505-af11-4421-92c2-d14d9cd2c754" /> <img width="227" height="212" alt="image" src="https://github.com/user-attachments/assets/b2b22c4e-895a-4557-8cf8-e1e58dd74965" /> ## Testing <!-- Describe how you tested your changes --> - [x] I have tested this on my local machine - [x] I have tested with my printer model: H2C ## Checklist - [x] My code follows the project's coding style - [x] 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 ## Additional Notes --- <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:37 +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#1035
No description provided.