Skip to content

feat(core): add Content Library video APIs (YPE-6573) - #488

Merged
abharms merged 14 commits into
feat/after-thanksgiving-mergefrom
codex/YPE-6573-content-library-core
Nov 24, 2026
Merged

abharms merged 14 commits into
feat/after-thanksgiving-mergefrom
codex/YPE-6573-content-library-core

Conversation

@abharms

@abharms abharms commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds Content Library video detail, organization playlists, dedicated video search, and ID-only video hits in unified search for YPE-6573. Targets the feat/after-thanksgiving-merge integration branch.

  • Resolve opaque video IDs from playlists or unified search through the detail client.
  • Support playlist field selection, pagination, language preferences, and ready-to-use thumbnail rendition URLs that preserve signed query bytes.
  • Preserve v3 compatibility: legacy Video has numeric IDs and optional references, inferred from its own Zod schema. New detail and dedicated search APIs use ContentLibraryVideo with string IDs and optional passage/publisher metadata.

Stable routes

Request Route
Video detail /v1/videos/{video_id}
Playlist collection /v1/organizations/{organization_id}/playlists
Playlist detail /v1/organizations/{organization_id}/playlists/{playlist_id}
Dedicated video search /v1/search-videos
Unified search, with any field selection /v1/search-unified

All Content Library requests now use stable /v1 routes. Unified search no longer splits routing by selected fields. The original supplied snapshot used an earlier dedicated video-search route; the current routing follows the updated direction and has been tested against the live stable endpoints. The pinned Swift and Kotlin rollout implementations remain comparison references rather than the source of the current React routing.

Response contract

Video resources preserve optional nullable passage_ids, organization_id, and references, alongside singular passage_id from earlier responses. The newer compiled-2.yaml attachment cited by the review was unavailable locally; its explicitly requested fields were added without claiming verification of the complete newer contract.

Video queries reuse the existing 100-grapheme search validator. Optional user_intent and search_instead_for may be omitted or null; normalized output omits absent intent and uses a null correction. Result arrays remain required. Thumbnail URLs remain strings, including relative and protocol-relative values, without inventing a base URL.

Video search deliberately rejects undocumented HTTP 204, unlike Swift/Kotlin; the changeset names this choice. Playlist 204 or a genuinely empty body returns an empty collection, while malformed nonempty payloads reject. Optional video metadata may be absent or null, and playback arrays may be empty.

VideosClient uses camelCase options throughout: acceptLanguage, pageSize, pageToken, and thumbnailSize. API query and collection-response names remain unchanged. Null input cursors mean the first page and are omitted; empty string cursors stay unchanged.

Playlist requests explicitly default to English for YPE-6461 while honoring caller preferences. Dedicated search defaults to English per the search API; detail preserves runtime language defaults. Wildcard page size remains explicit and requires 1–3 selected fields. IDs and tokens stay opaque, and thumbnail rendition handling preserves signed query bytes.

Unified search results always include an enumerable videos array, including [] when no videos are returned. Serialized results, exact snapshots, and keyof SearchUnifiedResponse gain this key. Existing hook overrides may omit it. Explicit video selection is available through core SearchClient; useUnifiedSearch retains verse/topic/image selections. Use SearchUnifiedOptions or UseUnifiedSearchProps for options shared with that hook.

Dedicated video search accepts organizationIds: [] as unfiltered, equivalent to omitting the option. The environment template and setup guide now document the optional video-smoke organization ID.

Validation

  • Stable-route regression suites passed: 369 core, 200 hooks, and 622 UI tests (1,191 total); three optional live tests skipped. UI ran with two workers.
  • Forced builds of core, hooks, and UI, package typechecks, lint, and commit hooks passed.
  • A strict TypeScript consumer confirmed compatibility between the previous and schema-inferred legacy Video types.
  • Contract workflows cover stable routing for every field selection, video-only and mixed unified selections, playlist/search ID lookup, thumbnail rendition handling, nullable metadata, missing required fields, pagination, and HTTP errors.
  • SearchClient bundles no longer include playlist validation schemas. An earlier measurement at c748d1f reduced the same minified browser/ESM fixture from 13,052 to 12,739 gzip bytes (313 bytes, about 2.4% smaller). The current control-backed tree-shaking check passed and guards that separation.
  • Review regression workflows cover passage/publisher/reference preservation in both clients, grapheme queries, relative thumbnail siblings, omitted optional metadata, camelCase options, and null input cursors.
  • Changeset included. This ticket adds no UI.

