feat(reader): add privacy-preserving reading insights#610
Open
d-oit wants to merge 2 commits into
Open
Conversation
Contributor
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 95 |
| Duplication | 8 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
🚀 Performance Report⚡ Startup & Interaction
🛠️ CI & Workflow
|
Implements Plan 102: Reading Insights feature with local-first active time tracking, coarse server sync, and UI display. - Add ReadingTimer with visibility/focus/idle detection - Add IndexedDB store for daily reading buckets - Add Zod schemas for insight DTOs - Add Worker routes for insight GET/sync - Add Turso migration for reading_insights table - Display insights in InfoPanel - Add tests for timer, routes, and UI integration - Add documentation in docs/reading-insights.md
3e9ccb5 to
a5a2176
Compare
Deploying do-epub-studio with
|
| Latest commit: |
3e04c47
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://36d7275c.do-epub-studio.pages.dev |
| Branch Preview URL: | https://docs-goap-missing-feature-ta.do-epub-studio.pages.dev |
- Remove unnecessary null coalescing on typed row fields - Refactor while(true) to use boolean flag - Replace 'as any' with proper AuthContext type - Add eslint-disable for Hono Response.json() type assertion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Plan 102: Reading Insights feature with local-first active time tracking, coarse server sync, and UI display.
What's New
Privacy-Preserving Active Reading Timer
Storage
readingInsightskeyed by[bookId, date]0004-reading-insights.sqlfor coarse per-book aggregatesAPI
GET /api/books/:bookId/insights— fetch user's insightsPOST /api/books/:bookId/insights/sync— sync local buckets (tenant-isolated)UI
Privacy Boundaries (per ADR-102)
Test Coverage
Related
plans/102-goap-missing-tasks-reading-insights-2026-06-19.mdplans/102-adr-reading-insights-privacy-boundaries.mddocs/reading-insights.md