feat(production): filament sync button - #17
Merged
Merged
Conversation
A "Sync from BambuBuddy" button on Filament Inventory, beside Add Filament. Pulls the spool shelf and reports what it found: 129 spools became 9 materials totalling 129.0kg against the real inventory. The result deliberately states BOTH numbers - spools and material/colour buckets - because they are different counts and an operator comparing this page with BambuBuddy's needs to know which one they are reading. BambuBuddy shows 129 rows; Tensor shows 9, and neither is wrong. Manual, mirroring FleetSyncButton and for the same reasons: the far end is a laptop reached over a VPN, so a background poll would fail routinely whenever it sleeps, and a filament shelf changes when a human puts a spool on it rather than continuously. It also overwrites Tensor's stock figures with BambuBuddy's, which is a thing someone should choose to do rather than have happen quietly. An empty result is reported as a problem, not a success: "BambuBuddy answered, but has no spools" looks identical to a broken connection on a page that was already empty. The empty state now points at the sync as well as the manual form, since this page can populate itself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



A "Sync from BambuBuddy" button on Filament Inventory, beside Add Filament. Pulls the spool shelf and reports what it found — against the real inventory: 129 spools → 9 materials, 129.0kg.
The result deliberately states both numbers, because they are different counts and an operator comparing this page with BambuBuddy's needs to know which one they are reading. BambuBuddy shows 129 rows; Tensor shows 9; neither is wrong.
Manual, mirroring
FleetSyncButtonand for the same reasons: the far end is a laptop reached over a VPN, so a background poll would fail routinely whenever it sleeps — and a filament shelf changes when a human puts a spool on it, not continuously. It also overwrites Tensor's stock figures with BambuBuddy's, which is something someone should choose to do rather than have happen quietly.An empty result is reported as a problem, not a success: "BambuBuddy answered, but has no spools" looks identical to a broken connection on a page that was already empty.
Requires the backend sync endpoint.
🤖 Generated with Claude Code