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>
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()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,11 @@ dotnet run --project src/Chronos.Tools -- screenshots diff out/screenshots --out
|
||||
The capture runs on sample data whose clock stands at `SampleData.Now` (2026-10-02 10:18 UTC), in English with English
|
||||
formats and with animations off, so the same code draws the same pixels on any day. What the screens measure on
|
||||
the machine is shown as fixed sample values while the clock is frozen (`AppClock`): free space (1.2 TB), the
|
||||
server's response time (12 ms) and the time and duration of the last sync comparison. Two things still come from the
|
||||
server's response time (12 ms) and the time and duration of the last sync comparison. The capture's data folder is a
|
||||
new one in the machine's temporary folder, but the screens show it as a sample user's (`C:\Users\Studio\AppData\Local\Chronos`,
|
||||
its sample archive as `D:\ChronosArchive`: `AppEnvironment.Shown`), so neither the temporary folder nor the user name
|
||||
reaches a picture; a path typed over a shown one goes back to the temporary folder (`AppEnvironment.Actual`), so the
|
||||
capture writes nowhere else. Two captures made with different `TEMP` folders are identical. Two things still come from the
|
||||
machine: the time zone (times are shown in local time; the baselines are made in the development PC's, Europe/Rome,
|
||||
which the Windows runner must share) and the fonts and scaling of Windows itself.
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |