Harden workstation UX and seed placeholder scans after Playwright QA.
CI / backend (push) Failing after 38s
CI / frontend (push) Successful in 9m35s

Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
This commit is contained in:
2026-10-06 15:07:15 +08:00
parent 7d7332641f
commit 3c7bf5bccb
47 changed files with 1160 additions and 140 deletions
@@ -70,6 +70,36 @@ public class DocumentStorageService : IDocumentStorageService
return memStream;
}
public async Task<bool> ObjectExistsAsync(string objectKey)
{
try
{
await _minio.StatObjectAsync(new StatObjectArgs()
.WithBucket(_options.BucketName)
.WithObject(objectKey));
return true;
}
catch (Minio.Exceptions.ObjectNotFoundException)
{
return false;
}
}
public async Task EnsureObjectAsync(string objectKey, byte[] content, string contentType)
{
await EnsureBucketAsync();
if (await ObjectExistsAsync(objectKey))
return;
using var stream = new MemoryStream(content);
await _minio.PutObjectAsync(new PutObjectArgs()
.WithBucket(_options.BucketName)
.WithObject(objectKey)
.WithStreamData(stream)
.WithObjectSize(stream.Length)
.WithContentType(contentType));
}
private async Task EnsureBucketAsync()
{
var exists = await _minio.BucketExistsAsync(new BucketExistsArgs().WithBucket(_options.BucketName));