Add genre feature; extract ConfirmModal for reusable confirm dialogs

Genres seed on boot, are editable per project, and gate agent config
errors more gracefully. ConfirmModal replaces ad-hoc confirm prompts
across chapters, tags, and characters pages.
This commit is contained in:
James Wampler
2026-08-15 11:25:13 -07:00
parent ffb476a81a
commit 27c287b9c8
27 changed files with 1428 additions and 80 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace Novelly.Api.Genres;
public record GenreResponse(Guid Id, string Name);
public static class GenreMapping
{
public static GenreResponse ToResponse(this Genre g) => new(g.Id, g.Name);
}