Rename Project concept to Novel across the stack
Renames the domain concept from Project to Novel throughout the backend (entities, DTOs, services, endpoints, ProjectAccessService/Permission, ProjectId foreign keys), MCP server (tool names and routes), and the React/Vite frontend (types, hooks, routes, components). Adds a new EF Core migration (RenameProjectToNovel) using RenameTable/RenameColumn to preserve existing data instead of dropping/recreating tables. Updates CLAUDE.md's structure section to reference Novels/ instead of Projects/.
This commit is contained in:
@@ -2,7 +2,7 @@ using Novelly.Api.Beats;
|
||||
using Novelly.Api.Chapters;
|
||||
using Novelly.Api.Characters;
|
||||
using Novelly.Api.Genres;
|
||||
using Novelly.Api.Projects;
|
||||
using Novelly.Api.Novels;
|
||||
using Novelly.Api.Questions;
|
||||
using Novelly.Api.Tags;
|
||||
using Novelly.Api.Users;
|
||||
@@ -13,9 +13,9 @@ public abstract class ServiceTestFixture
|
||||
{
|
||||
protected TestDatabase Db { get; private set; } = null!;
|
||||
protected TestUserContext UserContext { get; private set; } = null!;
|
||||
protected ProjectAccessService Access { get; private set; } = null!;
|
||||
protected NovelAccessService Access { get; private set; } = null!;
|
||||
protected TagService Tags { get; private set; } = null!;
|
||||
protected ProjectService Projects { get; private set; } = null!;
|
||||
protected NovelService Novels { get; private set; } = null!;
|
||||
protected CharacterService Characters { get; private set; } = null!;
|
||||
protected ChapterService Chapters { get; private set; } = null!;
|
||||
protected BeatService Beats { get; private set; } = null!;
|
||||
@@ -23,7 +23,7 @@ public abstract class ServiceTestFixture
|
||||
protected OpenQuestionService Questions { get; private set; } = null!;
|
||||
protected GenreService Genres { get; private set; } = null!;
|
||||
|
||||
protected CapturingLogger<ProjectService> ProjectLogs { get; private set; } = null!;
|
||||
protected CapturingLogger<NovelService> NovelLogs { get; private set; } = null!;
|
||||
protected CapturingLogger<CharacterService> CharacterLogs { get; private set; } = null!;
|
||||
protected CapturingLogger<ChapterService> ChapterLogs { get; private set; } = null!;
|
||||
protected CapturingLogger<BeatService> BeatLogs { get; private set; } = null!;
|
||||
@@ -37,7 +37,7 @@ public abstract class ServiceTestFixture
|
||||
{
|
||||
Db = new TestDatabase();
|
||||
UserContext = new TestUserContext();
|
||||
Access = new ProjectAccessService(Db.Context, UserContext, new CapturingLogger<ProjectAccessService>());
|
||||
Access = new NovelAccessService(Db.Context, UserContext, new CapturingLogger<NovelAccessService>());
|
||||
|
||||
Db.Context.Users.Add(new NovellyUser
|
||||
{
|
||||
@@ -50,7 +50,7 @@ public abstract class ServiceTestFixture
|
||||
Db.Context.SaveChanges();
|
||||
|
||||
TagLogs = new CapturingLogger<TagService>();
|
||||
ProjectLogs = new CapturingLogger<ProjectService>();
|
||||
NovelLogs = new CapturingLogger<NovelService>();
|
||||
CharacterLogs = new CapturingLogger<CharacterService>();
|
||||
ChapterLogs = new CapturingLogger<ChapterService>();
|
||||
BeatLogs = new CapturingLogger<BeatService>();
|
||||
@@ -59,8 +59,8 @@ public abstract class ServiceTestFixture
|
||||
GenreLogs = new CapturingLogger<GenreService>();
|
||||
|
||||
Tags = new TagService(Db.Context, Access, TagLogs, new CreateTagRequestValidator(), new UpdateTagRequestValidator());
|
||||
Projects = new ProjectService(
|
||||
Db.Context, Access, UserContext, ProjectLogs, new CreateProjectRequestValidator(), new UpdateProjectRequestValidator());
|
||||
Novels = new NovelService(
|
||||
Db.Context, Access, UserContext, NovelLogs, new CreateNovelRequestValidator(), new UpdateNovelRequestValidator());
|
||||
Characters = new CharacterService(
|
||||
Db.Context, Access, Tags, CharacterLogs,
|
||||
new CreateCharacterRequestValidator(), new UpdateCharacterRequestValidator(), new CreateRelationshipRequestValidator(),
|
||||
|
||||
Reference in New Issue
Block a user