From 44afdc0e20afe2311edd5981878c41f31ef6b7a2 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 9 Jul 2026 17:01:05 +0200 Subject: [PATCH] =?UTF-8?q?Merge=20Konflikte=20gel=C3=B6st?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/Services/BeWoWindowService.cs | 3 +- BeWo/Styles/ControlStyles/GroupBoxStyles.xaml | 125 --------- BeWo/View/Controls/AI/AiChatButton.xaml.cs | 5 +- .../AI/AiPromptbausteinLibraryControl.xaml | 253 +++++++++--------- .../Controls/GkvAbrechnungDetailControl.xaml | 4 +- .../Accounting/GkvAbrechnungOverview.xaml.cs | 13 +- BeWo/View/Windows/AnimatedBeWoWindow.xaml | 2 +- BeWo/View/Windows/AnimatedBeWoWindow.xaml.cs | 4 +- BeWo/ViewModel/AiPromptbausteinFolderVM.cs | 2 +- BeWo/ViewModel/Light/GkvAbrechnungLightVM.cs | 34 ++- BeWo/ViewModel/VMFactory.cs | 4 +- ...PromptbausteinComplexSelectionViewModel.cs | 33 +-- .../AiPromptbausteinComplexTreeViewModel.cs | 16 +- BeWo/ViewModel/View/DialogViewModel.cs | 28 +- .../systemPrompts/customPreSystemPrompt.txt | 13 - Server/Components/AICore/AICore.csproj | 1 - .../AICore/Prompt/AiSystemPromptFactory.cs | 17 +- .../AiConversationSystemPromptBuilder.cs | 115 ++++---- .../AiFunctionSystemPromptBuilder.cs | 78 +++--- .../AiGenericSystemPromptBuilder.cs | 57 ---- .../SystemPrompts/BaseSystemPromptBuilder.cs | 46 +--- Service/Plugins/AiPromptbausteineService.cs | 20 +- Service/Plugins/AiService2.cs | 2 +- .../Feature/AI/AiPromptbausteinFolderDC.cs | 157 ++++++----- .../Feature/AI/AiViewContextDC.cs | 3 - Shared/Text/AiPromptbausteineTexts.cs | 2 - 26 files changed, 398 insertions(+), 639 deletions(-) delete mode 100644 Server/Components/AICore/Prompt/SystemPrompts/AiGenericSystemPromptBuilder.cs diff --git a/BeWo/Services/BeWoWindowService.cs b/BeWo/Services/BeWoWindowService.cs index fbabab803..39ae5d51f 100644 --- a/BeWo/Services/BeWoWindowService.cs +++ b/BeWo/Services/BeWoWindowService.cs @@ -237,8 +237,7 @@ namespace BeWo.Services if (windowViewModel is DialogViewModel dialogViewModel) { - dialogViewModel.Closing += (s, e) => window.Close(); - window.Closed += (s, e) => dialogViewModel.CloseFinalCommand.Execute(null); + dialogViewModel.RequestCloseFinal += (s, e) => window.Close(); } if (options.ShowAsDialog) diff --git a/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml b/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml index b145aae5b..deb694f71 100644 --- a/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml +++ b/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml @@ -52,129 +52,4 @@ - - \ No newline at end of file diff --git a/BeWo/View/Controls/AI/AiChatButton.xaml.cs b/BeWo/View/Controls/AI/AiChatButton.xaml.cs index 644ff35e0..72ad7c438 100644 --- a/BeWo/View/Controls/AI/AiChatButton.xaml.cs +++ b/BeWo/View/Controls/AI/AiChatButton.xaml.cs @@ -67,13 +67,12 @@ namespace BeWo.View.Controls.AI { var viewmodel = new AiPromptbausteinSelectionComplexViewModel(actionType, listvm); viewmodel.ItemAccepted += ItemAccepted; - viewmodel.Closed += (s, e) => viewmodel.ResetSelection(); + viewmodel.RequestCloseFinal += (s, e) => viewmodel.ResetSelection(); ViewModel.AllPromptsViewModel = viewmodel; var viewmodel2 = new AiPromptbausteinSelectionComplexViewModel(actionType, listvm, true); viewmodel2.ItemAccepted += ItemAccepted; - popup_promptbaustein_favoriten.Closed += (s, e) => viewmodel2.CloseFinalCommand.Execute(null); - viewmodel2.Closed += (s, e) => viewmodel2.ResetSelection(); + popup_promptbaustein_favoriten.Closed += (s, e) => viewmodel2.ResetSelection(); var view2 = new AiPromptbausteinComplexSelectionFavoritenView(viewmodel2); viewmodel2.SelectedFolder = viewmodel2.Folders.VMList[0]; view2.Padding = new Thickness(3); diff --git a/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml b/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml index 38b8b42c1..e2ab79dab 100644 --- a/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml +++ b/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml @@ -186,8 +186,8 @@ - - + + @@ -238,26 +238,25 @@ Background="Transparent" ContextMenuOpening="ListBox_ContextMenuOpening" PreviewMouseDown="Grid_PreviewMouseDown_2"> - - - - - - - - - - - - - - + + + + + + + + + + + + - - + - - - - - - + + + + - - - - + - - - - - - - - + + + + + + + - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + @@ -416,16 +414,22 @@ - + - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - + + + + - - - - - - - + - - - - - - - + + + + + + + + - + + Text="{Binding Oid}" />