fix: address the owner review 5 review
Setup: a kept 1.0 Uploader no longer fixes the scope and folder, the Remove tooltip promises kept files only with a hashed log, and a single-program setup preselects it. The Uploader always downloads the setup. Sync links move to the server id at every sign-in while folders wait for jobs and open editors; jobs of a pending homes sort still find their projects. A shared library exposes only the shared archive's client-visible jobs and events, render nodes take only client renders, and the share counts as its own while starting. Progress: a new step waits a quarter interval and a trailing timer publishes the last state; the job bar tooltip carries the whole line; Recent maintenance and the Server jobs list pick up jobs that start while they are shown. Refs #64 #65 #66 #67 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
817956e719
commit
f30eb2904a
51 files changed
+895
-122
No files matched your search
@@ -706,6 +706,24 @@ public sealed class ArchiveViewModel : SectionViewModel
|
||||
_recentThrottle?.Signal();
|
||||
}
|
||||
|
||||
/// <summary>A maintenance job changed state: its Recent line shows it, and its progress counts while it runs (UI thread).</summary>
|
||||
private void TrackRecent(Job job)
|
||||
{
|
||||
if (_archive is not { } archive || !_loaded) return;
|
||||
var jobs = MaintenanceReports.Track(_recentJobs, job, archive.Id);
|
||||
if (ReferenceEquals(jobs, _recentJobs)) return;
|
||||
_recentJobs = jobs;
|
||||
var running = new HashSet<Guid>(Volatile.Read(ref _recentRunning));
|
||||
if (job.State == JobState.Running) running.Add(job.Id);
|
||||
else
|
||||
{
|
||||
running.Remove(job.Id);
|
||||
_recentLive.Remove(job.Id);
|
||||
}
|
||||
Volatile.Write(ref _recentRunning, running);
|
||||
Recent = MaintenanceReports.Recent(_recentJobs, RecentCount, _recentLive);
|
||||
}
|
||||
|
||||
/// <summary>The running Recent lines with their latest progress (UI thread).</summary>
|
||||
private void FlushRecent()
|
||||
{
|
||||
@@ -720,11 +738,13 @@ public sealed class ArchiveViewModel : SectionViewModel
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A finished job on this archive or its sequences changes the figures: read them again once the jobs settle (a
|
||||
/// burst of analyses after an import reloads once). Jobs of other archives are none of this screen's business.
|
||||
/// A maintenance job of this archive queued, started, paused or ended: its Recent line follows it, live while it runs
|
||||
/// (owner review 5, #65). A finished job on this archive or its sequences changes the figures: read them again once the
|
||||
/// jobs settle (a burst of analyses after an import reloads once). Jobs of other archives are none of this screen's business.
|
||||
/// </summary>
|
||||
private void OnJobChanged(Job job)
|
||||
{
|
||||
if (MaintenanceReports.MaintenanceKinds.Contains(job.Kind)) System.Windows.Application.Current?.Dispatcher.BeginInvoke(() => TrackRecent(job));
|
||||
if (job.State is not (JobState.Done or JobState.Failed)) return;
|
||||
if (job.Kind is not (JobKind.Scan or JobKind.Rebuild or JobKind.Verify or JobKind.Maintenance or JobKind.Import or JobKind.Proxies or JobKind.Thumbs
|
||||
or JobKind.LightAnalyse or JobKind.DeepAnalyse or JobKind.Move or JobKind.Convert)) return;
|
||||
|
||||
Reference in new issue
Block a user