fix: show type icon and label for "Note" type in search and autocomplete
The "Note" type was explicitly filtered out with `isA !== 'Note'` in SearchPanel, NoteAutocomplete, and useNoteSearch, preventing its icon and label from appearing. Remove this special-casing so all types display consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -69,12 +69,12 @@ describe('useNoteSearch', () => {
|
||||
expect(project?.typeLightColor).toBeTruthy()
|
||||
})
|
||||
|
||||
it('excludes noteType and light color for Note entries', () => {
|
||||
it('includes noteType and colors for Note entries', () => {
|
||||
const { result } = renderHook(() => useNoteSearch(entries, ''))
|
||||
const note = result.current.results.find((r) => r.title === 'Beta Notes')
|
||||
expect(note?.noteType).toBeUndefined()
|
||||
expect(note?.typeColor).toBeUndefined()
|
||||
expect(note?.typeLightColor).toBeUndefined()
|
||||
expect(note?.noteType).toBe('Note')
|
||||
expect(note?.typeColor).toBeTruthy()
|
||||
expect(note?.typeLightColor).toBeTruthy()
|
||||
})
|
||||
|
||||
it('includes original VaultEntry in results', () => {
|
||||
|
||||
Reference in New Issue
Block a user