feat: unify creation entry templates

This commit is contained in:
2026-06-03 10:24:03 +08:00
parent b0865cfa19
commit 3f742fbaca
25 changed files with 820 additions and 346 deletions

View File

@@ -80,3 +80,24 @@ describe('index stylesheet draft mobile cards', () => {
expect(editableBlock).toContain('-webkit-touch-callout: default;');
});
});
describe('index stylesheet creation agent hero contrast', () => {
it('keeps dark creation progress hero text light inside remap surfaces', () => {
const css = readIndexCss();
expect(css).toContain('.platform-remap-surface');
expect(css).toContain('.creation-agent-hero');
const labelBlock = getCssBlock(
css,
':where(.creation-agent-hero__summary, .creation-agent-hero__progress-label)',
);
expect(labelBlock).toContain('rgba(255, 255, 255, 0.76) !important');
const valueBlock = getCssBlock(css, '.creation-agent-hero__progress-value');
expect(valueBlock).toContain('rgba(255, 255, 255, 0.92) !important');
const hintBlock = getCssBlock(css, '.creation-agent-hero__progress-hint');
expect(hintBlock).toContain('rgba(255, 255, 255, 0.72) !important');
});
});