Skip to content

feat: add package update notification and task for checking updates#1571

Merged
yuto-trd merged 3 commits intomainfrom
yuto-trd/notify-package-updates
Mar 8, 2026
Merged

feat: add package update notification and task for checking updates#1571
yuto-trd merged 3 commits intomainfrom
yuto-trd/notify-package-updates

Conversation

@yuto-trd
Copy link
Member

@yuto-trd yuto-trd commented Mar 8, 2026

Description

Introduce a new task to check for available package updates and notify users when updates are found. This includes adding necessary strings for localization and integrating the task into the startup process.

Breaking changes

None.

Fixed issues

None.

Copilot AI review requested due to automatic review settings March 8, 2026 09:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new startup-time background check for installed package updates and notifies the user when updates are available, integrating it into the existing startup task pipeline and adding localized UI strings.

Changes:

  • Register CheckForPackageUpdatesTask during startup alongside existing update/extension-loading tasks.
  • Implement CheckForPackageUpdatesTask to query PackageManager.CheckUpdate() and surface results via NotificationService.
  • Add new localized Message resources (EN/JA) and update the generated designer.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Beutl/Services/StartupTasks/Startup.cs Registers the new package update check task during startup initialization.
src/Beutl/Services/StartupTasks/CheckForPackageUpdatesTask.cs Implements the update-check workflow and “Open Extensions” notification action.
src/Beutl.Language/Message.resx Adds new user-facing strings for package update notifications (EN).
src/Beutl.Language/Message.ja.resx Adds new user-facing strings for package update notifications (JA).
src/Beutl.Language/Message.Designer.cs Exposes the new resource keys via strongly-typed properties.
Files not reviewed (1)
  • src/Beutl.Language/Message.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

No TODO comments were found.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

Code Coverage

Package Line Rate Branch Rate Complexity Health
Beutl.Editor 82% 76% 864
Beutl.Extensibility 12% 14% 110
Beutl.Operators 0% 100% 1
Beutl.Language 0% 17% 1071
Beutl.ProjectSystem 10% 5% 3030
Beutl.Threading 100% 93% 122
Beutl.Engine 20% 18% 14340
Beutl.Configuration 40% 20% 306
Beutl.Utilities 73% 67% 358
Beutl.Core 38% 35% 3058
Summary 24% (13113 / 55748) 23% (3637 / 16033) 23260

Minimum allowed line rate is 0%

Comment on lines +85 to +88
catch (Exception ex)
{
await ex.Handle();
}
Comment on lines +45 to +49
catch (Exception ex)
{
activity?.SetStatus(ActivityStatusCode.Error);
_logger.LogError(ex, "An error occurred while checking for package updates.");
}
@yuto-trd yuto-trd merged commit b3af215 into main Mar 8, 2026
9 checks passed
@yuto-trd yuto-trd deleted the yuto-trd/notify-package-updates branch March 8, 2026 09:43
@yas-ako
Copy link

yas-ako commented Mar 9, 2026 via email

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.

3 participants