Live deployment evidence

Live checks on November 24, 2026 used the saved development App Key against api.youversion.com and the rebuilt stable-route SDK now committed as 521cd0e. These checks supersede the earlier rollout-route observations.

  • Both /v1/search-videos and /v1/search-unified selecting videos returned populated results for “Bible,” “Jesus,” and “What Is The Bible?” Unified search returned 3, 9, and 12 video hits respectively. The first video ID from each search resolved through /v1/videos/{video_id} and passed SDK validation.
  • English playlist pagination completed across 9 pages of 2 playlists: 18 unique playlists, without duplicates. Stable playlist detail and video detail requests passed response validation.
  • Spanish and Portuguese requests returned localized playlists and video details, including matching video language tags.
  • The card thumbnail, both HLS playback sources (master/variant manifests and sampled media segments, plus initialization data where applicable), and the MP4 preview returned by stable video detail were accessible without the App Key. Media responses allowed cross-origin access. Full player playback was not tested.

Accepted dedicated search pagination behavior

The deployed /v1/search-videos endpoint can return an empty videos array with a non-null next_page_token; following that token can return more videos. All three tested search terms produced empty pages with continuation tokens. For “Jesus” with page_size=5, direct HTTP requests returned 4, 1, 0, and 3 videos on the first four pages.

The SDK forwards opaque cursors unchanged and preserves the response's video array and continuation token. Direct stable-route HTTP requests reproduced the same behavior independently of the SDK. Consumers must not treat an empty video array as the end of pagination; a null or absent continuation token indicates completion. The response supplies no total result count.

A bounded SDK check followed 30 pages for “Jesus” at page size 5, returning 17 unique videos without duplicates and 20 empty pages. A continuation token remained after page 30, so eventual termination was not verified.

We accept this service behavior and retain the current pagination implementation. Any needed change will be handled in a follow-up after clarification or a service contract change.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds Content Library video details, organization playlists, dedicated video search, and video IDs in unified search. The latest update moves all Content Library requests to stable /v1 routes.

  • Callers can browse playlists and load full video details by ID.
  • Video search returns full records and keeps paging tokens.
  • Unified search can return video IDs beside its other results.

No new actionable issues found.

Reviews (21) · Last reviewed commit: "fix(core): use stable Content Library ro..." · Reviewed by Greptile

@changeset-bot

changeset-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 521cd0e

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T18:20:13.850512Z 521cd0e New commits
ℹ️ 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.

@abharms abharms changed the title YPE-6573: Add Content Library video APIs to core feat(core): add Content Library video APIs (YPE-6573) Nov 19, 2026
Comment thread packages/core/src/videos.ts Resolved

@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: 67e87ea39f

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

Comment thread packages/core/src/videos.ts Resolved
Comment thread packages/core/src/videos.ts Resolved
@abharms abharms self-assigned this Nov 19, 2026
@abharms
abharms marked this pull request as draft November 19, 2026 20:03
Comment thread packages/core/src/schemas/video.ts Resolved
@abharms
abharms changed the base branch from main to codex/content-library November 23, 2026 17:31
@abharms
abharms marked this pull request as ready for review November 23, 2026 18:16
@abharms

abharms commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@cameronapak cameronapak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

YPE-6573

Summary

Standards: 0 must-fix. Spec: 1 must-fix. Video detail and dedicated video search silently drop passage and publisher metadata from the reviewed OpenAPI contract.

