feat(ui): WeeklyReportModalView
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
42
src/ClaudeDo.Ui/Views/Modals/WeeklyReportModalView.axaml
Normal file
42
src/ClaudeDo.Ui/Views/Modals/WeeklyReportModalView.axaml
Normal file
@@ -0,0 +1,42 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:ClaudeDo.Ui.ViewModels.Modals"
|
||||
xmlns:ctl="using:ClaudeDo.Ui.Views.Controls"
|
||||
x:Class="ClaudeDo.Ui.Views.Modals.WeeklyReportModalView"
|
||||
x:DataType="vm:WeeklyReportModalViewModel"
|
||||
Title="Wochenbericht"
|
||||
Width="820" Height="640"
|
||||
WindowDecorations="None"
|
||||
ExtendClientAreaToDecorationsHint="True"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
Background="{DynamicResource SurfaceBrush}">
|
||||
<Window.KeyBindings>
|
||||
<KeyBinding Gesture="Escape" Command="{Binding CloseCommand}"/>
|
||||
</Window.KeyBindings>
|
||||
|
||||
<ctl:ModalShell Title="WOCHENBERICHT" CloseCommand="{Binding CloseCommand}">
|
||||
<DockPanel Margin="20,16">
|
||||
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Spacing="8">
|
||||
<TextBlock Classes="meta" Text="Von" VerticalAlignment="Center"/>
|
||||
<ctl:ThemedDatePicker SelectedDate="{Binding StartDate}"/>
|
||||
<TextBlock Classes="meta" Text="Bis" VerticalAlignment="Center"/>
|
||||
<ctl:ThemedDatePicker SelectedDate="{Binding EndDate}"/>
|
||||
<Button Classes="btn" Content="Erstellen" Command="{Binding GenerateCommand}"
|
||||
IsVisible="{Binding EmptyStateVisible}"/>
|
||||
<Button Classes="btn" Content="Neu erstellen" Command="{Binding GenerateCommand}"
|
||||
IsVisible="{Binding HasReport}"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock DockPanel.Dock="Top" Classes="meta" Margin="0,8,0,0"
|
||||
Text="{Binding StatusMessage}"/>
|
||||
|
||||
<TextBlock DockPanel.Dock="Top" Classes="meta" Margin="0,16"
|
||||
Text='Noch kein Bericht für diesen Zeitraum. Klicke „Erstellen“.'
|
||||
IsVisible="{Binding EmptyStateVisible}"/>
|
||||
|
||||
<ScrollViewer IsVisible="{Binding HasReport}">
|
||||
<ctl:MarkdownView Markdown="{Binding ReportMarkdown}"/>
|
||||
</ScrollViewer>
|
||||
</DockPanel>
|
||||
</ctl:ModalShell>
|
||||
</Window>
|
||||
@@ -0,0 +1,9 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace ClaudeDo.Ui.Views.Modals;
|
||||
|
||||
public partial class WeeklyReportModalView : Window
|
||||
{
|
||||
public WeeklyReportModalView() => InitializeComponent();
|
||||
}
|
||||
Reference in New Issue
Block a user