This commit is contained in:
Meik
2026-02-13 09:30:46 +01:00
parent 352dc42ae7
commit 86ce7e89e1
4 changed files with 238 additions and 127 deletions

View File

@@ -1400,13 +1400,20 @@ namespace FasdDesktopUi.Pages.SearchPage
{
LogException(ex);
}
}
private async void TicketOverview_SelectionRequested(object sender, TicketOverviewSelectionRequestedEventArgs e)
{
try
{
var app = Application.Current as FasdDesktopUi.App;
app?.ClearTicketOverviewTrayNotification();
}
private async void TicketOverview_SelectionRequested(object sender, TicketOverviewSelectionRequestedEventArgs e)
{
MethodBase CM = null;
if (cLogManager.DefaultLogger.IsDebug)
{
CM = MethodBase.GetCurrentMethod();
LogMethodBegin(CM);
}
try
{
var app = Application.Current as FasdDesktopUi.App;
app?.ClearTicketOverviewTrayNotification();
_renderTicketOverviewUserNames = true;
SetSearchHistoryVisibility(false);
@@ -1418,14 +1425,13 @@ namespace FasdDesktopUi.Pages.SearchPage
ShowLoadingTextItem(cMultiLanguageSupport.GetItem("Searchbar.Loading.CaseData"));
SetPendingInformationClasses(new HashSet<enumFasdInformationClass> { enumFasdInformationClass.Ticket });
var relations = await LoadRelationsForTileAsync(e.Key, e.UseRoleScope, Math.Max(0, e.Count));
await PopulateTicketOverviewRelationUsersAsync(relations);
Debug.WriteLine($"[TicketOverview] Relations loaded: {relations?.Count ?? 0}");
var firstRelation = relations.FirstOrDefault();
string displayText = header;
if (firstRelation != null)
{
{
string firstSummary = null;
if (firstRelation.Infos != null && firstRelation.Infos.TryGetValue("Summary", out var summaryValue))
{
@@ -1482,13 +1488,15 @@ namespace FasdDesktopUi.Pages.SearchPage
UpdatePendingInformationClasses(new HashSet<enumFasdInformationClass>());
}
catch (Exception ex)
{
LogException(ex);
CancledSearchAction();
}
System.Diagnostics.Debug.WriteLine(
$"[TicketOverview] Key={e.Key}, UseRoleScope={e.UseRoleScope}, Count={e.Count}");
}
{
LogException(ex);
CancledSearchAction();
}
finally
{
LogMethodEnd(CM);
}
}
private string BuildHeaderText(string key, bool useRoleScope, int? count = null)
{
string scopeKey = useRoleScope ? "Searchbar.Header.Scope.Role" : "Searchbar.Header.Scope.Personal";