收口智能创作与大鱼动作按钮
将智能创作首页 prompt suggestion 按钮迁移到共享动作按钮组件 将大鱼吃小鱼结果页 hero 动作迁移到共享按钮组件 补充轻量列表行暂不单独抽象的团队决策与收口文档
This commit is contained in:
@@ -56,9 +56,12 @@ test('CreativeAgentHome reuses shared button chrome for drawer and reward action
|
||||
const rewardButton = screen.getByRole('button', {
|
||||
name: '搓闪应用 分1亿激励',
|
||||
});
|
||||
const promptButton = screen.getByRole('button', { name: '你是谁' });
|
||||
|
||||
expect(menuButton.className).toContain('platform-icon-button');
|
||||
expect(rewardButton.className).toContain('platform-button');
|
||||
expect(promptButton.className).toContain('platform-button');
|
||||
expect(promptButton.className).toContain('creative-agent-home__prompt');
|
||||
|
||||
await user.click(menuButton);
|
||||
|
||||
|
||||
@@ -143,8 +143,9 @@ function CreativeAgentPromptButton({
|
||||
const Icon = item.icon;
|
||||
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
<PlatformActionButton
|
||||
tone="secondary"
|
||||
shape="pill"
|
||||
disabled={disabled}
|
||||
onClick={onClick}
|
||||
className={`creative-agent-home__prompt creative-agent-home__prompt--${item.tone}`}
|
||||
@@ -154,7 +155,7 @@ function CreativeAgentPromptButton({
|
||||
{item.badge ? (
|
||||
<span className="creative-agent-home__prompt-badge">{item.badge}</span>
|
||||
) : null}
|
||||
</button>
|
||||
</PlatformActionButton>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user