Removed migrations. New onboarding screen and wizard like steps.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Accounts;
|
||||
|
||||
public partial class AccountSetupStepModel : ObservableObject
|
||||
{
|
||||
public string Title { get; init; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(IsPending))]
|
||||
[NotifyPropertyChangedFor(nameof(IsInProgress))]
|
||||
[NotifyPropertyChangedFor(nameof(IsSucceeded))]
|
||||
[NotifyPropertyChangedFor(nameof(IsFailed))]
|
||||
public partial AccountSetupStepStatus Status { get; set; } = AccountSetupStepStatus.Pending;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string ErrorMessage { get; set; }
|
||||
|
||||
public bool IsPending => Status == AccountSetupStepStatus.Pending;
|
||||
public bool IsInProgress => Status == AccountSetupStepStatus.InProgress;
|
||||
public bool IsSucceeded => Status == AccountSetupStepStatus.Succeeded;
|
||||
public bool IsFailed => Status == AccountSetupStepStatus.Failed;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Updates;
|
||||
|
||||
public class UpdateMigration
|
||||
{
|
||||
[JsonPropertyName("titleKey")]
|
||||
public string TitleKey { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("descriptionKey")]
|
||||
public string DescriptionKey { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -1,16 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Wino.Core.Domain.Models.Updates;
|
||||
|
||||
public class UpdateNotes
|
||||
{
|
||||
[JsonPropertyName("hasPendingMigrations")]
|
||||
public bool HasPendingMigrations { get; set; }
|
||||
|
||||
[JsonPropertyName("migration")]
|
||||
public UpdateMigration Migration { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("sections")]
|
||||
public List<UpdateNoteSection> Sections { get; set; } = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user