From 1b32cc26ccf13e1dc69cb887dc8a81549319660b Mon Sep 17 00:00:00 2001 From: maziggy Date: Tue, 10 Mar 2026 11:36:08 +0100 Subject: [PATCH] Shorten inventory location labels for compact display AMS slots now show "B3" instead of "AMS-B Slot 3" and external spool holders show "Ext" instead of "External", keeping the table readable at narrow widths. --- CHANGELOG.md | 1 + frontend/src/utils/amsHelpers.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8567924b9..dcb380e39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to Bambuddy will be documented in this file. - **License changed from MIT to AGPL-3.0** — To prevent unauthorized redistribution of Bambuddy as a closed-source product. All existing contributions were made under MIT, which is forward-compatible with AGPL-3.0. Community contributions and usage are unaffected. ### Improved +- **Shorter Inventory Location Labels** — The location column in the Inventory table now shows compact labels like "H2D-1 B3" instead of "H2D-1 AMS-B Slot 3". External spool holders show "Ext" instead of "External". AMS-HT labels remain unchanged ("HT-A"). - **Higher FTP Timeout Options for Large Files** ([#660](https://github.com/maziggy/bambuddy/issues/660)) — Added 180s and 300s FTP timeout options in Settings. The previous maximum of 120s was insufficient for large 3MF files (e.g. 28 MB Hueforge models) which can't be downloaded from the printer's FTP server within 2 minutes, especially during active printing. Reported by @PasDoe. - **Separate Permission for AMS Spool Assignments** ([#635](https://github.com/maziggy/bambuddy/issues/635)) — Added a new `inventory:view_assignments` permission that controls whether spool-to-AMS-slot assignment data is visible on the Printers page. Previously, viewing spool assignments on printer cards required `inventory:read`, which also exposed the full Inventory page in the sidebar. Admins can now grant `inventory:view_assignments` without `inventory:read` so users can see what's loaded in the AMS without accessing the full spool inventory. All default groups (Administrators, Operators, Viewers) include the new permission automatically. Also fixed multi-word permission labels in the group editor (e.g. "Update_Own" → "Update Own"). Reported by @Minebuddy. diff --git a/frontend/src/utils/amsHelpers.ts b/frontend/src/utils/amsHelpers.ts index 854fde004..d2f8274d7 100644 --- a/frontend/src/utils/amsHelpers.ts +++ b/frontend/src/utils/amsHelpers.ts @@ -68,12 +68,12 @@ export function formatSlotLabel( isHt: boolean, isExternal: boolean ): string { - if (isExternal) return 'External'; + if (isExternal) return 'Ext'; // Convert AMS ID to letter (A, B, C, D) // AMS-HT uses IDs starting at 128 const letter = String.fromCharCode(65 + (amsId >= 128 ? amsId - 128 : amsId)); if (isHt) return `HT-${letter}`; - return `AMS-${letter} Slot ${trayId + 1}`; + return `${letter}${trayId + 1}`; } /**