Review evidence
  • Scope: reviewed head 2c6a27e, against feature/content-library-apis. Checked the ticket, prior review threads, and the supplied Transformers OpenAPI response schemas.
  • Public client check: mocked HTTP 200 responses with two passage_ids and a publisher organization_id. Both VideosClient.getVideo and SearchClient.searchVideos returned the ID and playback arrays but discarded both fields.
  • Focused checks: vitest run src/__tests__/{client,search-unified,search-videos,videos}.test.ts from packages/core: 35 passed. The existing fixtures do not exercise these fields. CI build, lint, typecheck, and tests passed at the reviewed head.
  • Limits: the supplied compiled-2.yaml differs from the snapshot pinned in the PR. It documents stable /v1; this review does not establish what a populated live /v1-beta response contains. If beta is the intended shipping contract and differs, please pin and verify that contract explicitly.
  • Event: REQUEST_CHANGES.

Written by Code Reviewer bot on behalf of Cam.

@bmanquen bmanquen left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

1 blocking issue inline.

Comment thread packages/core/src/search-videos.ts Resolved
Comment thread packages/core/src/schemas/video.ts Resolved
Comment thread packages/core/src/videos.ts Resolved
Comment thread packages/core/src/videos.ts Resolved
@abharms
abharms changed the base branch from feature/content-library-apis to feat/after-thanksgiving-merge November 24, 2026 17:44

@cameronapak cameronapak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

YPE-6573

Summary

Standards: 0 must-fix. Spec: 1 must-fix. The remaining /v1-beta requests conflict with Cam's clarified requirement that this ship without beta endpoints. Removing beta wording alone does not address the routing.

Review evidence
  • Scope: routing follow-up at head 4bc5e8b, prompted by Cam's clarification. This supersedes the earlier acceptance of beta routing as a rollout exception.
  • Source trace: video detail, playlist collection/detail, dedicated video search, and unified search explicitly selecting videos still use /v1-beta. Other unified selections use /v1. Existing mocks assert those routes. Public JSDoc, the README, changeset, testing guide and PR description still describe beta access or rollout.
  • Contract evidence: the supplied compiled-2.yaml documents /v1 video, playlist and search endpoints. Cam expects videos to be live there, but expressed uncertainty about deployment. This review treats /v1-only shipping as the requirement, not populated production compatibility as a verified fact.
  • Deployment limit: the implementation worker reported HTTP 200 with no video hits on /v1 search, 204 on the sampled playlist collection, and 404 on sampled details; the same key received 401 on /v1-beta. Those probes do not establish populated /v1 compatibility or prove that /v1 is unavailable. Confirm with a catalog-authorized key or the API owner before shipping. No new live calls or tests were run for this scoped follow-up.
  • Checks: current PR build, lint, typecheck, test and browser integration checks report success. The earlier metadata-preservation fix remains present.
  • Event: REQUEST_CHANGES.

Written by Code Reviewer bot on behalf of Cam.

Comment thread packages/core/src/videos.ts Outdated

export type { GetPlaylistOptions, GetPlaylistsOptions, GetVideoOptions };

const VIDEOS_PATH = '/v1-beta/videos';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue: Ship these requests on /v1, not /v1-beta. Cam clarified that we cannot use beta endpoints anymore; changing the wording alone would leave the SDK calling them.

For Agents: migrate the video request routes

This constant sends video detail to /v1-beta/videos. The same routing remains in playlist collection/detail in this file, dedicated search in search-videos.ts, and the video-selection branch in search-unified.ts. Use the corresponding /v1 routes, update the route assertions and remove the obsolete beta-access/rollout wording in public JSDoc, README, changeset, testing guidance and the PR description. Unified search should no longer switch API versions when videos are selected.

Cam believes videos are live on /v1, and the supplied OpenAPI documents those routes. Populated production compatibility is still unverified: the worker's stable-route probes returned empty search results, 204 playlists or sampled 404 details, while its key received 401 on beta. Those results are inconclusive, not proof that beta remains the shipping route. Confirm the /v1 playlist/search-to-detail workflow with an authorized catalog key or the API owner; surface a deployment blocker if necessary rather than retaining /v1-beta as a workaround. This new shipping requirement supersedes the earlier accepted rollout exception.

Written by Code Reviewer bot on behalf of Cam.

title: 'La historia',
description: null,
passage_id: 'JHN.3.16',
passage_ids: ['JHN.3.16', 'ROM.8.28'],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

