收口大鱼发布校验提示
将大鱼吃小鱼发布校验阻断项迁移到 PlatformStatusMessage 补充发布阻断项平台 warning 状态条断言 更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
@@ -218,6 +218,17 @@ describe('BigFishResultView', () => {
|
||||
findNearestClassName(screen.getByText('发布校验'), 'platform-subpanel')
|
||||
?.className,
|
||||
).toContain('rounded-[1.5rem]');
|
||||
const blockerStatus = findNearestClassName(
|
||||
screen.getByText('还缺少 2 个基础动作'),
|
||||
'platform-status-message',
|
||||
);
|
||||
expect(blockerStatus?.className).toContain('platform-status-message');
|
||||
expect(blockerStatus?.className).toContain(
|
||||
'border-[var(--platform-warm-border)]',
|
||||
);
|
||||
expect(blockerStatus?.className).toContain(
|
||||
'bg-[var(--platform-warm-bg)]',
|
||||
);
|
||||
});
|
||||
|
||||
test('uses platform pill badge for ready publish status', () => {
|
||||
|
||||
@@ -22,6 +22,7 @@ import { PlatformFieldLabel } from '../common/PlatformFieldLabel';
|
||||
import { PlatformIconBadge } from '../common/PlatformIconBadge';
|
||||
import { PlatformMediaFrame } from '../common/PlatformMediaFrame';
|
||||
import { PlatformPillBadge } from '../common/PlatformPillBadge';
|
||||
import { PlatformStatusMessage } from '../common/PlatformStatusMessage';
|
||||
import { PlatformSubpanel } from '../common/PlatformSubpanel';
|
||||
import { UnifiedConfirmDialog } from '../common/UnifiedConfirmDialog';
|
||||
|
||||
@@ -540,11 +541,16 @@ export function BigFishResultView({
|
||||
</PlatformPillBadge>
|
||||
</div>
|
||||
) : blockers.length > 0 ? (
|
||||
<div className="mt-3 space-y-1 text-xs leading-5 text-amber-700">
|
||||
<PlatformStatusMessage
|
||||
tone="warning"
|
||||
surface="platform"
|
||||
size="xs"
|
||||
className="mt-3 space-y-1 leading-5"
|
||||
>
|
||||
{blockers.slice(0, 4).map((blocker) => (
|
||||
<div key={blocker}>{blocker}</div>
|
||||
))}
|
||||
</div>
|
||||
</PlatformStatusMessage>
|
||||
) : (
|
||||
<div className="mt-3">
|
||||
<PlatformPillBadge tone="success" size="sm">
|
||||
|
||||
Reference in New Issue
Block a user