feat(device): show server-available agent version and update badge #84
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VAPP-73-available-agent-version"
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 dialog showed "Target: " (e.g.
latest), which is a channel pointer, not the build the server holds, and the quick-facts "Agent" row showed only the running version with no indication whether a newer build was available. A correct no-op Push on a host already on the channel build was indistinguishable from a failure.Add a
get_agent_update_statusserver function that reads the resolved server-available semver for a device from vervain-server'sagentUpdateStatuscontrol API (VS-87availableversion), returningNonefor every case where no version is known (non-admin, offline node, no catalog binary, no sidecar published) so the UI degrades to the pre-VS-87 hash-only behavior.In the device view, prefer the resolved available semver as the Update Agent dialog target (channel string only as a display fallback), and key the "already on target, the push will skip it" hint on the resolved comparison rather than the channel string, which is not a version and yields false mismatches. Add an up-to-date / update-available badge to the "Agent" quick-fact via a new
AgentFactcomponent, driven by a pureagent_update_badgehelper that returns no badge when the available version is unknown or the running version is blank. Cover the helper with unit tests for the up-to-date, update-available, unknown-available, and blank-running cases.#VAPP-73