fix(game-ui): 턴 입력기 모드를 서버별로 기억한다

This commit is contained in:
2026-08-28 01:12:34 +00:00
parent ca3e028603
commit ab0f1b9cd5
5 changed files with 108 additions and 14 deletions
@@ -4,11 +4,19 @@ import test from 'node:test';
import {
amplifyPattern,
extractPattern,
generalTurnEditorModeStorageKey,
moveQueueRange,
normalizedSelection,
selectStep,
} from '../src/components/command/commandQueue.ts';
void test('scopes the general turn editor mode to the stable server profile', () => {
assert.equal(generalTurnEditorModeStorageKey('che:default', '/che/'), 'core2026:profile:che:general-turn-editor');
assert.equal(generalTurnEditorModeStorageKey('che:2601', '/che/'), 'core2026:profile:che:general-turn-editor');
assert.equal(generalTurnEditorModeStorageKey('hwe:2601', '/hwe/'), 'core2026:profile:hwe:general-turn-editor');
assert.equal(generalTurnEditorModeStorageKey(undefined, '/nya/'), 'core2026:profile:nya:general-turn-editor');
});
const rows = ['A', 'B', 'A', 'C', '휴식', '휴식'].map((action, index) => ({
index,
action,