feat(home): add AI story expand button and modal

This commit is contained in:
saturn
2026-03-24 23:53:26 +08:00
parent 4e469074e0
commit fd8f5f8635
28 changed files with 615 additions and 3 deletions

View File

@@ -171,6 +171,13 @@ const ROUTE_CASES: ReadonlyArray<LLMRouteCase> = [
expectedTargetType: 'NovelPromotionLocationDesign',
expectedProjectId: 'project-1',
},
{
routeFile: 'src/app/api/user/ai-story-expand/route.ts',
body: { prompt: '宫廷复仇女主回京' },
expectedTaskType: TASK_TYPE.AI_STORY_EXPAND,
expectedTargetType: 'HomeAiStoryExpand',
expectedProjectId: 'home-ai-write',
},
{
routeFile: 'src/app/api/novel-promotion/[projectId]/ai-modify-appearance/route.ts',
body: {
@@ -336,7 +343,7 @@ describe('api contract - llm observe routes (behavior)', () => {
})
it('keeps expected coverage size', () => {
expect(ROUTE_CASES.length).toBe(22)
expect(ROUTE_CASES.length).toBe(23)
})
for (const routeCase of ROUTE_CASES) {