fix(app): captures show no machine paths, Server row actions stay on one line

The capture's data folder lives in the machine's temporary folder, so 8
baselines showed %TEMP% and the user name and differed on any other machine.
AppEnvironment.Shown now shows a capture's folders as a sample user's
(C:\Users\Studio\AppData\Local\Chronos, the sample archive as D:\ChronosArchive)
in Settings > Storage, Workspace and Advanced, the Rebuild index dialog and the
cache's Clear confirmation; AppEnvironment.Actual maps a typed path back, so the
capture still writes only to its temporary folder. Two captures with different
TEMP folders are identical.

On the Server screen the row actions column is at least 400 px wide, so a
remote row's three actions (an older server's disabled Open in workspace after
Open with proxies and Download originals, as BRIEF 12.7 asks) fit one 40 px
line at the capture size instead of wrapping.

Baselines recaptured: server, server-sync, server-conflict, server-signedout
(column layout; the disabled action of phase 5b), settings-storage,
settings-workspace, settings-advanced and archive-rebuild (sample paths), light
and dark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-04 13:54:26 +01:00
1 parent 5ff9c086fd
commit bc4d8e0768
22 files changed
+104 -20

No files matched your search

@@ -61,6 +61,26 @@ public sealed class AppEnvironmentTests(TestContext context)
Assert.Null(AppEnvironment.From(AppPaths.Resolve(app, local, [oneDrive])).EarlierPortableData);
}
[Test]
public void ACaptureShowsSamplePathsAndTakesWhatIsTypedBackToItsOwnFolder()
{
// Whatever the machine's temporary folder and user name, the screenshots show the same paths.
var data = Path.Combine(context.CreateTempDirectory("temp"), "chronos-capture-0123");
Assert.Equal(AppEnvironment.SampleDataDirectory, AppEnvironment.Shown(data, data));
Assert.Equal(Path.Combine(AppEnvironment.SampleDataDirectory, "cache"), AppEnvironment.Shown(Path.Combine(data, "cache"), data));
Assert.Equal(@"D:\ChronosArchive\2026\Harbour", AppEnvironment.Shown(Path.Combine(data, "archive", "2026", "Harbour"), data));
// A path elsewhere, or one that only starts with the same letters, is shown as it is; outside a capture every path is.
Assert.Equal(data + "-other", AppEnvironment.Shown(data + "-other", data));
Assert.Equal(@"E:\Photos", AppEnvironment.Shown(@"E:\Photos", data));
Assert.Equal(Path.Combine(data, "cache"), AppEnvironment.Shown(Path.Combine(data, "cache"), null));
// What is typed over a shown path goes to the capture's own folder, never to the sample user's.
Assert.Equal(Path.Combine(data, "cache", "big"), AppEnvironment.Actual(Path.Combine(AppEnvironment.SampleDataDirectory, "cache", "big"), data));
Assert.Equal(Path.Combine(data, "archive"), AppEnvironment.Actual(AppEnvironment.SampleArchiveDirectory, data));
Assert.Equal(@"E:\Cache", AppEnvironment.Actual(@"E:\Cache", data));
Assert.Equal(AppEnvironment.SampleDataDirectory, AppEnvironment.Actual(AppEnvironment.SampleDataDirectory, null));
}
[Test]
public void AUserFolderOneDriveSynchronisesIsReportedNotHidden()
{