Skip to content

feat: connector update checking and one-click upgrade#66

Merged
graydawnc merged 3 commits intomainfrom
feat/connector-updates
Apr 12, 2026
Merged

feat: connector update checking and one-click upgrade#66
graydawnc merged 3 commits intomainfrom
feat/connector-updates

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 12, 2026

Summary

  • Check npm registry for newer connector versions on app launch (async, non-blocking) and cache results in main process
  • Expose update availability in connector detail view with version diff display (v1.2.0 → v1.3.0)
  • One-click "Update" button that downloads, installs, and reloads the connector in-place
  • Manual "check for updates" available via IPC (re-checks all connectors on demand)
  • Failed updates show inline error; old version continues working unaffected

Changes

Layer File What
Core npm-install.ts New checkForUpdates() — batch checks all installed connectors against npm registry using semver.gt
Main index.ts Startup update check (fire-and-forget), connector:check-updates and connector:update IPC handlers, extracted reloadConnectors() helper (deduped from 3 call sites)
Preload index.ts New checkUpdates() and update() methods on connectors API
Renderer SettingsPanel.tsx Update banner with version diff + Update button in connector detail view, per-connector error scoping

Design decisions

  • No DB changes — version lives in package.json already
  • No periodic polling — launch + manual check is sufficient
  • No auto-update — user-initiated only
  • No confirmation dialog — low-risk operation on already-trusted connector
  • Bundled connectors excluded — managed by app updates

Test plan

  • Install a connector, publish a newer version to npm, relaunch app → detail view shows update banner
  • Click "Update" → connector updates, banner disappears, connector continues syncing
  • Simulate network failure during update → error shown inline, old version unaffected
  • Bundled connectors → no update banner shown
  • Manual check via Settings → re-fetches latest versions

🤖 Generated with Claude Code

graydawnc and others added 3 commits April 12, 2026 20:27
Check npm registry for newer connector versions on app launch (async,
non-blocking) and expose update availability in the connector detail
view. Users can one-click update from the detail page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move version number, Update, and Uninstall into a compact inline row
below the connector name/description (VS Code-style). Version on the
left, actions on the right. Bundled connectors hide this row entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tests cover: newer version available, versions equal, installed newer,
network failure silently skipped, multiple connectors checked in parallel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc marked this pull request as ready for review April 12, 2026 15:15
@graydawnc graydawnc merged commit 3d67c30 into main Apr 12, 2026
3 checks passed
@graydawnc graydawnc deleted the feat/connector-updates branch April 12, 2026 15:15
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