mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
Reporter (@snozzlebert on A1 mini external slot) saw the Filament page Location column update correctly after Assign Spool, but the Printer card kept showing "Empty slot" until they manually pressed Force-refresh. MQTT command was going through fine; gap was client-side. AssignSpoolModal's two onSuccess callbacks invalidated the inventory / slot-assignment queries but never invalidated ['printerStatus', printerId] and never issued a pushall. For Bambu RFID-tagged spools the printer echoes the new tray_type on its own; for non-RFID spools and A1 mini external slots the firmware doesn't volunteer that state change. Added nudgePrinterRepublish() helper called from both onSuccess paths: api.refreshPrinterStatus(printerId) to issue the pushall (same call the Force-refresh button uses) plus invalidate printerStatus so the refetch lands. Refresh failures are swallowed — the assignment itself succeeded; a stale-cache nudge that didn't go through shouldn't surface as "assign failed". Same pattern as ConfigureAmsSlotModal since #1235, with the extra pushall because assign-spool affects firmware- side state.