feat(devices): show current vs target agent version in Update agent dialog #70
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VAPP-61-update-agent-version-display"
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?
The Update agent modal now shows the device's current agent build (Device::agent_version) alongside the target build it will push to, sourced from the admin-only get_agent_fetcher_config().version. The operator can confirm the update moved the agent forward (current was X, target is Y; the "Agent" fact reads Y after the agent restarts and reconnects).
The target reads as "unknown" when the fetcher config cannot be read (non-admin, read error, or no source configured / disabled), so the modal still opens and the push button stays enabled. When the known target equals the non-empty current build, a brief "already on the target build; the push will skip it" hint renders. The hint is display-only; the server still makes the authoritative skip decision via the pushAgentUpdate ack.
#VAPP-61