Skip to content

Add synced reading timer with focus and native background controls - #124

Merged
Eoic merged 6 commits into
developmentfrom
feat/reading-timer
Nov 6, 2026
Merged

Eoic merged 6 commits into
developmentfrom
feat/reading-timer

Conversation

@Eoic

@Eoic Eoic commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Readers can select any library book and track a stopwatch or countdown session from Library → Timer. Sessions persist offline, synchronize between signed-in devices, and contribute saved reading time to statistics and goals.

  • Add the digital clock and progress ring, stable responsive controls, single-column setup, optional page progress on valid saves, and focus mode. Countdown stops at its goal. Subsecond stops discard quietly without prompting.
  • Persist versioned timer transitions and atomic save transactions through the existing profile-scoped repositories and PowerSync.
  • Add Android ongoing notifications with pause/resume/finish and iPhone Live Activities (iOS 16.2+, interactive controls on iOS 17+). Native actions are durably journaled and replay through the same timer provider.
  • Show the eight most recent saved reading sessions beside the timer on wide screens and below it on narrow screens. Group paused intervals, omit reversals/completion-only entries, and fill the page to its padded bottom edge while honoring content alignment.
  • Apply shared mobile header scroll tint and correct grouped-session goal edits.

Validation:

  • Follow-up timer/history changes passed 39 focused widget tests and client quality checks. Rendered left/center desktop layouts and mobile history scrolling were inspected using synthetic test data.
  • Client formatting, analysis, and 17 web bootstrap tests passed.
  • Full Flutter suite passed with 2,170 tests and 19 skips in a clean checkout of commit 3055aed, after flutter pub get --enforce-lockfile with the committed Git-pinned reader dependency. The implementation checkout with the local reader override also passed.
  • Four native iOS XCTest cases passed. Android notification controls were exercised in the background and after process termination on an isolated emulator.
  • Android debug, iOS simulator, and web builds passed during implementation. Physical-device acceptance remains unverified.

Requires PapyrusReader/server#61 before client rollout. The opt-in live PowerSync integration test is included but is not counted as passed here. On iPhone, native actions update the Live Activity immediately, while PowerSync reconciliation can wait until the app next runs. APNs background updates are not included. Android distribution requires the Play Console special-use foreground-service declaration. See docs/TIMER_NOTIFICATIONS.md for native verification and platform limits.

No design-feedback files, screenshots, generated previews, build outputs, or local reader dependency overrides are included. The synthetic native test host is retained as a reproducible XCTest/emulator fixture.

Closes #123. Related requirements: FR-5_1 (PapyrusReader/docs#34), FR-5_3 (PapyrusReader/docs#36), and FR-6_3 (PapyrusReader/docs#39).

Copilot AI balanced review requested due to automatic review settings November 6, 2026 00:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T00:37:21.919026Z 3055aed PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Eoic
Eoic enabled auto-merge November 6, 2026 00:59
@Eoic
Eoic merged commit f8fd3b8 into development Nov 6, 2026
10 checks passed
@Eoic
Eoic deleted the feat/reading-timer branch November 6, 2026 01:04
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.

Add reading timer, focus mode, and native background controls

2 participants