继续收口编辑器空态与暗色动作按钮

视觉小说实体列表空态复用 PlatformEmptyState
角色素材工作室局部按钮改为委托 PlatformActionButton
RPG大编辑器局部按钮改为委托 PlatformActionButton
更新 PlatformUiKit 收口文档与团队决策记录
This commit is contained in:
2026-06-11 01:52:47 +08:00
parent 06bf03a28c
commit 402b847c7f
7 changed files with 59 additions and 23 deletions

View File

@@ -113,7 +113,7 @@ test('visual novel entity list items use interactive PlatformSubpanel shells', a
expect(characterCard.className).toContain('rounded-[1.25rem]');
});
test('visual novel empty entity list uses PlatformSubpanel shell', async () => {
test('visual novel empty entity list uses PlatformEmptyState shell', async () => {
const user = userEvent.setup();
const emptyCharacterDraft = {
...mockVisualNovelDraft,
@@ -126,11 +126,17 @@ test('visual novel empty entity list uses PlatformSubpanel shell', async () => {
await user.click(screen.getByRole('button', { name: '角色' }));
const emptyPanel = screen.getByText('暂无角色').closest('.platform-subpanel');
const emptyPanel = screen
.getByText('暂无角色')
.closest('.platform-empty-state');
expect(emptyPanel?.className).toContain('platform-subpanel');
expect(emptyPanel?.className).toContain('platform-empty-state');
expect(emptyPanel?.className).toContain('bg-white/74');
expect(emptyPanel?.className).toContain('rounded-[1.25rem]');
expect(emptyPanel?.className).toContain('min-h-32');
expect(emptyPanel?.className).toContain(
'text-[var(--platform-text-soft)]',
);
});
test('visual novel result opens complex editors as a dialog', async () => {