feat: add type-specific property chips in note list
Parse _list_properties_display from type file frontmatter and render property/relationship values as chips below note snippets. Add a SlidersHorizontal config popover in the note list header (sectionGroup views only) with checkboxes and drag-to-reorder via dnd-kit. Changes are saved back to the type file's frontmatter immediately. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -401,6 +401,16 @@ describe('frontmatterToEntryPatch', () => {
|
||||
},
|
||||
)
|
||||
|
||||
it('maps _list_properties_display update to listPropertiesDisplay array', () => {
|
||||
const result = frontmatterToEntryPatch('update', '_list_properties_display', ['rating', 'genre'])
|
||||
expect(result.patch).toEqual({ listPropertiesDisplay: ['rating', 'genre'] })
|
||||
})
|
||||
|
||||
it('maps _list_properties_display delete to empty array', () => {
|
||||
const result = frontmatterToEntryPatch('delete', '_list_properties_display')
|
||||
expect(result.patch).toEqual({ listPropertiesDisplay: [] })
|
||||
})
|
||||
|
||||
it('returns empty patch for unknown key on delete, with relationship removal', () => {
|
||||
const result = frontmatterToEntryPatch('delete', 'unknown_key')
|
||||
expect(result.patch).toEqual({})
|
||||
|
||||
Reference in New Issue
Block a user