CI / Build and test (push) Successful in 8m14s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 13m19s
CI / PostgreSQL 16 integration (push) Successful in 4m49s
CI / PostgreSQL 17 integration (push) Successful in 5m28s
CI / Docker image (push) Successful in 53s
Release / Server image (push) Failing after 10s
The owner renamed the product and moved the repository to the self-hosted Gitea (https://gitea.encke-hake.ts.net/BalboSoft/Chronos) for more control, and asked for Actions and a first automatic release with the server package and the Windows exe (docs/requests/2026-10-23-chronos-gitea.md). - Chronos everywhere: a byte-exact rename of contents and paths, then a per-language review of the forms the old name's ending had dictated. - Gitea instead of GitHub: the update check, licence, issue and support links read ChronosReleasesUrl; the update check takes the highest stable version, offers a pre-release build its final release and reports a repository it cannot see as a failed check. EULA, security policy and Gitea issue forms live at the repository root. - Gitea Actions for the Linux act_runner (.gitea/workflows): CI, release, nightly image and performance gates in the .NET SDK container with git checkout and the system SQLite. The release cross-compiles the Windows programs, checks their icon, version and DPI manifest, packs installers and zips, publishes the Gitea release and pushes the server image (REGISTRY_TOKEN). Windows-only tests run in an opt-in job on a Windows runner (WINDOWS_RUNNER). - New Chronos.Tools commands: zip, gitea-release, postgres-ci (replaces the docker-exec script, which Gitea's service containers do not allow; the throw-away server runs without durability) and pe-check. - Timed tests take their budget from TestTiming (CHRONOS_TEST_TIME_FACTOR, 3 on the shared runner; the weekly performance gates keep theirs). BREAKING CHANGE: programs, settings, data folders, file types, environment variables and the Docker image use the new name; nothing is migrated from Titano, which never had a release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
106 lines
7.9 KiB
XML
106 lines
7.9 KiB
XML
<UserControl x:Class="Chronos.App.Sections.SequencePickerView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:ui="clr-namespace:Chronos.Ui.Controls;assembly=Chronos.Ui"
|
|
xmlns:v="clr-namespace:Chronos.Ui.Visuals;assembly=Chronos.Ui"
|
|
xmlns:l="clr-namespace:Chronos.Ui.Localization;assembly=Chronos.Ui"
|
|
xmlns:lib="clr-namespace:Chronos.App.Library"
|
|
IsVisibleChanged="OnVisibleChanged">
|
|
<!--
|
|
The sequence picker of Edit (owner review 1, R7), over the section's view model: one searchable list of this PC's and
|
|
the server's sequences, newest first; Enter or a double-click opens one, Esc clears the search and then goes back to
|
|
the open sequence. Each row reads as its title to screen readers; the date, frames and states columns are as wide as
|
|
their widest row, so the states are never cut.
|
|
-->
|
|
<UserControl.Resources>
|
|
<DataTemplate x:Key="Template.Status" DataType="{x:Type v:CardStatus}">
|
|
<ui:StatusGlyph Kind="{Binding Kind}" Text="{Binding Text}" ToolTip="{Binding ToolTip}" Margin="0,0,8,0" />
|
|
</DataTemplate>
|
|
<ItemsPanelTemplate x:Key="Panel.Row">
|
|
<StackPanel Orientation="Horizontal" />
|
|
</ItemsPanelTemplate>
|
|
<!-- A double-click is read on the row itself: the row takes the mouse-down to select, so a gesture on the list never sees it. -->
|
|
<Style x:Key="ListBoxItem.PickerRow" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItem.Row}">
|
|
<Setter Property="AutomationProperties.Name" Value="{Binding Title}" />
|
|
<EventSetter Event="MouseDoubleClick" Handler="OnRowDoubleClick" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Border Style="{StaticResource Border.Panel}" MaxWidth="880" Margin="16,24,16,16">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="56" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="6" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<DockPanel Margin="16,0">
|
|
<TextBlock DockPanel.Dock="Left" Text="{l:Loc Editor.Picker.Title}" Style="{StaticResource Text.Title}" VerticalAlignment="Center" Margin="0,0,16,0"
|
|
TextTrimming="CharacterEllipsis" MaxWidth="220" />
|
|
<Button DockPanel.Dock="Right" Style="{StaticResource Button.Primary}" Content="{l:Loc Common.Open}" Command="{Binding Picker.OpenCommand}"
|
|
ToolTip="{l:Loc Tooltips.Editor.Picker.Open}" ToolTipService.ShowOnDisabled="True" VerticalAlignment="Center" Margin="8,0,0,0" />
|
|
<Button DockPanel.Dock="Right" Content="{l:Loc Editor.Picker.Cancel}" Command="{Binding CancelPickCommand}" ToolTip="{Binding CancelPickToolTip}"
|
|
VerticalAlignment="Center" Margin="8,0,0,0" Visibility="{Binding CanCancelPick, Converter={StaticResource BoolToVisibility}}" />
|
|
<TextBox x:Name="Search" MaxWidth="360" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Picker.SearchText, UpdateSourceTrigger=PropertyChanged}"
|
|
ui:Field.Glyph="{StaticResource Icon.Search}" ui:Field.Placeholder="{l:Loc Library.Search}" ToolTip="{l:Loc Tooltips.Editor.Picker.Search}"
|
|
AutomationProperties.Name="{l:Loc Library.Search}" PreviewKeyDown="OnSearchKeyDown" />
|
|
</DockPanel>
|
|
|
|
<!-- A server sequence chosen without its proxies here: they download first, then it opens. -->
|
|
<DockPanel Grid.Row="1" Margin="16,0,16,8" Visibility="{Binding FetchingText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
|
|
<Button DockPanel.Dock="Right" Style="{StaticResource Button.Link}" Content="{l:Loc Shell.Nav.Jobs}" Command="{Binding OpenJobsCommand}"
|
|
ToolTip="{l:Loc Tooltips.Nav.Jobs}" Margin="8,0,0,0" VerticalAlignment="Center" />
|
|
<ui:StatusGlyph Kind="Running" Text="{Binding FetchingText}" ToolTip="{Binding FetchingText}" VerticalAlignment="Center" />
|
|
</DockPanel>
|
|
|
|
<ProgressBar Grid.Row="2" Margin="16,0" Height="6" IsIndeterminate="True" Visibility="{Binding Picker.IsLoading, Converter={StaticResource BoolToVisibility}}"
|
|
AutomationProperties.Name="{l:Loc Editor.Picker.Loading}" />
|
|
|
|
<ListBox x:Name="List" Grid.Row="3" Margin="0,4,0,8" ItemsSource="{Binding Picker.Items}" SelectedItem="{Binding Picker.Selected}" SelectionMode="Single"
|
|
ItemContainerStyle="{StaticResource ListBoxItem.PickerRow}" TextSearch.TextPath="Title" VirtualizingPanel.IsVirtualizing="True"
|
|
VirtualizingPanel.VirtualizationMode="Recycling" VirtualizingPanel.ScrollUnit="Pixel" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
ScrollViewer.ScrollChanged="OnScrollChanged" AutomationProperties.Name="{l:Loc Editor.Picker.List}" ToolTip="{l:Loc Tooltips.Editor.Picker.Row}"
|
|
KeyboardNavigation.TabNavigation="Continue" Grid.IsSharedSizeScope="True" SelectionChanged="OnSelectionChanged">
|
|
<ListBox.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding Picker.OpenCommand}" />
|
|
</ListBox.InputBindings>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type lib:SequenceItem}">
|
|
<Grid Height="40">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="2*" MinWidth="140" />
|
|
<ColumnDefinition Width="Auto" MinWidth="84" SharedSizeGroup="PickerDate" />
|
|
<ColumnDefinition Width="*" MinWidth="80" />
|
|
<ColumnDefinition Width="Auto" MinWidth="56" SharedSizeGroup="PickerFrames" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="PickerStates" />
|
|
</Grid.ColumnDefinitions>
|
|
<!-- Pictures stay left to right in a right-to-left window. -->
|
|
<Border Width="64" Height="36" CornerRadius="4" Background="{DynamicResource Brush.Card}" ClipToBounds="True" FlowDirection="LeftToRight"
|
|
lib:ThumbnailLoading.Width="64">
|
|
<Image Source="{Binding Thumbnail}" Stretch="UniformToFill" />
|
|
</Border>
|
|
<!-- Cells that may be shortened show their text in their tooltip (an empty camera has none). -->
|
|
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Title}" Margin="12,0,0,0" FontWeight="SemiBold" ToolTip="{Binding Title}" />
|
|
<TextBlock Grid.Column="2" Style="{StaticResource Text.Cell}" Text="{Binding DateText}" Margin="12,0,0,0" Foreground="{DynamicResource Brush.TextMuted}" />
|
|
<TextBlock Grid.Column="3" Style="{StaticResource Text.Cell}" Text="{Binding Camera}" Margin="12,0,0,0" Foreground="{DynamicResource Brush.TextMuted}"
|
|
ToolTip="{Binding Camera, Converter={x:Static ui:EmptyToNullConverter.Instance}}" />
|
|
<TextBlock Grid.Column="4" Style="{StaticResource Text.CellNumber}" Text="{Binding FramesText}" Margin="12,0,0,0" />
|
|
<ItemsControl Grid.Column="5" Margin="12,0,0,0" ItemsSource="{Binding Statuses}" ItemTemplate="{StaticResource Template.Status}"
|
|
ItemsPanel="{StaticResource Panel.Row}" VerticalAlignment="Center" Focusable="False" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<ui:EmptyState Grid.Row="3" Message="{l:Loc Library.Empty}" Visibility="{Binding Picker.IsEmptyLibrary, Converter={StaticResource BoolToVisibility}}">
|
|
<Button Style="{StaticResource Button.Primary}" Content="{l:Loc Shell.Nav.Import}" Command="{Binding OpenImportCommand}" ToolTip="{l:Loc Tooltips.Nav.Import}" />
|
|
</ui:EmptyState>
|
|
<ui:EmptyState Grid.Row="3" Message="{l:Loc Editor.Picker.NoMatch}" Visibility="{Binding Picker.IsNoMatch, Converter={StaticResource BoolToVisibility}}">
|
|
<Button Content="{l:Loc Editor.Picker.Clear}" Command="{Binding Picker.ClearCommand}" ToolTip="{l:Loc Tooltips.Editor.Picker.Clear}" />
|
|
</ui:EmptyState>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|