feat: add icon and color fields to VaultEntry

- Add icon (string|null) and color (string|null) to VaultEntry interface
- Update Rust VaultEntry struct and frontmatter parsing to read icon/color
- Add icon/color to SKIP_KEYS so they don't appear as relationships
- Set mock data: Recipe type → cooking-pot/orange, Book type → book-open/green
- Update all test files with the new required fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-02-21 13:23:10 +01:00
parent a7addf127e
commit f36cfd1808
8 changed files with 117 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ export function useNoteActions(
aliases: [], belongsTo: [], relatedTo: [],
status: noStatusTypes.has(type) ? null : 'Active',
owner: null, cadence: null, modifiedAt: now, createdAt: now, fileSize: 0,
snippet: '', relationships: {},
snippet: '', relationships: {}, icon: null, color: null,
}
const frontmatter = [
@@ -242,7 +242,7 @@ export function useNoteActions(
aliases: [], belongsTo: [], relatedTo: [],
status: null, owner: null, cadence: null,
modifiedAt: now, createdAt: now, fileSize: 0,
snippet: '', relationships: {},
snippet: '', relationships: {}, icon: null, color: null,
}
const content = `---\nIs A: Type\n---\n\n# ${typeName}\n\n`