fix(settings): sidebar_visible/width 영속화 — IPC + store hydration 추가
final code review 의 Important issue 대응. SettingsService 의 setSidebarVisible/ setSidebarWidth getter/setter 는 이미 있었지만 IPC handler + store hydration missing 으로 매 launch 시 사이드바 닫힌 상태로 시작하던 회귀. - settings:set-sidebar-visible / set-sidebar-width IPC 핸들러 추가 - InboxApi.getSettings 응답에 sidebar_visible/sidebar_width 포함 - preload 의 setSidebarVisible/setSidebarWidth invoke 노출 - store.loadInitial 가 settings.sidebar_visible/sidebar_width 로 hydrate - store.toggleSidebar 가 IPC 호출하여 영속화 - test mock 에 setSidebarVisible/setSidebarWidth 추가 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,9 @@ vi.mock('../../src/renderer/inbox/api.js', () => ({
|
||||
listRecallCandidate: vi.fn(async () => null),
|
||||
countsByStatus: mockCountsByStatus,
|
||||
getSettings: vi.fn(async () => ({ ai_enabled: true })),
|
||||
listByStatus: mockListByStatus
|
||||
listByStatus: mockListByStatus,
|
||||
setSidebarVisible: vi.fn(async () => ({ ok: true as const })),
|
||||
setSidebarWidth: vi.fn(async () => ({ ok: true as const }))
|
||||
},
|
||||
notebookApi: {
|
||||
list: vi.fn(async () => [
|
||||
|
||||
Reference in New Issue
Block a user