feat: reopen match3d creation entry
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-09 18:33:02 +08:00
parent 052dbc248b
commit 641d91cf11
5 changed files with 13 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ test('platform creation types are derived from new work entry config', () => {
badge: match3dConfig?.badge,
imageSrc: match3dConfig?.imageSrc,
locked: false,
hidden: !match3dConfig?.visible,
hidden: false,
}),
);
});
@@ -54,11 +54,16 @@ test('new work entry config controls visibility and open order', () => {
expect(isPlatformCreationTypeVisible('rpg')).toBe(false);
expect(isPlatformCreationTypeVisible('big-fish')).toBe(false);
expect(isPlatformCreationTypeVisible('match3d')).toBe(false);
expect(isPlatformCreationTypeVisible('match3d')).toBe(true);
expect(isPlatformCreationTypeVisible('creative-agent')).toBe(false);
expect(visibleIds).not.toContain('rpg');
expect(visibleIds).not.toContain('big-fish');
expect(visibleIds).not.toContain('match3d');
expect(visibleIds).not.toContain('creative-agent');
expect(visibleIds).toEqual(['puzzle', 'square-hole', 'visual-novel', 'airp']);
expect(visibleIds).toEqual([
'puzzle',
'match3d',
'square-hole',
'visual-novel',
'airp',
]);
});

View File

@@ -47,7 +47,7 @@ export const NEW_WORK_ENTRY_CONFIG = {
subtitle: '经典消除玩法',
badge: '可创建',
imageSrc: '/creation-type-references/match3d.webp',
visible: false,
visible: true,
open: true,
},
{