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
@@ -72,7 +72,7 @@ export class FolderGalleryController {
params: {
query: view.query.clone().setQuery({
folder: rawQuery.folder,
path: [...rawQuery.path, { id }],
path: [...rawQuery.path, { folder: item }],
}),
},
});
@@ -135,10 +135,9 @@ export class ThumbnailDetailsController {
: []),
];
// To avoid duplication, if the event already has a structured 'what' and a
// starttime, the title is omitted from the details.
const includeTitle =
!ViewItemClassifier.isEvent(item) || !item?.getWhat()?.length || !startTime;
// To avoid duplication, if the event has a starttime, the title is omitted
// from the details.
const includeTitle = !ViewItemClassifier.isEvent(item) || !startTime;
this._details = [
...(includeTitle && itemTitle
? [