feat(annotations): add bounded dashboard highlights route

Return a user-scoped highlights shelf while preserving the existing single-highlight endpoint. Align calendar dashboard figures with each reader's timezone and completed attempts.
This commit is contained in:
neon
2026-09-28 23:50:27 +00:00
parent a35e222cb2
commit 826584e5da
11 changed files with 902 additions and 230 deletions
+3
View File
@@ -191,6 +191,9 @@ export interface HighlightOfTheDayWidgetData {
createdAt: string;
}
/** Bounded Home shelf returned by GET /dashboard/widgets/highlights. */
export type HighlightsWidgetData = HighlightOfTheDayWidgetData[];
export type ChallengeType = "short-read" | "genre-explorer" | "finish-oldest" | "streak-builder" | "new-author" | "page-milestone";
export interface MonthlyChallengeWidgetData {