Skip to content

Track finished articles separately in reading stats - #116

Closed
hudsonhrh wants to merge 1 commit into
crosspoint-reader:mainfrom
hudsonhrh:feat/article-reading-stats
Closed

hudsonhrh wants to merge 1 commit into
crosspoint-reader:mainfrom
hudsonhrh:feat/article-reading-stats

Conversation

@hudsonhrh

@hudsonhrh hudsonhrh commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

A prototype in a personal fork of CrossInk v2.0.0-rc3 lets a reader mark an EPUB as an article. The prototype already shows separate book and article counts on the device. The existing CrossPoint Sync server accepts its stats uploads and keeps the combined completion count.

This PR explores an optional server and web dashboard extension for clients that send a breakdown. Firmware prototype in the personal fork

  • Accept a global breakdown of completed_books, completed_articles, and has_articles alongside the existing completed total. Clients can continue sending the original payload.
  • Store the optional is_article flag for each document on the uploading device. Reclassifying a finished title can move its completion between categories on the next upload.
  • Show Books finished and Articles finished on the web dashboard when an uploaded summary reports article use. Marking an unfinished EPUB can reveal an article count of zero.

Verification

  • Both server and frontend production builds succeeded.
  • On Node 24, all 483 frontend tests and 1,148 of 1,151 server tests passed. The three landing-page base-path failures also reproduce on upstream main at 25b5b73. All four focused stats API suites passed (28 tests).
  • Exercised the real HTTP endpoints with firmware-generated snapshots against upstream main and this branch. Both retained four total completions across a mark, retry and reversal. This branch also returned 4 books / 0 articles, then 3 / 1, then 4 / 0. The final split and document type survived a server restart on the same SQLite database.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant