Skip to content

[RSM] Add AI title and summary fields to bookmark model and sync#5282

Open
sztomek wants to merge 2 commits into
mainfrom
feat/smart-bookmarks-model
Open

[RSM] Add AI title and summary fields to bookmark model and sync#5282
sztomek wants to merge 2 commits into
mainfrom
feat/smart-bookmarks-model

Conversation

@sztomek
Copy link
Copy Markdown
Contributor

@sztomek sztomek commented May 8, 2026

Description

This PR lays the groundwork for the smart bookmarks feature (phcsdm-1j8-p2)
It extends our existing models and database schemes so we could accomodate the changes later.

Testing Instructions

Just review the code pls.

Checklist

  • If this is a user-facing change, I have added an entry in CHANGELOG.md
  • Ensure the linter passes (./gradlew spotlessApply to automatically apply formatting/linting)
  • I have considered whether it makes sense to add tests for my changes
  • All strings that need to be localized are in modules/services/localization/src/main/res/values/strings.xml
  • Any jetpack compose components I added or changed are covered by compose previews
  • I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed analytics.

@sztomek sztomek added this to the 8.12 milestone May 8, 2026
@sztomek sztomek requested a review from a team as a code owner May 8, 2026 11:50
@sztomek sztomek requested review from MiSikora and Copilot and removed request for a team May 8, 2026 11:50
@sztomek sztomek added [Type] Feature Adding a new feature. [Area] Bookmarks labels May 8, 2026
@dangermattic
Copy link
Copy Markdown
Collaborator

dangermattic commented May 8, 2026

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR lays groundwork for “smart bookmarks” by extending the bookmark model, protobuf sync payload, and Room schema to carry AI-generated title/summary metadata (plus modified timestamps) so it can be stored locally and propagated via sync.

Changes:

  • Add aiTitle / aiSummary and corresponding *_modified fields to the Bookmark entity.
  • Extend SyncUserBookmark protobuf and update bookmark incremental sync mapping to upload/download these fields.
  • Bump Room DB version to 128 and add a 127 → 128 migration plus exported schema.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/sync/data/BookmarkSync.kt Upload/download AI fields for incremental bookmark sync payloads.
modules/services/protobuf/src/main/proto/sync_api.proto Add ai_title / ai_summary and modified timestamps to SyncUserBookmark.
modules/services/model/src/main/java/au/com/shiftyjelly/pocketcasts/models/entity/Bookmark.kt Persist AI title/summary + modified timestamps on the bookmark entity.
modules/services/model/src/main/java/au/com/shiftyjelly/pocketcasts/models/db/dao/BookmarkDao.kt Introduce DAO update method for AI bookmark data.
modules/services/model/src/main/java/au/com/shiftyjelly/pocketcasts/models/db/AppDatabase.kt Bump Room version and add migration adding new bookmark columns.
modules/services/model/schemas/au.com.shiftyjelly.pocketcasts.models.db.AppDatabase/128.json Export updated Room schema for version 128.

@wpmobilebot wpmobilebot modified the milestones: 8.12, 8.13 May 11, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

Version 8.12 has now entered code-freeze, so the milestone of this PR has been updated to 8.13.

Copilot AI review requested due to automatic review settings May 21, 2026 21:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

@sztomek sztomek force-pushed the feat/smart-bookmarks-model branch from 59f12fc to 532e747 Compare May 27, 2026 14:32
@wpmobilebot wpmobilebot modified the milestones: 8.13, 8.14 May 28, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

Version 8.13 has now entered code-freeze, so the milestone of this PR has been updated to 8.14.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants