fix: remove daily note command surfaces

This commit is contained in:
lucaronin
2026-04-12 23:14:03 +02:00
parent 73c1ecf8a9
commit 14dc07084d
20 changed files with 282 additions and 392 deletions

View File

@@ -31,7 +31,6 @@ function makeConfig(overrides: Record<string, unknown> = {}) {
onZoomReset: vi.fn(),
zoomLevel: 100,
onSelect: vi.fn(),
onOpenDailyNote: vi.fn(),
onCloseTab: vi.fn(),
onGoBack: vi.fn(),
onGoForward: vi.fn(),
@@ -207,6 +206,12 @@ describe('useCommandRegistry', () => {
expect(findCommand(result.current, 'go-inbox')).toBeUndefined()
})
it('omits the removed daily-note command', () => {
const config = makeConfig()
const { result } = renderHook(() => useCommandRegistry(config))
expect(findCommand(result.current, 'open-daily-note')).toBeUndefined()
})
it('includes Give Feedback in the Settings group when available', () => {
const onOpenFeedback = vi.fn()
const config = makeConfig({ onOpenFeedback })