Skip to content

feat(update): show an update icon in the view header when a newer release is out - #69

Merged
luoxuanzao merged 2 commits into
mainfrom
feat/update-badge
Sep 17, 2026
Merged

luoxuanzao merged 2 commits into
mainfrom
feat/update-badge

Conversation

@luoxuanzao

Copy link
Copy Markdown
Member

Summary

  • When GitHub has a newer stable release than the installed plugin, an update icon appears in the view header next to the feedback and settings buttons; clicking it opens Qoderian's plugin page inside Obsidian (via obsidian://show-plugin?id=…), where Obsidian's own update button lives — no trip to the browser.
  • The version check asks the GitHub releases API once per plugin session (/releases/latesttag_name), compares it segment-by-segment with the installed manifest.version, and stays silent on any failure (offline, rate limit, malformed payload) so update discovery never blocks chat.
  • The icon is a normal header action button (brand-colored download icon, tooltip carries the version) and sets height/padding/border/background through a doubled class so the theme's default button chrome cannot take it over.

Verification

  • npm run typecheck
  • npm run lint
  • npm run test — 165 suites / 3555 tests pass
  • npm run build
  • npm run release:check — Release 1.0.11 is ready
  • npm run audit:prod — 0 vulnerabilities
  • Real-app check in a live vault: the icon only appears when the installed manifest is older than the latest release (verified by lowering the dev vault's manifest against the current release); it renders 16×16 like its sibling icons, the tooltip reads "Update 1.0.11", and clicking opens the plugin page — repeated clicks keep working after opening and closing that page

Safety

  • No credentials, private vault content, internal URLs, or personal paths are included
  • User-visible changes are documented in CHANGELOG.md

Co-authored-by: QoderAI (Qwen 3.8 Max) qoder_ai@qoder.com

luoxuanzao and others added 2 commits September 17, 2026 10:12
Users had to watch the repository to learn about new versions. Check the
latest GitHub release once per session and surface a small badge next to
the Qoderian mark; clicking it opens the release page. Network failures
stay silent so discovery never blocks chat.

Co-authored-by: QoderAI <qoder_ai@qoder.com>
The badge was a one-shot button (once: true) sitting in the title row, it wore
the theme's default button chrome, and clicking it left Obsidian for the GitHub
release page. Move it into the header actions next to the other icons as a
brand-colored download button, keep it clickable on every click, and open
Qoderian's plugin page instead — Obsidian's own update button lives there, so
updating no longer needs a trip to the browser.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
@luoxuanzao
luoxuanzao merged commit 64a443b into main Sep 17, 2026
10 checks passed
@luoxuanzao
luoxuanzao deleted the feat/update-badge branch September 17, 2026 06:30
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