feat(production): fleet sync button for Machine Management - #12
Conversation
The page had no way to populate itself. Nothing syncs the fleet on a timer or at startup - POST /machine-fleet/sync is the only thing that does, and only cmd/fleetsync and a bare API call could reach it. So a fresh deployment showed an empty table with no route forward, which is exactly what happened on tensor.optiminastic.com: the backend answered fine, it simply had no machines to return. Deliberate that it stays manual. The printer host is a laptop on a home network reached over a VPN; polling it on a schedule would mean routine failures whenever it sleeps, and BambuBuddy is the source of truth for a fleet that changes rarely. OrdersSyncButton makes the same trade for Shopify, and this mirrors it, down to sitting beside the page header. Zero printers is reported as a problem rather than a success: BambuBuddy answering with an empty fleet looks identical to a broken connection when the table was already empty, and the difference is worth stating. 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Machine Management had no way to populate itself.
POST /machine-fleet/syncis the only thing that fills the fleet — nothing runs on a timer or at startup — and onlycmd/fleetsyncor a bare API call could reach it.That is why
tensor.optiminastic.com/dashboard/all/production/machinesshows an empty table: the backend answers fine, it simply has no machines to return.What this adds
FleetSyncButtonbeside the page header, mirroringOrdersSyncButtonsyncFleetActionserver action +syncFleetMachinesservice call +FleetSyncResultSchemaStaying manual is deliberate: the printer host is a laptop on a home network reached over Tailscale, so polling it on a schedule would fail routinely whenever it sleeps, and the fleet changes rarely.
Zero printers is reported as a problem rather than a success — BambuBuddy answering with an empty fleet looks identical to a broken connection when the table was already empty.
Verified
cmd/fleetsyncagainst BambuBuddy over Tailscale:tsc --noEmitandeslintclean.🤖 Generated with Claude Code