fix(editor): a server sequence's analyses and renders say where they run

Analyse no longer points to the Jobs screen for a server job, the Render and
Batch tooltips name the server and its one job per preset, a server that does
not answer in time is reported after a job, the Export Sync send logs any
failure and follows a replaced job engine, and job states use the wire names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 16:37:33 +00:00
1 parent afaa387daf
commit 51fb84700e
9 files changed
+24 -8

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<data name="Editor.Analyse" xml:space="preserve"><value>Analyse</value></data>
<data name="Editor.Analyse.Queued" xml:space="preserve"><value>Analysis queued</value></data>
<data name="Editor.Analyse.QueuedServer" xml:space="preserve"><value>Analysis queued on {0}</value></data>
<data name="Editor.Aspect.Ratio" xml:space="preserve"><value>{0}</value><comment>invariant</comment></data>
<data name="Editor.Aspect.Source" xml:space="preserve"><value>Source</value></data>
<data name="Editor.Back" xml:space="preserve"><value>Back</value></data>
+2
View File
@@ -119,6 +119,7 @@
<data name="Tooltips.Editor.Export.ApplyPreset" xml:space="preserve"><value>Apply this sequence preset to every section · {0}</value></data>
<data name="Tooltips.Editor.Export.Batch" xml:space="preserve"><value>Queue every ticked preset as one job; the sequence is prepared once</value></data>
<data name="Tooltips.Editor.Export.BatchEmpty" xml:space="preserve"><value>Tick presets on the cards first</value></data>
<data name="Tooltips.Editor.Export.BatchServer" xml:space="preserve"><value>Queue every ticked preset on {0}, one job each</value></data>
<data name="Tooltips.Editor.Export.BitRate" xml:space="preserve"><value>Average bit rate; more keeps detail and gradients, files grow</value></data>
<data name="Tooltips.Editor.Export.Codec" xml:space="preserve"><value>Video or image codec; 10-bit HEVC keeps sky gradients clean</value></data>
<data name="Tooltips.Editor.Export.Colour" xml:space="preserve"><value>Rec.709 colour; 10-bit avoids banding in skies, HDR is not offered</value></data>
@@ -200,6 +201,7 @@
<data name="Tooltips.Editor.Render.Planning" xml:space="preserve"><value>Working out the render; ready in a moment</value></data>
<data name="Tooltips.Editor.Render.Reveal" xml:space="preserve"><value>Show the rendered file in Explorer</value></data>
<data name="Tooltips.Editor.RenderChoice" xml:space="preserve"><value>Choose another preset</value></data>
<data name="Tooltips.Editor.RenderServer" xml:space="preserve"><value>Render on {0} with the selected preset; progress beside the title · Ctrl+R</value></data>
<data name="Tooltips.Editor.ResetSection" xml:space="preserve"><value>Return every control of this section to Auto · Ctrl+Z undoes</value></data>
<data name="Tooltips.Editor.Save.Retry" xml:space="preserve"><value>Try to save now; saving is also retried automatically</value></data>
<data name="Tooltips.Editor.ServerJob" xml:space="preserve"><value>{0} running on {1}</value></data>
+1
View File
@@ -6,6 +6,7 @@
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<data name="Editor.Analyse" xml:space="preserve"><value>Analizza</value></data>
<data name="Editor.Analyse.Queued" xml:space="preserve"><value>Analisi in coda</value></data>
<data name="Editor.Analyse.QueuedServer" xml:space="preserve"><value>Analisi in coda su {0}</value></data>
<data name="Editor.Aspect.Source" xml:space="preserve"><value>Sorgente</value></data>
<data name="Editor.Back" xml:space="preserve"><value>Indietro</value></data>
<data name="Editor.Camera.AddKey" xml:space="preserve"><value>Aggiungi chiave</value></data>
+2
View File
@@ -119,6 +119,7 @@
<data name="Tooltips.Editor.Export.ApplyPreset" xml:space="preserve"><value>Applica questo preset di sequenza a tutte le sezioni · {0}</value></data>
<data name="Tooltips.Editor.Export.Batch" xml:space="preserve"><value>Mette in coda i preset spuntati come un unico lavoro; la sequenza si prepara una volta</value></data>
<data name="Tooltips.Editor.Export.BatchEmpty" xml:space="preserve"><value>Spunta prima i preset sulle schede</value></data>
<data name="Tooltips.Editor.Export.BatchServer" xml:space="preserve"><value>Mette in coda su {0} i preset spuntati, un lavoro per ciascuno</value></data>
<data name="Tooltips.Editor.Export.BitRate" xml:space="preserve"><value>Bit rate medio; di più conserva dettagli e sfumature, i file crescono</value></data>
<data name="Tooltips.Editor.Export.Codec" xml:space="preserve"><value>Codec video o immagine; HEVC a 10 bit mantiene pulite le sfumature del cielo</value></data>
<data name="Tooltips.Editor.Export.Colour" xml:space="preserve"><value>Colore Rec.709; 10 bit evitano il banding nel cielo, l’HDR non è disponibile</value></data>
@@ -200,6 +201,7 @@
<data name="Tooltips.Editor.Render.Planning" xml:space="preserve"><value>Calcolo del render in corso; pronto tra un attimo</value></data>
<data name="Tooltips.Editor.Render.Reveal" xml:space="preserve"><value>Mostra il file del render in Esplora file</value></data>
<data name="Tooltips.Editor.RenderChoice" xml:space="preserve"><value>Scegli un altro preset</value></data>
<data name="Tooltips.Editor.RenderServer" xml:space="preserve"><value>Renderizza su {0} con il preset scelto; avanzamento accanto al titolo · Ctrl+R</value></data>
<data name="Tooltips.Editor.ResetSection" xml:space="preserve"><value>Riporta in Auto ogni controllo di questa sezione · Ctrl+Z annulla</value></data>
<data name="Tooltips.Editor.Save.Retry" xml:space="preserve"><value>Prova a salvare ora; il salvataggio viene anche ritentato da solo</value></data>
<data name="Tooltips.Editor.ServerJob" xml:space="preserve"><value>{0} in corso su {1}</value></data>
+3 -2
View File
@@ -294,8 +294,9 @@
ToolTip="{Binding HistoryText}" />
</DockPanel>
<!-- This PC's settings kept by "Save both" (sync conflicts): the newest, or another from the menu, becomes the project as one undo step. -->
<v:SplitButton Margin="0,8,0,0" HorizontalAlignment="Left" Content="{Binding RestoreText}" Command="{Binding RestoreCommand}" ItemsSource="{Binding SavedCopies}" DisplayMemberPath="Label"
SelectedItem="{Binding SelectedCopy}" ToolTip="{Binding RestoreToolTip}" ToolTipService.ShowOnDisabled="True"
<v:SplitButton Margin="0,8,0,0" HorizontalAlignment="Left" Content="{Binding RestoreText}" Command="{Binding RestoreCommand}"
ItemsSource="{Binding SavedCopies}" DisplayMemberPath="Label" SelectedItem="{Binding SelectedCopy}" ToolTip="{Binding RestoreToolTip}"
ToolTipService.ShowOnDisabled="True"
DropDownToolTip="{l:Loc Tooltips.Editor.Export.RestoreChoice}" AutomationProperties.Name="{l:Loc Editor.Export.RestoreName}"
Visibility="{Binding HasSavedCopies, Converter={StaticResource BoolToVisibility}}" />
</StackPanel>
+6 -3
View File
@@ -377,7 +377,7 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
/// <summary>"Render · 4K archive".</summary>
public string RenderText => Loc.L("Editor.Render", Plan?.PresetName ?? string.Empty);
public string RenderToolTip => RenderBlockedReason ?? Loc.L("Tooltips.Editor.Render");
public string RenderToolTip => RenderBlockedReason ?? (IsRemote ? Loc.L("Tooltips.Editor.RenderServer", RemoteText ?? string.Empty) : Loc.L("Tooltips.Editor.Render"));
public bool CanRender => RenderBlockedReason is null;
@@ -784,7 +784,9 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
private async Task AnalyseAsync()
{
await Session.SubmitAsync(Session.AnalysisRequest());
Shell.Notify(Loc.L("Editor.Analyse.Queued"), Title, Loc.L("Shell.Nav.Jobs"), Loc.L("Tooltips.Nav.Jobs"), () => Shell.Navigate(SectionKey.Jobs));
// The Jobs screen lists this PC's jobs; a server's analysis shows beside the title.
if (IsRemote) Shell.Notify(Loc.L("Editor.Analyse.QueuedServer", RemoteText ?? string.Empty), Title);
else Shell.Notify(Loc.L("Editor.Analyse.Queued"), Title, Loc.L("Shell.Nav.Jobs"), Loc.L("Tooltips.Nav.Jobs"), () => Shell.Navigate(SectionKey.Jobs));
}
private void OnJobChanged(Job job)
@@ -838,8 +840,9 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
await Session.ReloadAsync();
}
catch (Exception ex) when (ex is System.IO.IOException or System.IO.InvalidDataException or InvalidOperationException or UnauthorizedAccessException
or System.Net.Http.HttpRequestException or Protocol.Client.TitanoApiException)
or System.Net.Http.HttpRequestException or Protocol.Client.TitanoApiException or OperationCanceledException)
{
// A server that does not answer in time cancels the request (OperationCanceledException).
Shell.ReportError(ex);
return;
}
+3 -1
View File
@@ -153,7 +153,9 @@ public sealed class ExportTab : EditorTab
public string AddToQueueToolTip => Editor.RenderBlockedReason ?? Loc.L("Tooltips.Editor.Export.AddToQueue");
public string BatchToolTip => Editor.RenderBlockedReason ?? Loc.L(Batch.Count > 0 ? "Tooltips.Editor.Export.Batch" : "Tooltips.Editor.Export.BatchEmpty");
public string BatchToolTip => Editor.RenderBlockedReason ?? (Batch.Count == 0 ? Loc.L("Tooltips.Editor.Export.BatchEmpty")
: Editor.IsRemote ? Loc.L("Tooltips.Editor.Export.BatchServer", Editor.RemoteText ?? string.Empty)
: Loc.L("Tooltips.Editor.Export.Batch"));
public bool HasHistory => Editor.Session.Content.Renders.Count > 0;
+3 -1
View File
@@ -1,4 +1,6 @@
using Titano.App.Editor;
using Titano.Core.Model;
using Titano.Data.Jobs;
using Titano.Protocol;
using Titano.Protocol.Client;
@@ -10,7 +12,7 @@ public delegate IRemoteSequenceApi RemoteSequenceApiFactory(Uri address, string
/// <summary><see cref="IRemoteSequenceApi"/> over a signed-in <see cref="TitanoClient"/>, which it owns.</summary>
public sealed class TitanoRemoteSequenceApi(TitanoClient client) : IRemoteSequenceApi
{
private static readonly string[] ActiveStates = ["queued", "running", "paused"];
private static readonly string[] ActiveStates = [JobWire.State(JobState.Queued), JobWire.State(JobState.Running), JobWire.State(JobState.Paused)];
public Task<SequenceDto> GetSequenceAsync(Guid id, CancellationToken cancellationToken) => client.GetSequenceAsync(id, cancellationToken);
+3 -1
View File
@@ -88,6 +88,7 @@ public sealed class SyncHost(AppServices services) : ISyncConnector, IAsyncDispo
if (services.Engine is not { } engine) return;
Uploads.Attach(engine);
if (ReferenceEquals(_renders, engine)) return;
if (_renders is not null) _renders.JobChanged -= OnJobChanged;
_renders = engine;
engine.JobChanged += OnJobChanged;
}
@@ -156,8 +157,9 @@ public sealed class SyncHost(AppServices services) : ISyncConnector, IAsyncDispo
{
if (await exports.SendAsync(job, Server, CanUpload) is { } send) Log.Info("sync", $"{job.TargetLabel} will be sent to the server (job {send.Id})");
}
catch (Exception ex) when (ex is Data.DatabaseException or InvalidOperationException)
catch (Exception ex) when (ex is not OutOfMemoryException)
{
// Nobody awaits this: the render itself succeeded, and the send can be asked for again on the Server screen.
Log.Warning("sync", $"The render {job.TargetLabel} could not be queued for the server", ex);
}
}