Implement GitHub release notes fetching with react-query#206
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances the way release notes are displayed and fetched in the application. It introduces dynamic retrieval of up to 10 recent GitHub releases, improves the fallback mechanism when offline or on error, and refines the user interface for presenting release notes. The update also ensures that update prompts show the latest release notes from GitHub when available.
Release Notes Display Improvements
ReleaseNotesDialognow fetches up to 10 recent releases from GitHub using the newfetchGitHubReleaseNotesservice, displaying them in a user-friendly format. If fetching fails or no releases are returned, it falls back to the local markdown file. Loading and error states are clearly communicated to the user. [1] [2] [3]ReleaseNotesCarddescription is updated to clarify that up to 10 recent versions from GitHub are shown, with a local fallback if offline.Release Notes Service Layer
release-notes.service.tsproviding functions to fetch, normalize, and sort GitHub releases, linkify URLs in markdown, and supply fallback local release notes.Updater Integration
These changes together provide a more robust, informative, and user-friendly release notes experience in the application.