diff --git a/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts b/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts index bcfd7d9da..b29c6d0a2 100644 --- a/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts +++ b/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts @@ -59,6 +59,7 @@ export type RuleField = | 'fileSize' | 'readStatus' | 'dateFinished' + | 'lastReadTime' | 'metadataScore' | 'moods' | 'tags'; @@ -110,6 +111,7 @@ const FIELD_CONFIGS: Record = { library: {label: 'Library'}, readStatus: {label: 'Read Status'}, dateFinished: {label: 'Date Finished', type: 'date'}, + lastReadTime: {label: 'Last Read Time', type: 'date'}, metadataScore: {label: 'Metadata Score', type: 'decimal', max: 100}, title: {label: 'Title'}, authors: {label: 'Authors'}, diff --git a/booklore-ui/src/app/features/magic-shelf/service/book-rule-evaluator.service.ts b/booklore-ui/src/app/features/magic-shelf/service/book-rule-evaluator.service.ts index c1744b547..bcc5d7bb3 100644 --- a/booklore-ui/src/app/features/magic-shelf/service/book-rule-evaluator.service.ts +++ b/booklore-ui/src/app/features/magic-shelf/service/book-rule-evaluator.service.ts @@ -220,6 +220,8 @@ export class BookRuleEvaluatorService { return book.metadata?.publishedDate ? new Date(book.metadata.publishedDate) : null; case 'dateFinished': return book.dateFinished ? new Date(book.dateFinished) : null; + case 'lastReadTime': + return book.lastReadTime ? new Date(book.lastReadTime) : null; case 'seriesName': return book.metadata?.seriesName?.toLowerCase() ?? null; case 'seriesNumber':