praise: Asserting both passages and the publisher UUID directly guards against the silent metadata loss from the earlier review.

For Agents: retain the metadata regression coverage

The exact public-client result includes two passage_ids, organization_id, and references. Keep these assertions when updating the route mocks so endpoint migration does not weaken the response-preservation checks.

Written by Code Reviewer bot on behalf of Cam.

@cameronapak cameronapak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

YPE-6573

Summary

Standards: 0 must-fix. Spec: 0 must-fix. Primary concern: none. The routing finding is fixed: video detail, playlists, dedicated search and unified search now use /v1. The earlier metadata-preservation fix remains intact.

Review evidence
  • Scope: head 521cd0e, concentrating on the delta from 4bc5e8b and transitively affected clients, schemas, callers and tests. Re-read review discussions, including resolved context. Independent Standards, Spec and Correctness source reviews found no substantiated new blocker.
  • Routing and contract: all five request surfaces use documented /v1 endpoints. Unified routing is unconditional. No beta routes or product labels remain in core source, emitted JavaScript/declarations, README or changeset; remaining testing-guide references are historical. Route mocks retain exact resource, metadata, language, cursor and error assertions.
  • Coordinator-run checks in an isolated archive of this exact head: YVP_APP_KEY=test-app ./node_modules/.bin/vitest run src/__tests__/{client,search-unified,search-videos,videos}.test.ts passed 38 tests. The full core suite passed 369 tests with 3 optional live tests skipped. Core tsc --noEmit, tsup, tsc -p tsconfig.build.json and git diff --check passed.
  • Compatibility: legacy numeric Video.id, existing hook field selections, optional hook-override videos, request serialization, localization and HTTP error handling are preserved. Removing the obsolete routing branch needs no new abstraction or dependency.
  • Deployment limit: populated stable search-to-detail, playlist-to-detail, localized resources and media checks are now documented by the author. Those live checks were not independently rerun here; full playback and eventual pagination termination remain unverified. Empty search pages with continuation tokens remain explicitly accepted behavior.
  • CI: build, lint, typecheck, test and browser checks passed. An older signoff job failed after its preview was cancelled; a later run and the current major-release-signoff status succeed. No new code finding arises from that superseded run.
  • Event: APPROVE.

Written by Code Reviewer bot on behalf of Cam.

);

