Repository navigation
feat(core): add Content Library video APIs (YPE-6573) - #488
Conversation
🦋 Changeset detectedLatest commit: 521cd0e The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
@greptileai review |
cameronapak
left a comment
There was a problem hiding this comment.
Review
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, againstfeature/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_idsand a publisherorganization_id. BothVideosClient.getVideoandSearchClient.searchVideosreturned the ID and playback arrays but discarded both fields. - Focused checks:
vitest run src/__tests__/{client,search-unified,search-videos,videos}.test.tsfrompackages/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.yamldiffers from the snapshot pinned in the PR. It documents stable/v1; this review does not establish what a populated live/v1-betaresponse 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.
cameronapak
left a comment
There was a problem hiding this comment.
Review
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.yamldocuments/v1video, 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
/v1search, 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/v1compatibility or prove that/v1is 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.
|
|
||
| export type { GetPlaylistOptions, GetPlaylistsOptions, GetVideoOptions }; | ||
|
|
||
| const VIDEOS_PATH = '/v1-beta/videos'; |
There was a problem hiding this comment.
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 insearch-videos.ts, and the video-selection branch insearch-unified.ts. Use the corresponding/v1routes, 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/v1playlist/search-to-detail workflow with an authorized catalog key or the API owner; surface a deployment blocker if necessary rather than retaining/v1-betaas 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'], |
There was a problem hiding this comment.
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, andreferences. 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
left a comment
There was a problem hiding this comment.
Review
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 from4bc5e8band 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
/v1endpoints. 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.tspassed 38 tests. The full core suite passed 369 tests with 3 optional live tests skipped. Coretsc --noEmit,tsup,tsc -p tsconfig.build.jsonandgit diff --checkpassed. - 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-signoffstatus 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; |
There was a problem hiding this comment.
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-unifiedfor both field selections and/v1/videosfor 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.
e709a07
into
feat/after-thanksgiving-merge
* 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>
* 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>
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-mergeintegration branch.Videohas numeric IDs and optionalreferences, inferred from its own Zod schema. New detail and dedicated search APIs useContentLibraryVideowith string IDs and optional passage/publisher metadata.Stable routes
/v1/videos/{video_id}/v1/organizations/{organization_id}/playlists/v1/organizations/{organization_id}/playlists/{playlist_id}/v1/search-videos/v1/search-unifiedAll Content Library requests now use stable
/v1routes. 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, andreferences, alongside singularpassage_idfrom earlier responses. The newercompiled-2.yamlattachment 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_intentandsearch_instead_formay 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.
VideosClientuses camelCase options throughout:acceptLanguage,pageSize,pageToken, andthumbnailSize. 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
videosarray, including[]when no videos are returned. Serialized results, exact snapshots, andkeyof SearchUnifiedResponsegain this key. Existing hook overrides may omit it. Explicit video selection is available through coreSearchClient;useUnifiedSearchretains verse/topic/image selections. UseSearchUnifiedOptionsorUseUnifiedSearchPropsfor 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
Videotypes.c748d1freduced 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.Live deployment evidence
Live checks on November 24, 2026 used the saved development App Key against
api.youversion.comand the rebuilt stable-route SDK now committed as521cd0e. These checks supersede the earlier rollout-route observations./v1/search-videosand/v1/search-unifiedselectingvideosreturned 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.Accepted dedicated search pagination behavior
The deployed
/v1/search-videosendpoint can return an emptyvideosarray with a non-nullnext_page_token; following that token can return more videos. All three tested search terms produced empty pages with continuation tokens. For “Jesus” withpage_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.


Confidence 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
/v1routes.No new actionable issues found.
Reviews (21) · Last reviewed commit: "fix(core): use stable Content Library ro..." · Reviewed by Greptile