diff --git a/src/components/BreadcrumbBar.test.tsx b/src/components/BreadcrumbBar.test.tsx index e0110a52..0ed3c191 100644 --- a/src/components/BreadcrumbBar.test.tsx +++ b/src/components/BreadcrumbBar.test.tsx @@ -24,6 +24,7 @@ const baseEntry: VaultEntry = { relationships: {}, icon: null, color: null, + order: null, } const trashedEntry: VaultEntry = { diff --git a/src/components/NoteList.test.tsx b/src/components/NoteList.test.tsx index 0897e9c7..e8beb7db 100644 --- a/src/components/NoteList.test.tsx +++ b/src/components/NoteList.test.tsx @@ -276,6 +276,8 @@ describe('getSortComparator', () => { owner: null, cadence: null, archived: false, + trashed: false, + trashedAt: null, modifiedAt: null, createdAt: null, fileSize: 100, @@ -352,6 +354,8 @@ describe('NoteList sort controls', () => { owner: null, cadence: null, archived: false, + trashed: false, + trashedAt: null, modifiedAt: null, createdAt: null, fileSize: 100, @@ -486,6 +490,7 @@ const trashedEntry: VaultEntry = { relationships: {}, icon: null, color: null, + order: null, } const expiredTrashedEntry: VaultEntry = { @@ -509,6 +514,7 @@ const expiredTrashedEntry: VaultEntry = { relationships: {}, icon: null, color: null, + order: null, } const entriesWithTrashed = [...mockEntries, trashedEntry, expiredTrashedEntry] diff --git a/src/components/Sidebar.test.tsx b/src/components/Sidebar.test.tsx index 74af71a7..d74e56f6 100644 --- a/src/components/Sidebar.test.tsx +++ b/src/components/Sidebar.test.tsx @@ -571,19 +571,19 @@ describe('Sidebar', () => { { path: '/vault/type/project.md', filename: 'project.md', title: 'Project', isA: 'Type', aliases: [], belongsTo: [], relatedTo: [], status: null, owner: null, cadence: null, - archived: false, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', + archived: false, trashed: false, trashedAt: null, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', relationships: {}, icon: null, color: null, order: 5, }, { path: '/vault/type/topic.md', filename: 'topic.md', title: 'Topic', isA: 'Type', aliases: [], belongsTo: [], relatedTo: [], status: null, owner: null, cadence: null, - archived: false, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', + archived: false, trashed: false, trashedAt: null, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', relationships: {}, icon: null, color: null, order: 0, }, { path: '/vault/type/person.md', filename: 'person.md', title: 'Person', isA: 'Type', aliases: [], belongsTo: [], relatedTo: [], status: null, owner: null, cadence: null, - archived: false, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', + archived: false, trashed: false, trashedAt: null, modifiedAt: 1700000000, createdAt: null, fileSize: 200, snippet: '', relationships: {}, icon: null, color: null, order: 1, }, ] diff --git a/src/components/TabBar.test.tsx b/src/components/TabBar.test.tsx index 06203147..713ea921 100644 --- a/src/components/TabBar.test.tsx +++ b/src/components/TabBar.test.tsx @@ -7,9 +7,9 @@ function makeEntry(path: string, title: string): VaultEntry { return { path, filename: `${title}.md`, title, isA: 'Note', aliases: [], belongsTo: [], relatedTo: [], - status: null, owner: null, cadence: null, archived: false, + status: null, owner: null, cadence: null, archived: false, trashed: false, trashedAt: null, modifiedAt: null, createdAt: null, fileSize: 0, - snippet: '', relationships: {}, icon: null, color: null, + snippet: '', relationships: {}, icon: null, color: null, order: null, } } diff --git a/src/mock-tauri.ts b/src/mock-tauri.ts index 385abd08..18b3a412 100644 --- a/src/mock-tauri.ts +++ b/src/mock-tauri.ts @@ -1438,6 +1438,7 @@ const MOCK_ENTRIES: VaultEntry[] = [ }, icon: null, color: null, + order: null, }, { path: '/Users/luca/Laputa/note/deprecated-api-notes.md', @@ -1462,6 +1463,7 @@ const MOCK_ENTRIES: VaultEntry[] = [ }, icon: null, color: null, + order: null, }, { path: '/Users/luca/Laputa/experiment/failed-seo-experiment.md', @@ -1487,6 +1489,7 @@ const MOCK_ENTRIES: VaultEntry[] = [ }, icon: null, color: null, + order: null, }, // --- Archived entries --- {