Skip to content

feat: show saved notes in the Bible Reader - #511

Draft
abharms wants to merge 5 commits into
codex/YPE-6783-reader-save-notesfrom
codex/YPE-6784-reader-note-indicators
Draft

abharms wants to merge 5 commits into
codex/YPE-6783-reader-save-notesfrom
codex/YPE-6784-reader-note-indicators

Conversation

@abharms

@abharms abharms commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Show saved Notes on Reader verses and open all overlapping notes from each indicator. Cards show the exact passage, text, visibility, localized relative age and optional color. Standalone BibleTextView callers can handle indicator taps.

Stacked on #508. YPE-6784.

Remaining required fix — draft

A Notes collection denial clears only the current header/filter cache partition. Within the same mounted provider: load a private note in English, change locale to Spanish, receive a Notes 401 while the stored grant remains unchanged, then return to English with its new read held or failing with 503. The earlier English snapshot can reappear.

This is independently confirmed by source, not a live-service reproduction. Cancellation and clearing must cover the account's Notes entries across locale/version-filter partitions in the same authorization context. Bible preflight failures should remain scoped to their own query. Keep this PR draft until that case is fixed and verified.

Review scope

  • Complete paginated account/chapter/version reads, stale-response isolation and private-data clearing on access loss.
  • Accessible blue/neutral indicators, overlapping saved cards and synced localization keys.
  • Shared Notes/highlight refresh after successful create, color update/clear and delete. Edit/delete controls and tags remain deferred to YPE-6785.
  • Required query/auth notification plumbing, changeset and demo toggle. Tests extend PR508's existing refresh journey; three new stories cover read/display/standalone behavior, with no duplicate parent workflows.

Please treat a finding as blocking only when it identifies an unmet in-scope requirement or its required verification, a documented repository-standard violation in added or modified code, or a concrete regression or defect caused or worsened by this diff. Label other valid improvements as non-blocking follow-ups.

Verification

  • Full typecheck, lint and coverage suites passed: core 422, hooks 215, UI 672 tests; optional live tests remain skipped.
  • 18 Chromium Notes journeys passed; the scoped access journey was rerun after the CommonJS sharing adjustment. Core auth/storage tests and both CommonJS entry-load orders also passed.
  • Package builds, size budgets, tree-shaking, i18n parity and CI-script regression checks passed locally.
  • Independent Standards and Compatibility reviews cleared the final delta. Spec review and independent validation retain the draft issue above.

Live browser testing was completed before opening this PR:

Check Result
Private contiguous save with blue color New indicators and paint appeared without reload; exact range card persisted
Private gapped save without color Both endpoints marked; intervening verse's drawer excluded the gapped note
Multiple overlapping saved notes Correct individual cards, passages, visibility, ages and color dots
Keyboard, draft and dismissal Enter/Space, focus containment/restoration, hide/reveal saved cards, Cancel and discard
Chapter/version navigation and reload Notes stayed scoped and persisted; unrelated Bible version had no leaked notes
Layout and custom markers Light/dark and 375×812 viewport; scrollable drawer without horizontal overflow; host marker callback preserved
Cross-tab sign-out Open private drawer closed and all private cards/indicators disappeared

Exactly two approved private synthetic test notes were created. Controlled pagination, permission failures, superseded-response races, read-only mode and standalone callback payloads were tested with mocked browser journeys, separately from live manual checks.

Upstream issue

Passage-only saves with empty content are rejected by the Notes API. The API-side defect is confirmed and a fix is planned; its evidence remains documented in #508. Nonempty private saves and the new read/display flows worked against the live service.

@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ef9a4e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@youversion/platform-core Minor
@youversion/platform-react-hooks Minor
@youversion/platform-react-ui Minor
vite-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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