Adds book deletion and restore to the web client.

Soft deletes books so the scan keeps their paths reserved, lists the deleted books on a themed page, and lets the user restore them. Updates the API, bundled themes, localization, documentation and tests.

Closes #213
This commit is contained in:
BinaryAlley committed 2026-11-13 18:00:00 +02:00
1 parent ef5ede6325
commit f26b07d4ff
125 files changed
+9856 -378

No files matched your search

@@ -101,7 +101,7 @@ public class UnitOfWorkTests
{
// Arrange
LuminaDbContext dbContext = _fixture.Create<LuminaDbContext>();
UnitOfWork unitOfWork = new(dbContext);
UnitOfWork unitOfWork = new(dbContext, Substitute.For<IDateTimeProvider>());
CancellationToken cancellationToken = new();
// Act
@@ -121,7 +121,7 @@ public class UnitOfWorkTests
.UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString())
.Options;
LuminaDbContext dbContext = new(options);
UnitOfWork unitOfWork = new(dbContext);
UnitOfWork unitOfWork = new(dbContext, Substitute.For<IDateTimeProvider>());
dbContext.Roles.Add(_roleEntityFixture.Create(id: Guid.NewGuid(), roleName: "TestRole"));
await dbContext.SaveChangesAsync(CancellationToken.None);
Assert.NotEmpty(dbContext.ChangeTracker.Entries());
@@ -154,6 +154,6 @@ public class UnitOfWorkTests
private UnitOfWork CreateUnitOfWork()
{
return new(_fixture.Create<LuminaDbContext>());
return new(_fixture.Create<LuminaDbContext>(), Substitute.For<IDateTimeProvider>());
}
}