Add version checking and changelog dialog for web app updates#595
Draft
Add version checking and changelog dialog for web app updates#595
Conversation
新しいバージョンが利用可能な場合に右下にトーストを表示し、 アップデートボタンとリリースノートを確認できる機能を実装。 主な変更点: - Vercelデプロイ時にversion.jsonを生成するWebpackプラグインを追加 - バージョンチェックサービス(5分ごとにポーリング)を実装 - 右下に表示されるバージョン更新トーストコンポーネントを追加 - アップデート後に「更新完了」トーストを表示 - GitHubリリースノートを表示するChangelogDialogを追加 - Appコンポーネントに自動バージョンチェック機能を統合 トーストの種類: 1. 新バージョン検出時: アップデートボタンと「後で」ボタン 2. アップデート完了時: 変更履歴を見るボタン ユーザーは一度却下したバージョンは再度通知されない仕組みを実装。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
This PR adds automatic version checking and update notification functionality to the web application, allowing users to be notified when new versions are available and view the changelog from GitHub releases.
Key Changes
VersionCheckService (
app/src/services/VersionCheckService.ts): New service that manages version checking by comparing the currentversion.jsonwith the latest version. Features include:VersionUpdateToast (
app/src/components/ui/VersionUpdateToast.tsx): Toast notification component that displays:ChangelogDialog (
app/src/components/ChangelogDialog/ChangelogDialog.tsx): Dialog component that:VersionCheckHandler (
app/src/components/App/VersionCheckHandler.tsx): Orchestrator component that:Build Configuration (
app/webpack.prod.js): AddedGenerateVersionJsonPluginthat:version.jsonduring build with commit SHA, build time, and versionVERCEL_GIT_COMMIT_SHAenvironment variable for deployment trackingApp Integration (
app/src/components/App/App.tsx): IntegratedVersionCheckHandlercomponent into the main AppImplementation Details
https://claude.ai/code/session_011CV5grnKsxQqK7LNYjUnYs