Archive meeting workflow and screenshot changes

This commit is contained in:
2026-05-27 12:55:19 +02:00
parent 2422236ef7
commit 12832dde84
48 changed files with 3041 additions and 43 deletions
@@ -61,6 +61,56 @@ public sealed class LaunchProfileOptionsProviderTests
Assert.Contains("Ctrl+Alt+M", exception.Message, StringComparison.OrdinalIgnoreCase);
}
[Fact]
public void ScreenshotHotkeysAreRegisteredForDefaultAndExplicitProfileOverrides()
{
var provider = CreateProvider(new Dictionary<string, string?>
{
["MeetingAssistant:Hotkey:Toggle"] = "Ctrl+Alt+M",
["MeetingAssistant:Hotkey:Abort"] = "Ctrl+Alt+D",
["MeetingAssistant:Screenshots:Hotkey"] = "Ctrl+Alt+S",
["MeetingAssistant:LaunchProfiles:english:Hotkey:Toggle"] = "Ctrl+Alt+E",
["MeetingAssistant:LaunchProfiles:english:Hotkey:Abort"] = "Ctrl+Alt+Shift+D",
["MeetingAssistant:LaunchProfiles:english:Screenshots:Hotkey"] = "Ctrl+Alt+Shift+S"
});
var hotkeys = provider.GetHotkeys();
Assert.Contains(hotkeys, hotkey =>
hotkey.ProfileName == "default" &&
hotkey.Hotkey == "Ctrl+Alt+S" &&
hotkey.Action == LaunchProfileHotkeyAction.CaptureScreenshot);
Assert.Contains(hotkeys, hotkey =>
hotkey.ProfileName == "english" &&
hotkey.Hotkey == "Ctrl+Alt+Shift+S" &&
hotkey.Action == LaunchProfileHotkeyAction.CaptureScreenshot);
Assert.Contains(hotkeys, hotkey =>
hotkey.ProfileName == "default" &&
hotkey.Hotkey == "Ctrl+Alt+D" &&
hotkey.Action == LaunchProfileHotkeyAction.AbortRecording);
Assert.Contains(hotkeys, hotkey =>
hotkey.ProfileName == "english" &&
hotkey.Hotkey == "Ctrl+Alt+Shift+D" &&
hotkey.Action == LaunchProfileHotkeyAction.AbortRecording);
}
[Fact]
public void NamedProfilesDoNotInheritDefaultHotkeysForRegistration()
{
var provider = CreateProvider(new Dictionary<string, string?>
{
["MeetingAssistant:Hotkey:Toggle"] = "Ctrl+Alt+M",
["MeetingAssistant:Hotkey:Abort"] = "Ctrl+Alt+D",
["MeetingAssistant:Screenshots:Hotkey"] = "Ctrl+Alt+S",
["MeetingAssistant:LaunchProfiles:english:AzureSpeech:Language"] = "en-US"
});
var hotkeys = provider.GetHotkeys();
Assert.Equal(3, hotkeys.Count);
Assert.DoesNotContain(hotkeys, hotkey => hotkey.ProfileName == "english");
}
private static ConfigurationLaunchProfileOptionsProvider CreateProvider(
IReadOnlyDictionary<string, string?> values)
{