Skip to content

Replace GitHub link with version display in header - #21

Merged
brianlovin merged 4 commits into
mainfrom
claude/show-version-in-header-xMiES
Jan 26, 2026
Merged

Replace GitHub link with version display in header#21
brianlovin merged 4 commits into
mainfrom
claude/show-version-in-header-xMiES

Conversation

@brianlovin

Copy link
Copy Markdown
Owner

Summary

Replaces the clickable GitHub repository link in the header with a persistent version label, and improves the update notification UI to show version progression (e.g., "v0.3.0 → v0.4.0").

Changes

  • Header display: Changed from showing "brianlovin/hn-cli" link to displaying current version (e.g., "v0.1.0")
  • Update notification: Enhanced to show version progression with arrow separator instead of generic "update available" text
    • Format: v{current} → v{latest} {install command}
  • Removed interactivity: Eliminated onOpenGitHub callback and mouse event handlers from the GitHub link
  • Simplified state management: Version label now always visible; update container toggles on/off as needed
  • Updated HeaderCallbacks interface: Marked as reserved for future use with explanatory comment

Implementation Details

  • Version label uses currentVersion imported from version module
  • Update notification displays latest version in success color with arrow indicator
  • Cleaner toggle logic: update container is added/removed without swapping elements
  • Removed conditional logic for showing/hiding GitHub link when updates are available

claude and others added 4 commits January 26, 2026 12:56
Replace "brianlovin/hn-cli" with the current version number (e.g., v0.3.0).
When an update is available, display an arrow to the latest version
(e.g., v0.3.0 → v0.4.0) followed by the install command.
- Show both current and new version: "v0.3.0 -> v0.5.0 · bun install..."
- Click install command to copy to clipboard with checkmark indicator
- Hover over command to highlight it
- Add @latest suffix to install commands
- Add dev:update script for testing update notification

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@brianlovin
brianlovin merged commit 90ebdf7 into main Jan 26, 2026
1 check passed
@brianlovin
brianlovin deleted the claude/show-version-in-header-xMiES branch January 26, 2026 15:47
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