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
@@ -96,6 +96,21 @@ public sealed class JobTextTests
|
||||
Assert.Equal("3 / 9", JobText.Counter(JobKind.Scan, 3, 9));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheBarsTooltipHasTheLineWholeWithItsItem()
|
||||
{
|
||||
Loc.SetCulture(CultureInfo.GetCultureInfo("en"));
|
||||
var job = Job(JobKind.Verify, JobState.Running, "Archive") with
|
||||
{
|
||||
Detail = new JobDetail(JobStep.Verify, "2024/2024-09-27 Harbour sunset at the old lighthouse", 812, 2_400, 3, 41, JobPartUnit.Sequence),
|
||||
};
|
||||
var entry = new JobEntry(job);
|
||||
// The bar cuts the line at 60 characters, dropping the sequence first; the tooltip names it.
|
||||
Assert.False(JobText.Bar(entry).Contains("Harbour sunset", StringComparison.Ordinal), JobText.Bar(entry));
|
||||
Assert.Equal("Verify · Archive · " + JobText.Status(job.Detail), JobText.BarToolTip(entry));
|
||||
Assert.Contains("Harbour sunset at the old lighthouse", JobText.BarToolTip(entry));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void LiveDetailWinsAndStoppedJobsSayWhere()
|
||||
{
|
||||
|
||||
@@ -64,6 +64,24 @@ public sealed class ServerJobsListTests
|
||||
Assert.False(vm.HasRows);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AJobThatStartedBeforeTheEventsOpenedJoinsOnItsProgress()
|
||||
{
|
||||
Loc.SetCulture(CultureInfo.GetCultureInfo("en"));
|
||||
var api = new FakeJobsApi();
|
||||
using var vm = new ServerJobsViewModel(() => new ServerJobsAccount("a", false), () => api, new IdleContext());
|
||||
await UpdatedAsync(vm, vm.Refresh);
|
||||
Assert.Empty(vm.Rows);
|
||||
|
||||
// Started between the list and the event socket: its running state was never told, its progress is.
|
||||
var id = api.Add("thumbs", "Lake", "running");
|
||||
await UpdatedAsync(vm, () => api.Events.Writer.TryWrite(new JobProgressEvent(id, 40, 100, 3, 20,
|
||||
new JobDetailDto("thumbs", "Lake", 40, 100))));
|
||||
var row = vm.Rows.Single();
|
||||
Assert.Equal(id, row.Id);
|
||||
Assert.Equal(40d / 100, row.Progress);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task AManagingAccountPausesResumesAndCancels()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user