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:
lucaronin
2026-04-04 12:52:54 +02:00
parent 0be1060d81
commit 8d90b8489b
12 changed files with 389 additions and 2 deletions

View File

@@ -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({})