feat: refine UI, improve UX, optimize the analysis pipeline, and add character standing positions

This commit is contained in:
saturn
2026-04-02 17:39:16 +08:00
parent c3e74c228a
commit 9703714b69
153 changed files with 4472 additions and 1088 deletions

View File

@@ -44,7 +44,6 @@ describe('createHomeProjectLaunch', () => {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: '开场白',
description: '第一章内容',
}),
})
expect(apiFetch).toHaveBeenNthCalledWith(2, '/api/novel-promotion/project-1', {

View File

@@ -26,15 +26,20 @@ vi.mock('@/components/Navbar', () => ({
vi.mock('@/components/story-input/StoryInputComposer', () => ({
default: ({
minRows,
textareaClassName,
primaryAction,
secondaryActions,
}: {
minRows: number
textareaClassName?: string
primaryAction: React.ReactNode
secondaryActions?: React.ReactNode
}) => createElement(
'section',
{ 'data-min-rows': String(minRows) },
{
'data-min-rows': String(minRows),
'data-textarea-class': textareaClassName,
},
secondaryActions,
primaryAction,
'StoryInputComposer',
@@ -103,5 +108,6 @@ describe('HomePage quick-start input', () => {
expect(HOME_QUICK_START_MIN_ROWS).toBe(3)
expect(html).toContain('StoryInputComposer')
expect(html).toContain('data-min-rows="3"')
expect(html).toContain('data-textarea-class="px-0 pt-0 pb-3 align-top"')
})
})