收口模板确认面板行内字段标签
新增 PlatformFieldLabel inlineForm 变体承接行内表单标题 模板确认弹层“关卡数”标题改为复用 PlatformFieldLabel 补充组件测试、收口计划文档和 Hermes 决策记录
This commit is contained in:
@@ -46,6 +46,9 @@ test('shows cost range and opens an independent adjustment dialog', () => {
|
||||
fireEvent.click(within(confirmDialog).getByRole('button', { name: /调整/u }));
|
||||
const adjustDialog = screen.getByRole('dialog', { name: '调整拼图模板' });
|
||||
expect(adjustDialog.parentElement).not.toBe(confirmDialog);
|
||||
expect(within(adjustDialog).getByText('关卡数').className).toContain(
|
||||
'inline-flex',
|
||||
);
|
||||
|
||||
fireEvent.click(within(adjustDialog).getByRole('button', { name: '多关卡' }));
|
||||
const levelCountInput = within(adjustDialog).getByLabelText('计划关卡数');
|
||||
|
||||
@@ -5,6 +5,7 @@ import { createPortal } from 'react-dom';
|
||||
import type { PuzzleCreativeTemplateSelection } from '../../../packages/shared/src/contracts/puzzleCreativeTemplate';
|
||||
import { useAuthUi } from '../auth/AuthUiContext';
|
||||
import { PlatformActionButton } from '../common/PlatformActionButton';
|
||||
import { PlatformFieldLabel } from '../common/PlatformFieldLabel';
|
||||
import { PlatformIconBadge } from '../common/PlatformIconBadge';
|
||||
import { PlatformMediaFrame } from '../common/PlatformMediaFrame';
|
||||
import { PlatformModalCloseButton } from '../common/PlatformModalCloseButton';
|
||||
@@ -238,9 +239,9 @@ export function CreativeAgentTemplateConfirmPanel({
|
||||
/>
|
||||
|
||||
<label className="flex min-h-11 items-center gap-3">
|
||||
<span className="shrink-0 text-sm font-bold text-[var(--platform-text-base)]">
|
||||
<PlatformFieldLabel variant="inlineForm" className="shrink-0">
|
||||
关卡数
|
||||
</span>
|
||||
</PlatformFieldLabel>
|
||||
<PlatformTextField
|
||||
type="number"
|
||||
min={levelCountBounds.min}
|
||||
|
||||
Reference in New Issue
Block a user