feat: remove the anonymous usage counts (owner review 4, R2)

The owner does not want Chronos to send data about its use, and nothing
ever sent the counts the consent promised. The first-run checkbox, the
Settings > General row, the AnonymousUsageCounts setting and its three
strings in every culture are gone; a settings file that still carries the
member loads and is saved without it. BRIEF §21, the EULA and the Welcome
mockup now say Chronos sends nothing about its use; the diagnostics
bundle stays, saved only locally.

Refs #30

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-06 16:52:58 +01:00
1 parent fe50b87726
commit 8dc1b25d94
88 files changed
+36 -180

No files matched your search

@@ -94,9 +94,6 @@ public sealed class AppSettings
/// <summary>The sequence opened in Edit last; the picker selects it first (owner review 1, R7).</summary>
public Guid? LastEditedSequence { get; set; }
/// <summary>The first-run consent of BRIEF §21; offered only by builds with <see cref="ProductFeatures.AdsEnabled"/>.</summary>
public bool AnonymousUsageCounts { get; set; }
/// <summary>Toasts also appear as Windows notifications while the window is minimised or in the background (BRIEF §12.1).</summary>
public bool OsNotifications { get; set; } = true;
@@ -6,7 +6,7 @@ namespace Chronos.App.Infrastructure;
public static class ProductFeatures
{
/// <summary>
/// Monetization (BRIEF §21: ads, the anonymous usage counts consent, the licence) ships disabled until a build sets
/// Monetization (BRIEF §21: ads, the licence) ships disabled until a build sets
/// <c>ChronosAdsEnabled=true</c>; until then nothing of it shows.
/// </summary>
public static bool AdsEnabled { get; } = Flag("ChronosAdsEnabled");
@@ -141,11 +141,6 @@
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Notifications}">
<CheckBox Content="{l:Loc Settings.General.OsNotifications}" IsChecked="{Binding OsNotifications}" ToolTip="{l:Loc Tooltips.Settings.OsNotifications}" Margin="0,4,0,0" />
</HeaderedContentControl>
<!-- Monetization consent (BRIEF §21): only in builds made with ChronosAdsEnabled=true. -->
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Usage}"
Visibility="{Binding ShowsUsageCounts, Converter={StaticResource BoolToVisibility}}">
<CheckBox Content="{l:Loc Settings.General.UsageCounts}" IsChecked="{Binding UsageCounts}" ToolTip="{l:Loc Tooltips.Settings.UsageCounts}" Margin="0,4,0,0" />
</HeaderedContentControl>
</StackPanel>
<!-- ================= Archive ================= -->
+1 -17
View File
@@ -78,7 +78,7 @@ public sealed class SettingsViewModel : SectionViewModel
AllPages =
[
new(SettingsPage.General, ["Settings.General.Language", "Settings.General.Theme", .. ShowsStartup ? (string[])["Settings.General.Startup"] : [],
"Settings.General.Notifications", .. ProductFeatures.AdsEnabled ? (string[])["Settings.General.Usage"] : []]),
"Settings.General.Notifications"]),
new(SettingsPage.Archive, ["Settings.Archive.Root", "Settings.Archive.Folders", "Settings.Archive.Files", "Settings.Archive.Proxies",
"Settings.Archive.Thumbnails", "Settings.Archive.VideosFolder"]),
new(SettingsPage.Import, ["Import.Scan.Sessions", "Import.Label.Scan", "Import.Scan.Subfolders", "Import.Scan.Verify", "Import.Label.Duplicates",
@@ -387,21 +387,6 @@ public sealed class SettingsViewModel : SectionViewModel
}
}
/// <summary>The usage counts consent belongs to monetization (BRIEF §21): only builds with it enabled offer it.</summary>
public bool ShowsUsageCounts => ProductFeatures.AdsEnabled;
public bool UsageCounts
{
get => _s.AnonymousUsageCounts;
set
{
if (_s.AnonymousUsageCounts == value) return;
_s.AnonymousUsageCounts = value;
Save();
OnPropertyChanged();
}
}
// ---------------- Archive ----------------
public EditableField ArchiveRoot { get; }
@@ -1575,7 +1560,6 @@ public sealed class SettingsViewModel : SectionViewModel
switch (_page)
{
case SettingsPage.General:
_s.AnonymousUsageCounts = defaults.AnonymousUsageCounts;
_s.OsNotifications = defaults.OsNotifications;
Startup.SetEnabled(false);
ApplyTheme(defaults.Theme);
+3 -13
View File
@@ -106,19 +106,9 @@
</RadioButton>
</StackPanel>
<!-- Consent, then Continue (visual and Tab order); the consent has the same label as in Settings and, like all of
monetization (BRIEF §21), shows only in builds made with ChronosAdsEnabled=true. -->
<Grid Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<CheckBox Content="{l:Loc Settings.General.UsageCounts}" IsChecked="{Binding UsageCounts}" ToolTip="{l:Loc Tooltips.Settings.UsageCounts}" VerticalAlignment="Center"
HorizontalAlignment="Left" Foreground="{DynamicResource Brush.TextMuted}"
Visibility="{Binding ShowsUsageCounts, Converter={StaticResource BoolToVisibility}}" />
<Button Grid.Column="1" Style="{StaticResource Button.Primary}" Height="36" Padding="22,0" Margin="12,0,0,0" Content="{l:Loc Shell.Welcome.Continue}"
Command="{Binding ContinueCommand}" ToolTip="{l:Loc Tooltips.Welcome.Continue}" IsDefault="True" />
</Grid>
<!-- Continue, right-aligned; Chronos sends nothing about its use, so the first run asks no consent (owner review 4, R2). -->
<Button Style="{StaticResource Button.Primary}" Height="36" Padding="22,0" Margin="0,20,0,0" HorizontalAlignment="Right" Content="{l:Loc Shell.Welcome.Continue}"
Command="{Binding ContinueCommand}" ToolTip="{l:Loc Tooltips.Welcome.Continue}" IsDefault="True" />
</StackPanel>
</Border>
</UserControl>
+1 -14
View File
@@ -20,7 +20,7 @@ public enum WelcomeChoice
/// <summary>
/// First run (BRIEF §12.1, Welcome.html): create a local archive, adopt an existing folder or connect to a server,
/// plus the language and the anonymous-usage consent. Shown once; the archive actions go through
/// plus the language. Shown once; the archive actions go through
/// <see cref="IArchiveSetup"/>.
/// </summary>
public sealed class WelcomeViewModel : LocalizedViewModel
@@ -139,19 +139,6 @@ public sealed class WelcomeViewModel : LocalizedViewModel
}
}
/// <summary>The usage counts consent belongs to monetization (BRIEF §21): only builds with it enabled offer it.</summary>
public bool ShowsUsageCounts => ProductFeatures.AdsEnabled;
public bool UsageCounts
{
get => _shell.Services.Settings.AnonymousUsageCounts;
set
{
_shell.Services.Settings.AnonymousUsageCounts = value;
OnPropertyChanged();
}
}
public bool IsBusy
{
get => _isBusy;