mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #789] [MERGED] Add notification for no spool assigned for active trays, improve usage tracker logic in edge cases #1123
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#1123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/789
Author: @Keybored02
Created: 3/22/2026
Status: ✅ Merged
Merged: 3/24/2026
Merged by: @maziggy
Base:
dev← Head:feature/no_assigned_spool📝 Commits (10+)
aadf9f3Revert "Set version"20ee781Updated READMEd4e38b5Merge branch 'dev' of https://github.com/Keybored02/bambuddy into dev55eccd1Add missing spool assignment notification feature9db0effImplement spool ID resolution for mid-print reassignment and unit tests for tracking logicb6b1dfehandle mid-print spool reassignments without breaking snapshot fallbacka43932fAdd tray color resolution and update notification templates205d16eMerge branch 'dev' into feature/no_assigned_spool61cc941Added localesae8fbdcMove functions to deedicated file📊 Changes
28 files changed (+726 additions, -70 deletions)
View changed files
📝
backend/app/api/routes/notifications.py(+2 -0)📝
backend/app/core/database.py(+8 -0)📝
backend/app/core/websocket.py(+16 -0)📝
backend/app/main.py(+6 -0)📝
backend/app/models/notification.py(+1 -0)📝
backend/app/models/notification_template.py(+6 -0)📝
backend/app/schemas/notification.py(+5 -0)📝
backend/app/schemas/notification_template.py(+15 -0)📝
backend/app/services/notification_service.py(+41 -0)➕
backend/app/services/spool_assignment_notifications.py(+169 -0)📝
backend/app/services/usage_tracker.py(+99 -47)📝
backend/tests/conftest.py(+1 -0)📝
backend/tests/integration/test_notifications_api.py(+36 -0)➕
backend/tests/unit/services/test_spool_assignment_notifications.py(+77 -0)📝
backend/tests/unit/services/test_usage_tracker.py(+7 -3)📝
backend/tests/unit/test_usage_tracker.py(+102 -1)📝
frontend/src/__tests__/hooks/useWebSocket.test.ts(+56 -17)📝
frontend/src/api/client.ts(+3 -0)📝
frontend/src/components/NotificationProviderCard.tsx(+14 -0)📝
frontend/src/contexts/ToastContext.tsx(+4 -1)...and 8 more files
📄 Description
Description
Added print-start check for missing spool assignments: shows dismissible frontend warning and supports notification event/toggle in settings. Improved usage tracking: now correctly handles mid-print spool changes, using live assignment if changed after print start, otherwise falls back to snapshot.
Related Issue
Fixes #763
Type of Change
Changes Made
Testing
Checklist
Additional Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.