feat(help): add offline guidance and resumable first-use setup (U14)

This commit is contained in:
2026-11-02 19:35:28 +01:00
parent 9f8c4b7af1
commit be3eb6b674
8 changed files with 184 additions and 0 deletions
@@ -25,6 +25,14 @@ public class SettingsService : ISettingsService
await SaveAsync(settings);
}
public async Task<int> GetSetupStepAsync() => (await LoadAsync()).SetupStep;
public async Task SetSetupStepAsync(int step)
{
var settings = await LoadAsync();
settings.SetupStep = Math.Clamp(step, 0, 4);
await SaveAsync(settings);
}
private async Task<AppSettings> LoadAsync()
{
if (!File.Exists(SettingsPath))
@@ -52,5 +60,6 @@ public class SettingsService : ISettingsService
private class AppSettings
{
public string? ClubName { get; set; }
public int SetupStep { get; set; }
}
}