chore: phase 2 and 3 refactors

This commit is contained in:
2026-02-21 18:02:20 +01:00
parent 40892b9302
commit 87200a8ad9
24 changed files with 411 additions and 74 deletions

View File

@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { getPersistedSidebarSection, setPersistedSidebarSection } from '../../../src/renderer/navigation/sidebarUiPersistence';
describe('sidebarUiPersistence', () => {
it('persists and reads section ids by sidebar key', () => {
setPersistedSidebarSection('settings', 'project');
expect(getPersistedSidebarSection('settings')).toBe('project');
});
it('returns null for missing persisted section', () => {
expect(getPersistedSidebarSection('tags')).toBeNull();
});
});