aktueller Stand

This commit is contained in:
Meik
2026-02-04 21:39:44 +01:00
parent 101572d35f
commit 3d055ac2ba
7 changed files with 53 additions and 251 deletions

View File

@@ -83,8 +83,6 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
@@ -126,14 +124,14 @@
FontSize="12" />
<!-- Tickets -->
<Label Grid.Row="2"
<Label Grid.Row="1"
Grid.Column="0"
Foreground="{DynamicResource FontColor.DetailsPage.TitleSection.Header}"
Content="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=TicketOverview.Row.Heading.Tickets}"
FontWeight="Bold"
FontSize="12" />
<Label Grid.Row="2"
<Label Grid.Row="1"
Grid.Column="1"
Content="{Binding TicketsNew}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -149,7 +147,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="2"
<Label Grid.Row="1"
Grid.Column="2"
Content="{Binding TicketsActive}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -165,7 +163,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="2"
<Label Grid.Row="1"
Grid.Column="3"
Content="{Binding TicketsCritical}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -181,7 +179,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="2"
<Label Grid.Row="1"
Grid.Column="4"
Content="{Binding TicketsNewInfo}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -198,14 +196,14 @@
Cursor="Hand" />
<!-- Incidents -->
<Label Grid.Row="3"
<Label Grid.Row="2"
Grid.Column="0"
Foreground="{DynamicResource FontColor.DetailsPage.TitleSection.Header}"
Content="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=TicketOverview.Row.Heading.Incidents}"
FontWeight="Bold"
FontSize="12" />
<Label Grid.Row="3"
<Label Grid.Row="2"
Grid.Column="1"
Content="{Binding IncidentNew}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -221,7 +219,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="3"
<Label Grid.Row="2"
Grid.Column="2"
Content="{Binding IncidentActive}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -237,7 +235,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="3"
<Label Grid.Row="2"
Grid.Column="3"
Content="{Binding IncidentCritical}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -253,7 +251,7 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="3"
<Label Grid.Row="2"
Grid.Column="4"
Content="{Binding IncidentNewInfo}"
Style="{StaticResource RoundedSelectedLabelStyle}"
@@ -269,45 +267,6 @@
HorizontalAlignment="Center"
Cursor="Hand" />
<!-- Unassigned -->
<Label Grid.Row="4"
Grid.Column="0"
Foreground="{DynamicResource FontColor.DetailsPage.TitleSection.Header}"
Content="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=TicketOverview.Row.Heading.UnassignedTickets}"
FontWeight="Bold"
FontSize="12" />
<Label Grid.Row="4"
Grid.Column="1"
Content="{Binding UnassignedTickets}"
Style="{StaticResource RoundedSelectedLabelStyle}"
local:TicketOverview.IsSelected="{Binding UnassignedTicketsSelected, Mode=TwoWay}"
local:TicketOverview.IsHighlighted="{Binding UnassignedTicketsHighlighted}"
ToolTip="{Binding UnassignedTicketsChangeHint}"
Tag="UnassignedTicketsSelected"
MouseLeftButtonUp="Label_MouseLeftButtonUp"
FontWeight="Medium"
Foreground="{DynamicResource Color.Orange}"
FontSize="12"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Cursor="Hand" />
<Label Grid.Row="4"
Grid.Column="3"
Content="{Binding UnassignedTicketsCritical}"
Style="{StaticResource RoundedSelectedLabelStyle}"
local:TicketOverview.IsSelected="{Binding UnassignedTicketsCriticalSelected, Mode=TwoWay}"
local:TicketOverview.IsHighlighted="{Binding UnassignedTicketsCriticalHighlighted}"
ToolTip="{Binding UnassignedTicketsCriticalChangeHint}"
Tag="UnassignedTicketsCriticalSelected"
MouseLeftButtonUp="Label_MouseLeftButtonUp"
FontWeight="Medium"
Foreground="{DynamicResource Color.Red}"
FontSize="12"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Cursor="Hand" />
</Grid>
</Border>
</UserControl>

