feat(book): add highlights tab with filters, export, and pagination

This commit is contained in:
neon
2026-05-18 03:31:38 +00:00
parent e89f4ce0e4
commit 69f69febb2
23 changed files with 2141 additions and 7 deletions
+27
View File
@@ -0,0 +1,27 @@
export interface AnnotationItem {
id: number;
bookId: number;
cfi: string;
text: string;
color: string;
style: string;
note: string | null;
chapterTitle: string | null;
createdAt: string;
}
export interface AnnotationStats {
totalHighlights: number;
colorBreakdown: { color: string; count: number }[];
chaptersWithHighlights: number;
highlightsWithNotes: number;
chapters: string[];
}
export interface AnnotationListResponse {
items: AnnotationItem[];
total: number;
page: number;
pageSize: number;
stats: AnnotationStats;
}
+1
View File
@@ -37,3 +37,4 @@ export * from "./font";
export * from "./dictionary";
export * from "./achievement";
export * from "./reading-session";
export * from "./annotation";