Add UpdateModal component with GitHub release integration and lastSeenVersion tracking#23
Merged
mixtapejaxson merged 2 commits intomainfrom Oct 14, 2025
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…nVersion cookie Co-authored-by: mixtapejaxson <79427951+mixtapejaxson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] rework the notification modal, and add an update modal that saves the version tag from github and any time there's a new release it shows the update notes. call the cookie lastSeenVersion.
Add UpdateModal component with GitHub release integration and lastSeenVersion tracking
Sep 30, 2025
mixtapejaxson
approved these changes
Oct 14, 2025
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.
Overview
This PR implements an update notification system that automatically checks for new GitHub releases and displays them to users in a modal dialog. The system uses localStorage to track the last seen version, ensuring users only see the modal when there's a new release.
Changes Made
New Components
app/components/UpdateModal.tsxapp/utils/githubRelease.tsfetchLatestRelease()- Fetches the latest release from GitHub APIgetLastSeenVersion()- Retrieves the last seen version from localStoragesetLastSeenVersion()- Saves the current version to localStoragecheckForNewRelease()- Compares versions and determines if modal should be shownIntegration
app/routes/home.tsxHow It Works
lastSeenVersionstored in localStorageTechnical Details
lastSeenVersionhttps://api.github.com/repos/mixtapejaxson/MixClick/releases/latestScreenshots
Desktop View
Mobile View
Testing
To test the update modal manually:
localStorage.removeItem('lastSeenVersion')Alternatively, set an old version to simulate a new release:
Verification
Closes #[issue-number]
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.