Skip to content

feat(ui): edit and delete saved Reader notes - #523

Draft
abharms wants to merge 9 commits into
codex/YPE-6784-reader-note-indicatorsfrom
codex/YPE-6785-edit-delete-saved-notes
Draft

abharms wants to merge 9 commits into
codex/YPE-6784-reader-note-indicatorsfrom
codex/YPE-6785-edit-delete-saved-notes

Conversation

@abharms

@abharms abharms commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Saved note rows in the Bible Reader open the composer with the saved text, visibility, color, and full passage. An ordinary save sends only changed fields to the selected note, including an explicit color clear. After an uncertain PATCH, a retry can resend a reverted field to reconcile the server value. The composer keeps the draft available after a failed save or declined authorization.

The drawer confirms replacement, discard, and deletion. An earlier pending create stays recoverable when browsing a saved note or authorizing a deletion. Sign-out clears retained drafts even when another note prompt is open. Confirmed writes refresh notes, verse indicators, and chapter highlights while the current highlights stay visible during revalidation.

Review scope

Saved note editing and deletion in the verse indicator drawer, including authorization, confirmations, and refresh behavior. Tags and a standalone saved-notes screen are deferred. Empty replacement text remains unsupported by the Notes API.

Verification

  • Production workspace build and the sample-app Playwright smoke passed for the review fixes. The smoke covers native narrow-layout row selection, exact PATCH and DELETE requests, canceled authorization, and the read-only delete gate.
  • The focused Reader Notes journeys cover clearing the initiating verse selection after saving a wider note, preserving an earlier pending create through delete authorization, and retrying a lost DELETE before or after the server removes the note. They also check exact mutation requests and settled highlight paint during refresh.
  • Independent Standards, Spec, and Compatibility review covered the child changes. A final delta review verified the review fixes against the updated parent.
  • Workspace CI and Storybook CI track the updated head 4ae519f.
  • The linked Figma node was inaccessible. The existing React drawer, Modern Web Guidance, and the pinned Swift reference informed the web interaction. The automated browser journeys use mocked Notes HTTP and OAuth responses.
  • Manual Chrome verification against the live Notes API used one disposable private note on John 2:2. It persisted across reload and navigation. Editing to Unicode and multiline text and clearing blue removed the highlight while retaining the note indicator. Confirmed deletion removed the history row and marker while preserving the unsaved composer draft. After discarding that draft and reloading, neither the marker nor the highlight returned.
  • Manual interaction checks covered More without opening the editor, native text selection in a saved row, full gapped-passage metadata, disabled Save for an unchanged edit, and replacement confirmation. Canceling discard kept the draft. Escape canceled deletion and returned focus to Delete; at 393 × 600, canceling also restored the drawer scroll position. An offline save showed the generic error and kept the draft, which was then discarded. Live writes were limited to the disposable note. Exact payloads, OAuth changes, and delete-error recovery were verified with automated fixtures.

Stacked on #511 at dd8e802e, with main as the eventual integration branch. The child stays draft while the parent is open.

YPE-6785

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.

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4ae519f

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-react-ui Minor
@youversion/platform-react-hooks Minor
vite-react Patch
@youversion/platform-core Minor

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