Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix: expose stickman workspace in creator catalog

wulien-center852641eeef03
diff --git a/apps/web/src/features/conversation/CreatorDashboard.test.tsx b/apps/web/src/features/conversation/CreatorDashboard.test.tsx
index f7411d78..fb9d9bc1 100644
--- a/apps/web/src/features/conversation/CreatorDashboard.test.tsx
+++ b/apps/web/src/features/conversation/CreatorDashboard.test.tsx
@@ -19,19 +19,22 @@ describe('CreatorDashboard', () => {
expect(screen.getByRole('tab', { name: '推荐' })).toHaveAttribute('aria-selected', 'true');
expect(screen.queryByRole('tab', { name: '最近' })).not.toBeInTheDocument();
expect(screen.getByRole('heading', { name: '创作模板' })).toBeInTheDocument();
- expect(container.querySelector('.creator-dashboard')).toHaveAttribute('data-template-count', '4');
- expect(screen.getAllByRole('button', { name: /使用.+模板/ })).toHaveLength(4);
+ expect(container.querySelector('.creator-dashboard')).toHaveAttribute('data-template-count', '5');
+ expect(screen.getAllByRole('button', { name: /使用.+模板/ })).toHaveLength(5);
const recommendedSkills = screen.getAllByRole('button', { name: /使用.+模板/ });
expect(recommendedSkills[1]).toHaveAccessibleName('使用视频下载模板');
expect(recommendedSkills[1]?.querySelector('img'))
.toHaveAttribute('src', '/dashboard/templates/video-download-cover.png');
- expect(recommendedSkills[2]).toHaveAccessibleName('使用封面生成模板');
+ expect(recommendedSkills[2]).toHaveAccessibleName('使用火柴人动画模板');
expect(recommendedSkills[2]?.querySelector('img'))
- .toHaveAttribute('src', '/dashboard/templates/peter-openclaw-cover.png');
- expect(recommendedSkills[3]).toHaveAccessibleName('使用图像生成模板');
+ .toHaveAttribute('src', '/dashboard/templates/ai-video-insane.jpg');
+ expect(recommendedSkills[3]).toHaveAccessibleName('使用封面生成模板');
expect(recommendedSkills[3]?.querySelector('img'))
+ .toHaveAttribute('src', '/dashboard/templates/peter-openclaw-cover.png');
+ expect(recommendedSkills[4]).toHaveAccessibleName('使用图像生成模板');
+ expect(recommendedSkills[4]?.querySelector('img'))
.toHaveAttribute('src', '/dashboard/templates/image-generation-cover.png');
- expect(screen.queryByRole('button', { name: '使用火柴人动画模板' })).not.toBeInTheDocument();
+ expect(screen.getByRole('button', { name: '使用火柴人动画模板' })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: '使用数字人口播模板' })).not.toBeInTheDocument();
expect(screen.queryByRole('button', { name: '使用智能剪辑模板' })).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: '使用多语言视频翻译模板' }))
@@ -89,6 +92,12 @@ describe('CreatorDashboard', () => {
id: 'image-generation',
interaction: { type: 'workspace', workspace: 'image-generation' }
}));
+
+ fireEvent.click(screen.getByRole('button', { name: '使用火柴人动画模板' }));
+ expect(onSelectSkill).toHaveBeenLastCalledWith(expect.objectContaining({
+ id: 'stickman-animation',
+ interaction: { type: 'workspace', workspace: 'stickman-video' }
+ }));
});
it('shows a different set of Skills for each category', () => {
@@ -102,8 +111,9 @@ describe('CreatorDashboard', () => {
fireEvent.click(screen.getByRole('tab', { name: '视频创作' }));
expect(screen.getByRole('tab', { name: '视频创作' })).toHaveAttribute('aria-selected', 'true');
- expect(screen.getAllByRole('button', { name: /使用.+模板/ })).toHaveLength(2);
+ expect(screen.getAllByRole('button', { name: /使用.+模板/ })).toHaveLength(3);
expect(screen.getByRole('button', { name: '使用视频翻译模板' })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: '使用火柴人知识动画模板' })).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '使用视频下载模板' }));
expect(onSelectSkill).toHaveBeenCalledWith(expect.objectContaining({
id: 'video-download-category',
diff --git a/apps/web/src/features/dashboard/DashboardPage.test.tsx b/apps/web/src/features/dashboard/DashboardPage.test.tsx
index 327ec80a..5927836c 100644
--- a/apps/web/src/features/dashboard/DashboardPage.test.tsx
+++ b/apps/web/src/features/dashboard/DashboardPage.test.tsx
@@ -783,10 +783,11 @@ describe('DashboardPage', () => {
expect(within(videoTranslationCard).getByText('HOT')).toBeInTheDocument();
expect(within(videoTranslationCard).queryByText('NEW')).not.toBeInTheDocument();
const appCards = Array.from(container.querySelectorAll('.dashboard-app-card'));
- expect(appCards).toHaveLength(8);
+ expect(appCards).toHaveLength(9);
expect(appCards.map(card => card.querySelector('strong')?.textContent)).toEqual([
'文章写作',
'视频翻译',
+ '火柴人动画',
'视频下载',
'封面生成',
'小红书帖子',
@@ -794,7 +795,8 @@ describe('DashboardPage', () => {
'视频生成',
'图像生成'
]);
- expect(screen.queryByRole('button', { name: /^火柴人动画/ })).not.toBeInTheDocument();
+ expect(screen.getByRole('button', { name: /^火柴人动画 角色、分镜与完整动画/ }))
+ .toBeInTheDocument();
expect(screen.queryByRole('button', { name: /^自动剪辑/ })).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: /^智能配音/ })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /^视频生成/ })).toBeInTheDocument();
@@ -978,11 +980,11 @@ describe('DashboardPage', () => {
render(
<DashboardPage
onSelectPrompt={vi.fn()}
- workspace="stickman-video"
creatorService={creatorService}
/>
);
+ fireEvent.click(screen.getByRole('button', { name: /^火柴人动画/ }));
expect(screen.getByRole('heading', { name: '火柴人动画' })).toBeInTheDocument();
expect(screen.getByRole('navigation', { name: '火柴人视频制作步骤' })).toBeInTheDocument();
const characterPresets = screen.getByRole('radiogroup', { name: '角色预设' });
diff --git a/apps/web/src/features/dashboard/creator-workspace.ts b/apps/web/src/features/dashboard/creator-workspace.ts
index 03cdffe2..91bb5260 100644
--- a/apps/web/src/features/dashboard/creator-workspace.ts
+++ b/apps/web/src/features/dashboard/creator-workspace.ts
@@ -28,6 +28,7 @@ export const creatorWorkspaces = [
export const visibleCreatorWorkspaces = [
'video-translation',
'video-download',
+ 'stickman-video',
'smart-dubbing',
'xiaohongshu-post',
'wechat-article',