Skip to content

feat(ui): show NetCopy version in topbar (local + peer)#70

Merged
VirusAlex merged 1 commit intomainfrom
feat/show-version
May 1, 2026
Merged

feat(ui): show NetCopy version in topbar (local + peer)#70
VirusAlex merged 1 commit intomainfrom
feat/show-version

Conversation

@VirusAlex
Copy link
Copy Markdown
Owner

Summary

/api/peer/info already returns the running NetCopy version on each side, but the UI never read or displayed it. Two compact version chips in the topbar:

  • Brand area, next to hostname: local version (e.g. v0.4.2) — populated on a successful local Connect.
  • Peer section, next to peer status pill: peer version — populated on a successful Connect peer.

Both hidden until populated so first-load doesn't show v?. Hover-title carries the same value plus context for narrow viewports.

The peer status pill also gains a richer title showing NetCopy v0.4.2 on hostname once connected — useful for spotting "peer is running a different build than me" mismatches at a glance during a release.

Why

"Надо бы ещё в ui где-то отображать версию" — VirusAlex on the v0.4.2 live test

Test plan

  • Local mvn compile clean; ArchUnit 8/8.
  • CI green.
  • Manual: open the UI, see no version chip until Connect; click Connect → "v0.4.3" pill appears next to hostname.
  • Manual: connect to a peer running a different version → both pills show, hover the peer pill for full label.

🤖 Generated with Claude Code

The /api/peer/info endpoint returns the running NetCopy version on each
side, but the UI never read or displayed it. Reported by VirusAlex —
"надо бы ещё в ui где-то отображать версию".

Two compact version chips in the topbar:

  - Brand area, next to the hostname: local version (e.g. "v0.4.2"),
    populated on a successful Connect.
  - Peer section, next to the peer status pill: peer version on a
    successful Connect peer.

Both are hidden until populated so first-load doesn't show "v?".
Hover-title carries the same value plus context for narrow viewports.

The peer status pill also gains a richer title that shows
"NetCopy v0.4.2 on hostname" once the connection succeeds — useful for
spotting "peer is running a different build than me" mismatches at a
glance during a release.

Pure client-side, no API changes (the version field has been on
/api/peer/info since v0.2.x).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VirusAlex VirusAlex merged commit 31b3a60 into main May 1, 2026
1 check passed
@VirusAlex VirusAlex deleted the feat/show-version branch May 1, 2026 13:14
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.

2 participants