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:
1 parent
5ff9c086fd
commit
bc4d8e0768
22 files changed
+104
-20
No files matched your search
@@ -214,7 +214,7 @@
|
||||
ToolTipService.ShowOnDisabled="True" Height="30" Margin="10,0,0,0" />
|
||||
</Grid>
|
||||
|
||||
<!-- Header; the rows repeat its columns (Server.html: 1.6fr 150px 150px 150px 1.4fr with 10 px gaps). The list always
|
||||
<!-- Header; the rows repeat its columns (Server.html: 1.6fr 150px 150px 150px 1.4fr with 10 px gaps). The actions column is at least wide enough for a row's three actions (Open with proxies, Download originals and an older server's disabled Open in workspace) on one line. The list always
|
||||
keeps its 10 px scroll-bar gutter and the header the same on its right, so the columns line up with or without scrolling. -->
|
||||
<Border Grid.Row="1" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,1" Padding="14,8,24,8">
|
||||
<Grid>
|
||||
@@ -223,7 +223,7 @@
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="400" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Sequence}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Local}" Margin="10,0,0,0" />
|
||||
@@ -247,7 +247,7 @@
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="160" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
||||
<ColumnDefinition Width="1.4*" MinWidth="400" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Title}" ToolTip="{Binding Title}" />
|
||||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding LocalText}" ToolTip="{Binding LocalText}" Margin="10,0,0,0" />
|
||||
|
||||
@@ -169,12 +169,13 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
Logs = new LogSettingsRows(_s, Save);
|
||||
|
||||
// ---- Workspace ----
|
||||
WorkspaceRows = new WorkspaceSettingsRows(_s, Save, () => Shell.Services.Workspace.Root, OpenWorkspaceFolder, ChangeWorkspaceFolderAsync);
|
||||
WorkspaceRows = new WorkspaceSettingsRows(_s, Save, () => AppEnvironment.Shown(Shell.Services.Workspace.Root), OpenWorkspaceFolder, ChangeWorkspaceFolderAsync);
|
||||
|
||||
// ---- Storage ----
|
||||
CacheFolder = new EditableField(CacheStore.Folder(shell.Services.Environment, _s), v => ArchiveLocations.Validate(v), v =>
|
||||
// A capture shows its folders under a sample data folder; what is typed is taken back to the folder it stands for.
|
||||
CacheFolder = new EditableField(AppEnvironment.Shown(CacheStore.Folder(shell.Services.Environment, _s)), v => ArchiveLocations.Validate(AppEnvironment.Actual(v)), v =>
|
||||
{
|
||||
var full = Path.GetFullPath(v);
|
||||
var full = Path.GetFullPath(AppEnvironment.Actual(v));
|
||||
_s.CacheFolder = full.Equals(Shell.Services.Environment.CacheDirectory, StringComparison.OrdinalIgnoreCase) ? null : full;
|
||||
Save();
|
||||
_ = UpdateCacheUsageAsync();
|
||||
@@ -222,8 +223,8 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
RedetectCommand = new AsyncRelayCommand(DetectEncodersAsync, () => !_isDetecting && !_isTesting);
|
||||
SelfTestCommand = new AsyncRelayCommand(SelfTestAsync, () => !_isDetecting && !_isTesting && Encoders.Any(e => e.Row.CanSelfTest));
|
||||
ClearCacheCommand = new AsyncRelayCommand(ClearCacheAsync);
|
||||
OpenDataFolderCommand = new RelayCommand(() => ShellActions.Reveal(DataFolder));
|
||||
OpenLogsCommand = new RelayCommand(() => ShellActions.Reveal(LogsFolder));
|
||||
OpenDataFolderCommand = new RelayCommand(() => ShellActions.Reveal(Shell.Services.Environment.DataDirectory));
|
||||
OpenLogsCommand = new RelayCommand(() => ShellActions.Reveal(Shell.Services.Environment.LogDirectory));
|
||||
ExportDiagnosticsCommand = new AsyncRelayCommand(ExportDiagnosticsAsync);
|
||||
BackupDatabaseCommand = new AsyncRelayCommand(BackupDatabaseAsync, () => Shell.Services.Database is not null);
|
||||
RedetectFormatsCommand = new AsyncRelayCommand(() => DetectFormatsAsync(refresh: true), () => !_isDetectingFormats);
|
||||
@@ -785,8 +786,8 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
|
||||
// ---------------- Advanced ----------------
|
||||
|
||||
public string DataFolder => Shell.Services.Environment.DataDirectory;
|
||||
public string LogsFolder => Shell.Services.Environment.LogDirectory;
|
||||
public string DataFolder => AppEnvironment.Shown(Shell.Services.Environment.DataDirectory);
|
||||
public string LogsFolder => AppEnvironment.Shown(Shell.Services.Environment.LogDirectory);
|
||||
public string PortableText => Loc.L(Shell.Services.Environment.IsPortable ? "Settings.Advanced.PortableOn" : "Settings.Advanced.PortableOff");
|
||||
|
||||
/// <summary>Level, retention, size limits and rotation of the log files, and the diagnostics bundle's share of each.</summary>
|
||||
@@ -877,10 +878,10 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
var environment = Shell.Services.Environment;
|
||||
if (environment.SyncedFolder is not null)
|
||||
Shell.Notify(Loc.L("Settings.Advanced.DataInOneDrive"), Formatting.LeftToRight(DataFolder), Loc.L("Common.Open"),
|
||||
Loc.L("Tooltips.Settings.DataInOneDrive"), () => ShellActions.Reveal(DataFolder), isError: true);
|
||||
Loc.L("Tooltips.Settings.DataInOneDrive"), () => ShellActions.Reveal(Shell.Services.Environment.DataDirectory), isError: true);
|
||||
else if (environment.PortableSyncRoot is not null)
|
||||
Shell.Notify(Loc.L("Settings.Advanced.DataOutsideOneDrive"), Formatting.LeftToRight(DataFolder), Loc.L("Common.Open"),
|
||||
Loc.L("Tooltips.Settings.OpenDataFolder"), () => ShellActions.Reveal(DataFolder));
|
||||
Loc.L("Tooltips.Settings.OpenDataFolder"), () => ShellActions.Reveal(Shell.Services.Environment.DataDirectory));
|
||||
if (environment.EarlierPortableData is { } earlier)
|
||||
Shell.Notify(Loc.L("Settings.Advanced.EarlierData"), Formatting.LeftToRight(earlier), Loc.L("Common.Open"),
|
||||
Loc.L("Tooltips.Settings.EarlierData"), () => ShellActions.Reveal(earlier));
|
||||
@@ -1338,7 +1339,7 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
{
|
||||
Heading = Loc.L("Settings.Storage.ClearTitle"),
|
||||
Message = Loc.L("Settings.Storage.ClearMessage"),
|
||||
Detail = Formatting.LeftToRight(folder),
|
||||
Detail = Formatting.LeftToRight(AppEnvironment.Shown(folder)),
|
||||
DetailToolTip = Loc.L("Tooltips.Settings.CacheFolder"),
|
||||
SafeText = Loc.L("Settings.Storage.Keep"),
|
||||
SafeToolTip = Loc.L("Tooltips.Settings.KeepCache"),
|
||||
@@ -1553,7 +1554,7 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
_s.CacheFolder = null;
|
||||
_s.ThumbnailMemoryItems = defaults.ThumbnailMemoryItems;
|
||||
_s.CacheLimitGb = defaults.CacheLimitGb;
|
||||
CacheFolder.Load(CacheStore.Folder(Shell.Services.Environment, _s));
|
||||
CacheFolder.Load(AppEnvironment.Shown(CacheStore.Folder(Shell.Services.Environment, _s)));
|
||||
ThumbnailMemory.Load(_s.ThumbnailMemoryItems.ToString(CultureInfo.CurrentCulture));
|
||||
CacheLimit.Load(_s.CacheLimitGb.ToString(CultureInfo.CurrentCulture));
|
||||
if (Shell.Services.Thumbnails is { } thumbs) thumbs.Capacity = _s.ThumbnailMemoryItems;
|
||||
@@ -1670,7 +1671,7 @@ public sealed class SettingsViewModel : SectionViewModel
|
||||
LoadImportFields();
|
||||
LoadAnalysisFields();
|
||||
Parallelism.Load(EffectiveParallelism.ToString(CultureInfo.CurrentCulture));
|
||||
CacheFolder.Load(CacheStore.Folder(Shell.Services.Environment, _s));
|
||||
CacheFolder.Load(AppEnvironment.Shown(CacheStore.Folder(Shell.Services.Environment, _s)));
|
||||
ThumbnailMemory.Load(_s.ThumbnailMemoryItems.ToString(CultureInfo.CurrentCulture));
|
||||
CacheLimit.Load(_s.CacheLimitGb.ToString(CultureInfo.CurrentCulture));
|
||||
if (Shell.Services.Thumbnails is { } thumbs) thumbs.Capacity = _s.ThumbnailMemoryItems;
|
||||
|
||||
Reference in new issue
Block a user