Modernize customer panel UI and add agent workflow rules

This commit is contained in:
Meik
2026-03-05 10:17:33 +01:00
parent 4013fa8e32
commit d954f26686
16 changed files with 581 additions and 309 deletions

View File

@@ -8,7 +8,7 @@
mc:Ignorable="d"
d:DesignWidth="320"
FontSize="12"
FontFamily="Arial"
FontFamily="Segoe UI"
Cursor="Hand"
MouseLeftButtonDown="OnMouseLeftButtonDownClicked"
>
@@ -16,8 +16,15 @@
<BooleanToVisibilityConverter x:Key="BoolToVis" />
</UserControl.Resources>
<Border BorderThickness="1.5" x:Name="HighlightAnnouncementBorder" CornerRadius="1" MouseEnter="OnAnnMouseEnter" MouseLeave="OnAnnMouseLeave">
<Grid Background="White" Height="auto">
<Border BorderThickness="1"
x:Name="HighlightAnnouncementBorder"
BorderBrush="{DynamicResource cardBorderColor}"
Background="{DynamicResource cardBackgroundColor}"
CornerRadius="12"
MouseEnter="OnAnnMouseEnter"
MouseLeave="OnAnnMouseLeave">
<Grid Background="Transparent"
Height="auto">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5"/>
@@ -33,10 +40,10 @@
<Grid Background="{Binding Path=PrioColor}" Grid.RowSpan="3" x:Name="annColor"></Grid>
<DockPanel Grid.Column="1" >
<Image Source="pack://application:,,,/Resources/StateOverlays/OverlayNewContentButton.png" Panel.ZIndex="18" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding Path=IsUnread, Converter={StaticResource BoolToVis}}" x:Name="signal" Width="15px" Cursor="Hand" ToolTip="{x:Static resx:Resources.removeMarkup}" Margin="5,0,0,0" />
<TextBlock x:Name="txtDate" Grid.Row="0" Margin="10,0,5,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontStyle="Italic" Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}"></TextBlock>
<TextBlock x:Name="txtDate" Grid.Row="0" Margin="10,0,5,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}"></TextBlock>
</DockPanel>
<Image x:Name="imgOpen" Grid.Row="0" Grid.Column="2" Source="{DynamicResource appbar_new_window}" Width="30" ToolTip="{x:Static resx:Resources.CallAnnonceDetails}" Cursor="Hand"/>
<Image x:Name="imgOpen" Grid.Row="0" Grid.Column="2" Source="{DynamicResource appbar_new_window}" Width="20" Margin="0,2,8,0" ToolTip="{x:Static resx:Resources.CallAnnonceDetails}" Cursor="Hand"/>
<TextBlock x:Name="txtSubject"
Grid.Row="1"
Grid.ColumnSpan="2"
@@ -45,6 +52,7 @@
Text="{Binding Path=Subject,FallbackValue='test Announcement'}"
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="{DynamicResource sectionTitleColor}"
ClipToBounds="True"/>
<TextBlock x:Name="txtContent"
Grid.Row="2"
@@ -52,6 +60,7 @@
Margin="15,10,10,0"
VerticalAlignment="Center"
Text="{Binding Path=Text,FallbackValue='test text'}"
Foreground="{DynamicResource subtleTextColor}"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"
LineStackingStrategy="BlockLineHeight"
@@ -66,6 +75,7 @@
Margin="15,5,10,0"
VerticalAlignment="Center"
FontStyle="Italic"
Foreground="{DynamicResource subtleTextColor}"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"
LineStackingStrategy="BlockLineHeight"