feat: 세력 장수 누락 정보를 복원한다
Ref 권한 경계에 맞춰 연령, 삭턴, 병력, 훈련, 예약 명령, 턴 시각과 전과를 투영한다. 열 선택과 기본/전투 보기에서 새 그룹을 사용할 수 있게 하고 기존 저장 설정을 보존한다.
This commit is contained in:
@@ -21,6 +21,8 @@ void describe('nation general Ref-compatible grid state', () => {
|
||||
const normal = defaultNationGeneralDisplaySettings.normal;
|
||||
assert.equal(normal.columnGroup.find((entry) => entry.groupId === 'stat')?.open, true);
|
||||
assert.equal(normal.columnGroup.find((entry) => entry.groupId === 'specials')?.open, false);
|
||||
assert.equal(normal.column.find((entry) => entry.colId === 'age')?.hide, false);
|
||||
assert.equal(normal.column.find((entry) => entry.colId === 'reservedCommand')?.hide, true);
|
||||
assert.deepEqual(
|
||||
normal.column.filter((entry) => entry.sort).map((entry) => [entry.colId, entry.sort, entry.sortIndex]),
|
||||
[['refreshScoreTotal', 'desc', 0]]
|
||||
@@ -29,6 +31,9 @@ void describe('nation general Ref-compatible grid state', () => {
|
||||
assert.equal(war.columnGroup.find((entry) => entry.groupId === 'stat')?.open, false);
|
||||
assert.equal(war.column.find((entry) => entry.colId === 'stat_1')?.hide, false);
|
||||
assert.equal(war.column.find((entry) => entry.colId === 'leadership')?.hide, false);
|
||||
assert.equal(war.column.find((entry) => entry.colId === 'crewtypeAndCrew_1')?.hide, false);
|
||||
assert.equal(war.column.find((entry) => entry.colId === 'reservedCommand')?.hide, false);
|
||||
assert.equal(war.column.find((entry) => entry.colId === 'turntime')?.sort, 'asc');
|
||||
});
|
||||
|
||||
void it('round-trips named settings and rejects invalid versions', () => {
|
||||
|
||||
Reference in New Issue
Block a user