feat: Add folder title matching and parsing (#2067)

This is a breaking change for users of the [experimental 'folder'
functionality](https://card.camera/#/configuration/folders).

Related: #1748
This commit is contained in:
Dermot Duffy
2025-05-27 07:50:51 -07:00
committed by GitHub
parent c4400194f5
commit c077f8bf70
35 changed files with 1038 additions and 378 deletions
@@ -161,7 +161,7 @@ describe('FolderGalleryController', () => {
}),
query: new FolderViewQuery({
folder,
path: [{ id: 'grandparent' }],
path: [{ ha: { id: 'grandparent' } }],
}),
});
@@ -182,7 +182,7 @@ describe('FolderGalleryController', () => {
expect(newQuery).toBeInstanceOf(FolderViewQuery);
expect(newQuery?.getQuery()).toEqual({
folder,
path: [{ id: 'grandparent' }, { id: folderItem.getID() }],
path: [{ ha: { id: 'grandparent' } }, { folder: folderItem }],
});
});
@@ -214,7 +214,7 @@ describe('FolderGalleryController', () => {
const view = createView({
query: new FolderViewQuery({
folder,
path: [{ id: 'id' }],
path: [{ ha: { id: 'id' } }],
}),
});
const viewManager = mock<ViewManagerInterface>();