View File

@@ -28,9 +28,7 @@ namespace FasdDesktopUi.Basics.UserControls
("IncidentNew", new Action<TicketOverviewModel, int>((vm, value) => { vm.IncidentNew = value; })),
("IncidentActive", new Action<TicketOverviewModel, int>((vm, value) => { vm.IncidentActive = value; })),
("IncidentCritical", new Action<TicketOverviewModel, int>((vm, value) => { vm.IncidentCritical = value; })),
("IncidentNewInfo", new Action<TicketOverviewModel, int>((vm, value) => { vm.IncidentNewInfo = value; })),
("UnassignedTickets", new Action<TicketOverviewModel, int>((vm, value) => { vm.UnassignedTickets = value; })),
("UnassignedTicketsCritical", new Action<TicketOverviewModel, int>((vm, value) => { vm.UnassignedTicketsCritical = value; }))
("IncidentNewInfo", new Action<TicketOverviewModel, int>((vm, value) => { vm.IncidentNewInfo = value; }))
};
private static readonly (string Key, Action<TicketOverviewModel, bool> Setter)[] HighlightSetters = new[]
{
@@ -41,9 +39,7 @@ namespace FasdDesktopUi.Basics.UserControls
("IncidentNew", new Action<TicketOverviewModel, bool>((vm, value) => { vm.IncidentNewHighlighted = value; })),
("IncidentActive", new Action<TicketOverviewModel, bool>((vm, value) => { vm.IncidentActiveHighlighted = value; })),
("IncidentCritical", new Action<TicketOverviewModel, bool>((vm, value) => { vm.IncidentCriticalHighlighted = value; })),
("IncidentNewInfo", new Action<TicketOverviewModel, bool>((vm, value) => { vm.IncidentNewInfoHighlighted = value; })),
("UnassignedTickets", new Action<TicketOverviewModel, bool>((vm, value) => { vm.UnassignedTicketsHighlighted = value; })),
("UnassignedTicketsCritical", new Action<TicketOverviewModel, bool>((vm, value) => { vm.UnassignedTicketsCriticalHighlighted = value; }))
("IncidentNewInfo", new Action<TicketOverviewModel, bool>((vm, value) => { vm.IncidentNewInfoHighlighted = value; }))
};
private static readonly (string Key, Action<TicketOverviewModel, string> Setter)[] ChangeHintSetters = new[]
{
@@ -54,9 +50,7 @@ namespace FasdDesktopUi.Basics.UserControls
("IncidentNew", new Action<TicketOverviewModel, string>((vm, value) => { vm.IncidentNewChangeHint = value; })),
("IncidentActive", new Action<TicketOverviewModel, string>((vm, value) => { vm.IncidentActiveChangeHint = value; })),
("IncidentCritical", new Action<TicketOverviewModel, string>((vm, value) => { vm.IncidentCriticalChangeHint = value; })),
("IncidentNewInfo", new Action<TicketOverviewModel, string>((vm, value) => { vm.IncidentNewInfoChangeHint = value; })),
("UnassignedTickets", new Action<TicketOverviewModel, string>((vm, value) => { vm.UnassignedTicketsChangeHint = value; })),
("UnassignedTicketsCritical", new Action<TicketOverviewModel, string>((vm, value) => { vm.UnassignedTicketsCriticalChangeHint = value; }))
("IncidentNewInfo", new Action<TicketOverviewModel, string>((vm, value) => { vm.IncidentNewInfoChangeHint = value; }))
};
private readonly Dictionary<string, HighlightInfo> _personalHighlightStates = new Dictionary<string, HighlightInfo>(StringComparer.OrdinalIgnoreCase);
private readonly Dictionary<string, HighlightInfo> _roleHighlightStates = new Dictionary<string, HighlightInfo>(StringComparer.OrdinalIgnoreCase);