Skip to content

feat(dashboard): show system versions on the versions page - #299

Merged
Developer-Simon merged 9 commits into
prereleasefrom
feat/versions-system-dependencies
Nov 25, 2026
Merged

Developer-Simon merged 9 commits into
prereleasefrom
feat/versions-system-dependencies

Conversation

@Developer-Simon

Copy link
Copy Markdown
Owner

Squash-merge commit message

The versions page gets a System card with the operating system including
the Debian point release, the running kernel, Caddy, Tailscale, Mosquitto
and Python.

The dashboard reads the dpkg database, os-release, debian_version and the
kernel release when the page is opened, so the card also reflects apt
upgrades. Caddy and Tailscale are marked as outdated only when the
installed version is lower than the one the installed bundle pins. GET
/api/v1/versions returns the new field "system" only to sessions with
edit_setup.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

Highlight translations

Highlights (de):
- Die Versionsseite zeigt Betriebssystem, Kernel und Systemprogramme des Nodes mit ihrer Version

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.

Settings > Versions
└── System card (new, edit_setup only)
    ├── operating system   os-release, point release from debian_version
    ├── kernel             /proc/sys/kernel/osrelease
    └── Caddy, Tailscale, Mosquitto, Python
                           dpkg status, pins from installed-manifest.json

Evidence

  • Before: GET /api/v1/versions had no system field and the page listed only Energy Node components.
  • After, with the demo fixtures:
Raspbian GNU/Linux        12.11 (bookworm)
Kernel                    6.12.47+rpt-rpi-v6
Caddy       [outdated]    2.6.2     expected 2.11.9
Tailscale                 1.62.0    expected 1.62.0
Mosquitto                 2.0.11
Python                    3.11.2

Smoke run haupt passes, 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

  • The title is a Conventional Commits subject.
  • scripts/dev/check_tracked_secrets.sh is clean.
  • AI assistance disclosed per AI-DISCLAIMER.md: Claude Sonnet 5.5
  • Suites run locally: go vet, go test ./..., npm test, smoke (haupt), shellcheck 0.9.0, cache_bust check
  • Linked issue: none

🤖 Generated with Claude Code

Developer-Simon and others added 9 commits November 25, 2026 23:27
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>
@Developer-Simon
Developer-Simon merged commit 18a2b0b into prerelease Nov 25, 2026
20 checks passed
@Developer-Simon
Developer-Simon deleted the feat/versions-system-dependencies branch November 25, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant