Build / Desktop, server and tools (push) Successful in 1m8s
The server no longer answers 409, 413 or 429: a busy probe, a share or upload that is too large and a request over the limit now answer 400 with the same reason as before, and still say when to try again. The app reads the reason, so nothing changes for it; versions up to 0.15.4 report a limited speed test as unmeasured until they update. The app's commands can now be cancelled all the way down, and the house rules are written into PATTERNS.md and checked on every build, Android included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
25 lines
849 B
C#
25 lines
849 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
using MeWeb.App.Services;
|
|
using MeWeb.Core.History;
|
|
|
|
namespace MeWeb.App.ViewModels;
|
|
|
|
public partial class SubmissionViewModel(Submission submission, Func<SubmissionViewModel, CancellationToken, Task> delete) : ObservableObject
|
|
{
|
|
public string Id => submission.Id;
|
|
public string Token => submission.Token;
|
|
public string AutomationId => $"submission-delete-{submission.Id}";
|
|
public string CopyAutomationId => $"submission-copy-{submission.Id}";
|
|
public string KeptFormatted => Localizer.Instance.Format("SubmissionKept", Texts.Date(submission.KeepUntil));
|
|
|
|
[ObservableProperty]
|
|
public partial bool Failed { get; set; }
|
|
|
|
[RelayCommand]
|
|
Task Delete(CancellationToken ct) => delete(this, ct);
|
|
|
|
public void Refresh() => OnPropertyChanged(string.Empty);
|
|
}
|