Repository navigation
feat(vault): audio bookmarks for VaultPlayerScreen - #179
Conversation
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
|
Automated pipeline health check (2026-08-17): This PR has been sitting on Confirmed via Since this PR touches Generated by Claude Code |
27c2638 to
a49f052
Compare
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
|
Automated pipeline health check — corrected diagnosis, a new gap found (filed as #288): The 2026-08-17 20:35 UTC comment above correctly identified stale Root cause: this PR's body never contains a bare Net effect: relabeling Generated by Claude Code |
|
This PR's branch is stale relative to |
Wires VaultPlayerViewModel/VaultPlayerScreen up to VaultStore's existing addBookmark/removeBookmark/updateBookmarkNote, mirroring feature:player's "ms:N" positionRef convention and VaultReaderViewModel's store-backed bookmark wiring. Extends VaultBookmarksSheet's label/sort formatting to handle "ms:N" refs so it can be reused as-is for audio. Closes #177
a49f052 to
5afdd83
Compare
|
Root-caused why this sat silent on |
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
QA verification — PR #179 vs issue #177Acceptance criteria (issue #177):
What I ran:
Test-quality check: Regressions / related areas: AGENTS.md conventions: New/changed behavior has unit test coverage (required for non-trivial changes); no hardcoded versions; commit message follows Conventional Commits ( No gaps found against the issue's checklist. QA verdict: PASS |
Principal review: PR #179Verdict: human-merge — Verified against ground truth (not just the PR description)
Findings (non-blocking, for the record)
No CONFIRMED findings. Routing to human-merge is purely the |
Summary
Adds bookmark support to
VaultPlayerScreen/VaultPlayerViewModel(vault-native audio playback), which was deliberately left out of the PR that added bookmarks/highlights to the vault-native EPUB/PDF reader (#171/#175).VaultPlayerViewModelnow holds aVaultStorereference (same pattern asVaultReaderViewModel), seeds abookmarks: StateFlow<List<VaultBookmark>>from the manifest entry on load, and exposesaddBookmark/removeBookmark/updateBookmarkNote/seekToBookmark.addBookmarkuses the"ms:N"positionRef conventionBookmark.positionRef/VaultBookmark.positionRefalready document for audio, fed fromuiState.positionMs(the same value the seek bar displays) rather than readingplayer.currentPositiondirectly — this keeps the write path testable without a real ExoPlayer, matching this file's existing "pre-playback paths only" JVM-test constraint.VaultPlayerScreengets the same add-bookmark/show-bookmarks icon pair asVaultReaderScreen, and reusesVaultBookmarksSheetunchanged in shape (localshowBookmarksSheetremembered state, same as the reader screen).VaultBookmarksSheet's sort key and label formatting gained an"ms:"branch (mm:ss / h:mm:ss, matchingfeature:player's own formatting) so unlabeled audio bookmarks sort and display correctly — previously they'd have sorted last and printed the raw"ms:12345"string.VaultBookmark.positionRef's doc comment incore/vaultstore/VaultManifest.ktto mention the"ms:N"convention.Risk callout
This touches
core/vaultstore/**, which is onagent-policy.yml'ssensitive_pathslist — it's a single-line doc-comment update (positionRefKDoc), no logic change, butclassify_pr_risk.pywill still forcerisk:highon this PR per policy. No new storage/schema work —VaultStore.addBookmark/removeBookmark/updateBookmarkNotealready existed and are unchanged.No new dependencies, no network calls.
Test plan
./gradlew :feature:vault:testDebugUnitTest— green, including newVaultPlayerViewModelTestbookmark cases (add/remove/update-note via the store-only "unknown fileId" pre-playback path,seekToBookmarkms-parsing) and a newVaultBookmarksSheetUiTestcase for the"ms:"label../gradlew :core:vaultstore:testDebugUnitTest— green (doc-comment-only change there).Closes #177.