feat: add books/pages metric toggle on reading activity chart
Allow switching between number of books and number of pages on the dashboard reading activity chart. Adds pages_read to the stats API response and a MetricToggle component alongside the existing PeriodToggle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -699,12 +699,14 @@ export type RecentlyReadItem = {
|
||||
export type MonthlyReading = {
|
||||
month: string;
|
||||
books_read: number;
|
||||
pages_read: number;
|
||||
};
|
||||
|
||||
export type UserMonthlyReading = {
|
||||
month: string;
|
||||
username: string;
|
||||
books_read: number;
|
||||
pages_read: number;
|
||||
};
|
||||
|
||||
export type JobTimePoint = {
|
||||
|
||||
Reference in New Issue
Block a user