[PR #360] [MERGED] Add Spool card fixes and additions, It locale update #1011

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

📋 Pull Request Information

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

Base: 0.2.0bHead: 0.2.0b


📝 Commits (1)

  • 30b6190 Add Spool card fixes and additions, It locale update

📊 Changes

9 files changed (+188 additions, -19 deletions)

View changed files

📝 frontend/src/components/spool-form/AdditionalSection.tsx (+53 -1)
📝 frontend/src/components/spool-form/FilamentSection.tsx (+60 -9)
📝 frontend/src/i18n/locales/de.ts (+2 -0)
📝 frontend/src/i18n/locales/en.ts (+2 -0)
📝 frontend/src/i18n/locales/fr.ts (+3 -1)
📝 frontend/src/i18n/locales/it.ts (+58 -0)
📝 frontend/src/i18n/locales/ja.ts (+2 -0)
📝 frontend/src/pages/LoginPage.tsx (+4 -4)
📝 frontend/src/pages/UsersPage.tsx (+4 -4)

📄 Description

Description

Added a “Measured Weight” field under “Remaining Weight” that lets users enter total measured spool weight; it recalculates remaining filament by subtracting empty spool weight.

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

  • Unified the subtype field in the spool modal to match the other dropdowns (searchable list with consistent styling and custom entry support).
  • Added a “Measured Weight” field: it accepts free typing, validates on blur, and shows a bottom-right toast on out-of-range values while reverting to the computed default.
    -Added localized strings for the new measured-weight label and validation error.
  • Updated Italian locales to match en.ts

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/360 **Author:** [@Keybored02](https://github.com/Keybored02) **Created:** 2/13/2026 **Status:** ✅ Merged **Merged:** 2/13/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.0b` ← **Head:** `0.2.0b` --- ### 📝 Commits (1) - [`30b6190`](https://github.com/maziggy/bambuddy/commit/30b619016372681e5ab991a3922770a76eab9eea) Add Spool card fixes and additions, It locale update ### 📊 Changes **9 files changed** (+188 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/spool-form/AdditionalSection.tsx` (+53 -1) 📝 `frontend/src/components/spool-form/FilamentSection.tsx` (+60 -9) 📝 `frontend/src/i18n/locales/de.ts` (+2 -0) 📝 `frontend/src/i18n/locales/en.ts` (+2 -0) 📝 `frontend/src/i18n/locales/fr.ts` (+3 -1) 📝 `frontend/src/i18n/locales/it.ts` (+58 -0) 📝 `frontend/src/i18n/locales/ja.ts` (+2 -0) 📝 `frontend/src/pages/LoginPage.tsx` (+4 -4) 📝 `frontend/src/pages/UsersPage.tsx` (+4 -4) </details> ### 📄 Description ## Description Added a “Measured Weight” field under “Remaining Weight” that lets users enter total measured spool weight; it recalculates remaining filament by subtracting empty spool weight. ## Related Issue ## Type of Change - [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 --> - Unified the `subtype` field in the spool modal to match the other dropdowns (searchable list with consistent styling and custom entry support). - Added a “Measured Weight” field: it accepts free typing, validates on blur, and shows a bottom-right toast on out-of-range values while reverting to the computed default. -Added localized strings for the new measured-weight label and validation error. - Updated Italian locales to match `en.ts` ## Screenshots <img width="572" height="283" alt="image" src="https://github.com/user-attachments/assets/317a5f6a-0312-4101-be63-9cbe83745971" /> <img width="486" height="162" alt="image" src="https://github.com/user-attachments/assets/bff3c5d6-47dd-4f9d-9092-7af20bcd41c2" /> ## 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:28 +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#1011
No description provided.