V13-FE-011: finalize search list layout slice

This commit is contained in:
2026-08-09 02:57:26 +09:00
parent 9efd202e76
commit 6422cb2b13
984 changed files with 120811 additions and 1498 deletions
@@ -0,0 +1,14 @@
namespace Kbx.Shared.Runtime;
public static class KbxOperationPolicy
{
public static bool IsTerminal(string status) => status is "completed" or "partially-completed" or "failed" or "cancelled";
public static bool CanRetryTransport(string httpMethod, bool hasIdempotencyKey)
{
if (httpMethod is "GET" or "HEAD") return true;
return hasIdempotencyKey;
}
public static bool CanStartCommit(string currentStatus) => currentStatus is "validated" or "retryable";
}