Skip to content

Sync exact bookmark locations and annotation selections - #50

Merged
Eoic merged 2 commits into
developmentfrom
feature/reader-library-tools
Oct 26, 2026
Merged

Eoic merged 2 commits into
developmentfrom
feature/reader-library-tools

Conversation

@Eoic

@Eoic Eoic commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Bookmarks now retain exact EPUB/PDF reader locators through upload, storage and the PowerSync stream. Annotation locations accept validated text ranges or normalized PDF rectangles so the client can reopen and render highlights.

Adds nullable bookmarks.reader_locator JSONB in migration b9c0d1e2f345, validates finite coordinates and supported locator shapes, and preserves existing ownership, retry, atomicity and deletion behavior. Freehand notes continue to save without a location.

Validation: 42 focused tests passed, including migration upgrade/downgrade and bookmark preservation, upload ownership and retries, malformed locations and stream configuration. The changed annotation/freehand-note round-trip test and all 13 bookmark upload tests passed again after final review. Ruff and mypy passed.

Deploy the migration, API validation and updated PowerSync stream before the consuming client. No production migration or live cross-device sync test was performed.

Closes #49. Supports FR-3_4 and FR-4_1. Coordinated PRs: client#94 and reader#8.

Copilot AI balanced review requested due to automatic review settings October 26, 2026 19:37

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.

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 Oct 26, 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-10-26T19:39:24.001004Z 509578d 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 509578d985

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Eoic
Eoic merged commit 1bd37b3 into development Oct 26, 2026
2 checks passed
@Eoic
Eoic deleted the feature/reader-library-tools branch October 26, 2026 19:51
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.

Persist and validate exact reader locations for bookmarks and annotations

2 participants