Repository navigation
feat(dashboard): show system versions on the versions page - #299
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GET /api/v1/versions adds the system field only for sessions with edit_setup. Guests get the versions without it, and requests without a user in the context (no accounts yet) keep the previous behaviour. The dpkg status and os-release paths can be overridden with ENERGY_NODE_DPKG_STATUS and ENERGY_NODE_OS_RELEASE for demo and smoke runs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The system card shows the running kernel right after the OS row and takes the point release (for example 12.11) from debian_version when it belongs to the major release in os-release. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Squash-merge commit message
Highlight translations
Tour
{"*": {"steps": [{"panel": "settings-panel", "page": "versions", "target": "versions-system", "device": "any", "need": "edit_setup", "title": {"de": "Systemversionen", "en": "System versions"}, "text": {"de": "Hier stehen Betriebssystem, Kernel und die Systemprogramme des Nodes mit ihrer Version. Liegt ein Programm hinter der erwarteten Version, ist es als veraltet markiert.", "en": "This card lists the operating system, the kernel and the system programs of the node with their version. A program behind the expected version is marked as outdated."}}]}}Summary
The versions page shows which system software a node runs, so a version behind the pinned one is visible without SSH. A node had been running an older Caddy than the bundle pins, and no page showed it.
Evidence
GET /api/v1/versionshad nosystemfield and the page listed only Energy Node components.Smoke run
hauptpasses, including the new checks for the row order, the single outdated mark, the point release and the kernel. Checked visually in the demo by the maintainer. Not checked against the files of a real node.Merge Danger
Door: two-way. Read-only, no stored data, no change to installer or updater.
Blast Radius: versions page. One new optional API field and one new card. If a file cannot be read, its rows are left out.
Checks
scripts/dev/check_tracked_secrets.shis clean.🤖 Generated with Claude Code