for (const fields of [['videos'], ['verses', 'videos']] as const) {
expectedFields = fields;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

praise: Covering both video-only and mixed searches, then resolving the returned ID through stable detail, guards against a partial route migration.

For Agents: stable search-to-detail coverage

This workflow requires /v1/search-unified for both field selections and /v1/videos for detail while retaining the exact ID-only search-result assertions. The implementation also removes the field-dependent route branch rather than keeping a dormant beta path.

Written by Code Reviewer bot on behalf of Cam.

@abharms
abharms merged commit e709a07 into feat/after-thanksgiving-merge Nov 24, 2026
54 of 56 checks passed
@abharms
abharms deleted the codex/YPE-6573-content-library-core branch November 24, 2026 19:40
cameronapak added a commit that referenced this pull request Nov 30, 2026
* chore: sync react localization from platform-localization (#478)

chore: sync react localization

Co-authored-by: camrun91 <16566029+camrun91@users.noreply.github.com>

* fix(core): sanitize planted footnote content in Bible HTML (#486)

* fix(core): sanitize planted footnote content in Bible HTML

Co-Authored-By: Cameron Pak <cameronandrewpak@gmail.com>

* fix(core): address review on footnote sanitization

Sanitize footnote content in an inert template, drop non-HTML-namespace
elements, sanitize generated footnote content for idempotency, document the
sanitization contract, and consolidate tests.

Co-Authored-By: Cameron Pak <cameronandrewpak@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* refactor(ui): organize Bible reader modules (#489)

* refactor(ui): organize Bible reader modules (YPE-6808)

* refactor(ui): extract reader settings lifecycle and toolbar (#495)

* refactor(ui): extract reader settings lifecycle and toolbar (YPE-6815)

* fix(ui): address reader settings review feedback

* feat(ui): re-export passage and versions hooks (#500)

* feat(ui): re-export passage and versions hooks

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

* chore(ci): remove packed UI consumer check

* docs(ui): clarify shared provider import guidance

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

* docs: address hook re-export review nits

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

---------

Co-authored-by: Amp <amp@ampcode.com>

* fix(ui): preserve focus at high zoom (#485)

* fix(ui): preserve focus at high zoom

* fix(ui): harden zoom focus coverage

* refactor(ui): simplify zoom focus handling

* test(ui): cover zoom focus behavior

* test(ui): focus reader close before asserting

* fix(ui): address zoom review findings

* test(ui): compare pointer focus styles

* test(ui): respect focus-visible heuristics

* test(ui): use native focus traversal

* fix(ui): scope focus preservation

* fix(ui): preserve sign-in focus contrast

* test(ui): await close focus transition

* refactor(ui): centralize picker scroll geometry

* fix(ui): keep picker focus visible in constrained panels

* fix(ui): preserve the expanded book trigger in compact panels

* test(ui): reach reader settings close with native keys

* fix(ui): honor reduced motion in chapter reveal

* fix(ui): address focus and scroll review feedback

* fix(ui): reveal focused chapters in Firefox

Keep focused book triggers fully visible within the built-in accordion on Linux Firefox. Wait for the settings dialog opening animation before asserting visibility in WebKit.

* test(ui): query the current settings dialog while opening

* feat(core): add Content Library video APIs (YPE-6573) (#488)

* feat(core): add content library video APIs

* refactor(core): simplify video schema ownership

* fix(core): harden content library contracts

* fix(core): validate video response boundaries

* fix(core): distinguish no-content responses

* fix(core): scope no-content status handling

* fix(core): distinguish empty response bodies

* test(core): isolate Content Library smoke coverage

* feat(core): keep content library APIs compatible with v3

* fix(core): align content library rollout contracts (YPE-6573)

* fix(core): accept empty video filters and trim search bundles (YPE-6573)

* fix(core): address content library review feedback (YPE-6573)

* docs(core): clarify video APIs and live validation (YPE-6573)

* fix(core): use stable Content Library routes (YPE-6573)

* feat(core): add Notes API client (#497)

* feat(core): add Notes API client

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* fix(core): address Notes API review feedback

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* fix(core): normalize Notes write colors

* fix(core): address Notes API contract review

* fix(core): enforce Notes version filters and tolerate malformed passages

* fix(core): isolate malformed Notes list records

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* chore: refresh combined core bundle budget

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

---------

Co-authored-by: Amp <amp@ampcode.com>

* fix(ui): preserve newer selection after native Share (YPE-6812) (#494)

* fix(ui): label reader sign-in menu trigger (YPE-6810) (#492)

* fix(ui): label reader sign-in menu trigger (YPE-6810)

* test(ui): capture Linux WebKit dialog visibility failures

* test(ui): stress WebKit visibility diagnostics

* test(ui): check settings visibility after keyboard focus

Assert dialog opening state after Enter and visibility on the Close button after native Tab, alongside the focus-ring checks. Remove temporary WebKit diagnostics and repeated CI groups.

* fix(ui): handle reader clipboard failures (#490)

* fix(ui): handle reader clipboard failures (YPE-6809)

* fix(ui): report clipboard failures and retry failed shares

* fix(ui): keep clipboard warnings visible while scrolling

* fix(ui): ignore stale clipboard action results

* fix(ui): support Bible reader interactions in iframes (YPE-6410) (#491)

* fix(ui): retain iframe verse selection and anchors (YPE-6410)

* test(ui): cover iframe highlight painting and reset

* fix(ui): complete iframe reader text and focus handling

* fix(ui): handle reader host callback exceptions (YPE-6811) (#493)

* chore(ui): align declaration build with strict checks (YPE-6464) (#503)

chore(ui): align declaration build with strict checks

Refs: YPE-6464

* chore: enable additional TypeScript safety checks (#505)

* chore(ui): align declaration build with strict checks

Refs: YPE-6464

* chore: enable additional TypeScript safety checks

Refs: YPE-6832

* feat(ui): customize verse actions and indicators (#506)

* feat(ui): customize verse actions and indicators

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* test(ui): wait for verse layout in browser journeys

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): keep configured verse actions reachable

Make exiting actions inert and keep the visible verse indicator inside its pointer target.

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): keep verse callbacks scoped to the displayed passage

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): preserve verse action focus and warning visibility

Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): restore focus after rejected verse action dismissal

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

---------

Signed-off-by: Austin <abharms@gmail.com>

* test(ui): wait for host isolation colors to settle

Amp-Thread-ID: https://ampcode.com/threads/T-01a22d50-d764-7577-a16d-dcc6f7081eba

* fix(core): address Notes and serializer review feedback

Amp-Thread-ID: https://ampcode.com/threads/T-01a22d5e-80f8-71c4-80b9-80b0e2702720

* fix(ui): preserve failed verse actions and guard browser stories

Keep built-in Copy and Share fallback retryable until copying succeeds, and ignore stale clipboard completions after selection changes. Restrict chapter-picker native keyboard helpers to Vitest browser runs.

Amp-Thread-ID: https://ampcode.com/threads/T-01a22d5e-80f8-71c4-80b9-80b0e2702720

* fix(ui): invalidate verse actions on prompt takeover and unmount

Amp-Thread-ID: https://ampcode.com/threads/T-01a22d5e-80f8-71c4-80b9-80b0e2702720

---------

Signed-off-by: Austin <abharms@gmail.com>
Co-authored-by: platform-localization-pr-bot[bot] <294853593+platform-localization-pr-bot[bot]@users.noreply.github.com>
Co-authored-by: camrun91 <16566029+camrun91@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Austin <abharms@gmail.com>
Co-authored-by: Amp <amp@ampcode.com>
abharms added a commit that referenced this pull request Dec 2, 2026
* chore: sync react localization from platform-localization (#478)

chore: sync react localization

Co-authored-by: camrun91 <16566029+camrun91@users.noreply.github.com>

* fix(core): sanitize planted footnote content in Bible HTML (#486)

* fix(core): sanitize planted footnote content in Bible HTML

Co-Authored-By: Cameron Pak <cameronandrewpak@gmail.com>

* fix(core): address review on footnote sanitization

Sanitize footnote content in an inert template, drop non-HTML-namespace
elements, sanitize generated footnote content for idempotency, document the
sanitization contract, and consolidate tests.

Co-Authored-By: Cameron Pak <cameronandrewpak@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* refactor(ui): organize Bible reader modules (#489)

* refactor(ui): organize Bible reader modules (YPE-6808)

* refactor(ui): extract reader settings lifecycle and toolbar (#495)

* refactor(ui): extract reader settings lifecycle and toolbar (YPE-6815)

* fix(ui): address reader settings review feedback

* feat(ui): re-export passage and versions hooks (#500)

* feat(ui): re-export passage and versions hooks

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

* chore(ci): remove packed UI consumer check

* docs(ui): clarify shared provider import guidance

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

* docs: address hook re-export review nits

Amp-Thread-ID: https://ampcode.com/threads/T-01a20e73-4446-71f0-950a-3054df5492c7

---------

Co-authored-by: Amp <amp@ampcode.com>

* fix(ui): preserve focus at high zoom (#485)

* fix(ui): preserve focus at high zoom

* fix(ui): harden zoom focus coverage

* refactor(ui): simplify zoom focus handling

* test(ui): cover zoom focus behavior

* test(ui): focus reader close before asserting

* fix(ui): address zoom review findings

* test(ui): compare pointer focus styles

* test(ui): respect focus-visible heuristics

* test(ui): use native focus traversal

* fix(ui): scope focus preservation

* fix(ui): preserve sign-in focus contrast

* test(ui): await close focus transition

* refactor(ui): centralize picker scroll geometry

* fix(ui): keep picker focus visible in constrained panels

* fix(ui): preserve the expanded book trigger in compact panels

* test(ui): reach reader settings close with native keys

* fix(ui): honor reduced motion in chapter reveal

* fix(ui): address focus and scroll review feedback

* fix(ui): reveal focused chapters in Firefox

Keep focused book triggers fully visible within the built-in accordion on Linux Firefox. Wait for the settings dialog opening animation before asserting visibility in WebKit.

* test(ui): query the current settings dialog while opening

* feat(core): add Content Library video APIs (YPE-6573) (#488)

* feat(core): add content library video APIs

* refactor(core): simplify video schema ownership

* fix(core): harden content library contracts

* fix(core): validate video response boundaries

* fix(core): distinguish no-content responses

* fix(core): scope no-content status handling

* fix(core): distinguish empty response bodies

* test(core): isolate Content Library smoke coverage

* feat(core): keep content library APIs compatible with v3

* fix(core): align content library rollout contracts (YPE-6573)

* fix(core): accept empty video filters and trim search bundles (YPE-6573)

* fix(core): address content library review feedback (YPE-6573)

* docs(core): clarify video APIs and live validation (YPE-6573)

* fix(core): use stable Content Library routes (YPE-6573)

* feat(core): add Notes API client (#497)

* feat(core): add Notes API client

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* fix(core): address Notes API review feedback

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* fix(core): normalize Notes write colors

* fix(core): address Notes API contract review

* fix(core): enforce Notes version filters and tolerate malformed passages

* fix(core): isolate malformed Notes list records

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

* chore: refresh combined core bundle budget

Amp-Thread-ID: https://ampcode.com/threads/T-01a2095d-25a9-72c5-a0fb-baa79c35e05a

---------

Co-authored-by: Amp <amp@ampcode.com>

* fix(ui): preserve newer selection after native Share (YPE-6812) (#494)

* fix(ui): label reader sign-in menu trigger (YPE-6810) (#492)

* fix(ui): label reader sign-in menu trigger (YPE-6810)

* test(ui): capture Linux WebKit dialog visibility failures

* test(ui): stress WebKit visibility diagnostics

* test(ui): check settings visibility after keyboard focus

Assert dialog opening state after Enter and visibility on the Close button after native Tab, alongside the focus-ring checks. Remove temporary WebKit diagnostics and repeated CI groups.

* fix(ui): handle reader clipboard failures (#490)

* fix(ui): handle reader clipboard failures (YPE-6809)

* fix(ui): report clipboard failures and retry failed shares

* fix(ui): keep clipboard warnings visible while scrolling

* fix(ui): ignore stale clipboard action results

* fix(ui): support Bible reader interactions in iframes (YPE-6410) (#491)

* fix(ui): retain iframe verse selection and anchors (YPE-6410)

* test(ui): cover iframe highlight painting and reset

* fix(ui): complete iframe reader text and focus handling

* fix(ui): handle reader host callback exceptions (YPE-6811) (#493)

* chore(ui): align declaration build with strict checks (YPE-6464) (#503)

chore(ui): align declaration build with strict checks

Refs: YPE-6464

* chore: enable additional TypeScript safety checks (#505)

* chore(ui): align declaration build with strict checks

Refs: YPE-6464

* chore: enable additional TypeScript safety checks

Refs: YPE-6832

* feat(ui): customize verse actions and indicators (#506)

* feat(ui): customize verse actions and indicators

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* test(ui): wait for verse layout in browser journeys

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): keep configured verse actions reachable

Make exiting actions inert and keep the visible verse indicator inside its pointer target.

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): keep verse callbacks scoped to the displayed passage

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): preserve verse action focus and warning visibility

Signed-off-by: Austin <abharms@gmail.com>

* fix(ui): restore focus after rejected verse action dismissal

Refs: YPE-6782
Signed-off-by: Austin <abharms@gmail.com>

---------

Signed-off-by: Austin <abharms@gmail.com>

* feat(ui): add Reader note saving

Ref: YPE-6783

* fix: recover Reader Notes after interrupted authorization

Preserve the draft on browser Back and clean up a partially persisted automatic token refresh. Keep the composer within narrow viewports and simplify the shared action and highlight paths.

Ref: YPE-6783

* fix: preserve Reader Notes through authorization

Keep note handoffs bound to their initiating Reader and authorization attempt. Preserve focus, existing verse actions, and a recoverable draft across OAuth failures and navigation.

Ref: YPE-6783

* fix: preserve Reader sessions and highlight refresh

Keep OAuth recovery bound to the initiating draft and restore focus around the Notes composer. Refresh highlights for the passage on screen and preserve existing host sign-in behavior.

Ref: YPE-6783

* fix: preserve Reader draft recovery and auth compatibility

Keep host-controlled toolbar scopes, restore legacy startup token rotation, and retain the captured draft through a verified failed callback. Verify the workflow with isolated browser fixtures and native Safari.

Ref: YPE-6783

* fix: preserve Reader auth and passage ownership

Keep verified legacy auth tokens available, discard drafts for ended sessions, restore selection during host takeover, and gate highlight writes to the rendered passage.

Ref: YPE-6783

* fix: preserve Reader drafts and OAuth attempt ownership

Retain clean-canceled drafts across navigation, allow matching-chapter highlight intents, and keep verified auth state bound to its active account and handoff.

Ref: YPE-6783

* fix: isolate Reader authorization handoffs

Resume Notes on the verified configured callback, supersede an older pending highlight action, and keep account-bound requests and drafts tied to the right session. Preserve standalone swatch outlines under host styling.

Ref: YPE-6783

* fix: recover Reader note edits after a lost response

Retry the original create payload, then reconcile the current draft against the recovered note ID using the verified writer token. Keep that ID and draft after a failed update.

Ref: YPE-6783

* fix: retry Notes writes after definite rejections

Allow corrected create fields and retain known blank content after a definitive HTTP rejection, while preserving recovery from earlier uncertain writes.

Ref: YPE-6783

* fix: retry corrected Notes payloads after a 413

Release an unresolved create payload after a size rejection. Retain the request UUID and preserve recovery when the note ID is already known.

Ref: YPE-6783

* fix(ui): preload destination highlights (YPE-6783)

* docs: clarify legacy auth recovery (YPE-6783)

* test(ui): await destination passage before save refresh (YPE-6783)

* test(ui): await settled highlight colors (YPE-6783)

* chore: sync react localization

* fix(ui): announce note highlight color names

* fix(ci): verify imported localization provenance

* fix(ui): expose action labels and record Notes QA evidence

* chore: remove pilot reports and obsolete localization support

Keep QA evidence in Jira, the PR, and BrowserStack. Restore the main localization ownership policy and remove superseded sync changesets now that PR507 is merged. SDK implementation and locale catalogs are unchanged.

* fix: harden Reader Notes authorization and integration

* fix: refresh OAuth tree-shaking sentinel

* refactor: narrow reader notes auth and test scope

* test: remove redundant notes browser scenarios

* refactor: reuse oauth cleanup and reader scope checks

* fix(ui): align notes composer with save design

* test(ui): wait for clipboard retry action visibility

* fix(ui): accept normalized note save responses

Reconcile current draft fields against the original submitted fields rather than the API response. Trust validated successful updates while retaining the resource-ID check. Existing Notes journeys cover trimmed update content and normalized create line endings.

* fix(ui): preserve verse action compatibility for notes

Keep the published built-in action union and explicit custom action lists unchanged. Save remains in the default actions, so Notes can ship as a minor addition. Preserve both sample demonstrations with a default/custom action toggle.

* fix(ui): recover note drafts after validation rejections

* chore: sync react localization

* fix(ui): name the note visibility selector accessibly

* chore(demo): remove preloaded verse marker

* fix(ui): toggle note visibility directly

* docs(demo): update verse marker smoke instructions

* fix(ui): align reader notes actions and authorization

* test(ui): wait for custom action popover visibility

---------

Signed-off-by: Austin <abharms@gmail.com>
Co-authored-by: platform-localization-pr-bot[bot] <294853593+platform-localization-pr-bot[bot]@users.noreply.github.com>
Co-authored-by: camrun91 <16566029+camrun91@users.noreply.github.com>
Co-authored-by: Cameron Pak <cameronandrewpak@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: abharms <16394621+abharms@users.noreply.github.com>
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.

3 participants