Skip to content

Add "Open folders" submenu and enhance recents menus#105

Merged
dimitar-radenkov merged 2 commits into
masterfrom
feature/tray-menu-recent-actions-ux
May 16, 2026
Merged

Add "Open folders" submenu and enhance recents menus#105
dimitar-radenkov merged 2 commits into
masterfrom
feature/tray-menu-recent-actions-ux

Conversation

@dimitar-radenkov
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 16, 2026 06:43
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 16, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 81.69935% with 28 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ntframe/Services/Infrastructure/TrayIconManager.cs 81.69% 24 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

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 “Open folders” submenu to the tray icon context menu and refactors the “Recent captures/recordings” submenus to provide quicker actions (open/open folder/export GIF) plus “clear recents”, with accompanying unit tests.

Changes:

  • Add “Open folders” submenu (Snips/Videos/Logs) and wire it to configured output directories.
  • Redesign “Recent captures” / “Recent recordings” menus to use inline action buttons and add “Clear recent …” actions.
  • Extend TrayIconManagerTests to cover the new folder-opening and empty-recents menu behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
Pointframe/Services/Infrastructure/TrayIconManager.cs Adds “Open folders” submenu; refactors recent menus to custom row UI + clear actions; introduces OpenConfiguredFolder.
Pointframe.Tests/Services/TrayIconManagerTests.cs Adds tests for opening configured folders and for empty/non-empty recent menus; adds tests for clearing recents.

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

};
gifButton.MouseEnter += (s, _) => ((System.Windows.Controls.Button)s).Background = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromRgb(200, 230, 255));
gifButton.MouseLeave += (s, _) => ((System.Windows.Controls.Button)s).Background = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromRgb(230, 240, 255));
gifButton.Click += (_, _) => ExportRecentRecordingGif_Click(new WpfMenuItem { Tag = recentRecording }, new System.Windows.RoutedEventArgs());
}

[Fact]
public void ClearRecentCaptures_Click_EmptiesCapturesAndRebuildsMen()
Comment on lines +630 to +631
Directory.CreateDirectory(path);
OpenFolder(path);
Comment on lines +298 to +302
var menuItem = new WpfMenuItem
{
Header = panel,
Tag = capturePath,
};
Comment on lines +280 to +284
Content = "📁",
Width = 32,
Height = 28,
Padding = new System.Windows.Thickness(4),
ToolTip = "Open folder",
Comment on lines +382 to +386
Content = "🎬",
Width = 32,
Height = 28,
Padding = new System.Windows.Thickness(4),
ToolTip = "Export to GIF",
Comment on lines +378 to +382
public void ClearRecentCaptures_Click_EmptiesCapturesAndRebuildsMen()
{
StaTestHelper.Run(() =>
{
var manager = CreateManager();
@dimitar-radenkov dimitar-radenkov merged commit acca290 into master May 16, 2026
5 checks passed
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