Skip to content

feat(ui): show copyright attribution on Verse of the Day (YPE-6850) - #518

Merged
cameronapak merged 5 commits into
mainfrom
ype-6850-votd-copyright
Dec 4, 2026
Merged

cameronapak merged 5 commits into
mainfrom
ype-6850-votd-copyright

Conversation

@cameronapak

@cameronapak cameronapak commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Closes YPE-6850.

New here? Start here

What's this? The Verse of the Day card shows a Bible verse but never said who holds the rights to that translation. This PR adds the Bible version's copyright text under the verse on every card size, following the Reader SDK design.

Why does it matter? Publishers license their translations on the condition that they're credited. The Bible Reader and Bible Card already show this text; Verse of the Day was the gap.

Who does it affect? Apps that embed <VerseOfTheDay />, and the people who read it. No props change.

What happens if we leave this as-is? The card keeps showing licensed Scripture without its required credit.

What changed

  • Every size (default, lg, and with the Bible App logo hidden) shows the copyright under the verse: 10px semibold, 1.2 line height, muted color, with the copyright's line breaks kept, matching Figma.
  • The text comes from core's getPassageAttribution, the same source BibleCard and BibleReader use: the copyright, or the promotional content when the copyright is empty. It's hidden while the card loads and when it fails.
  • LTR and RTL: the copyright takes the Scripture's direction, like the reference line, so it lines up with the verse it credits. Arabic Scripture in an LTR app aligns it right; English Scripture in an RTL app aligns it left. <bdi dir="auto"> keeps mixed-script copyrights in the right order.
  • Header lockup: the sun icon, the "Verse of the Day" eyebrow, and the reference form one lockup, as in Figma. The reference used to take the Scripture's direction for alignment, so with mixed directions it drifted to the far edge, away from the icon and eyebrow. It now aligns with the interface (the lockup), and only its text runs in the Scripture's direction through <bdi dir>. The eyebrow is a UI string, so it follows the app's language: English in an English app, "آية اليوم" in an Arabic one.
  • Stories: the new RtlInterfaceAndScripture story covers a fully Arabic card. All three RTL stories now check that the reference lines up with the eyebrow. The new RtlScriptureWithLtrInterface story checks an Arabic passage and copyright; RtlInterfaceWithLtrScripture now also checks the copyright direction; Minimal uses NIV (111) because the mock data has no entry for the default version, so it rendered no copyright.

Not in scope: the Figma large card also moves the reference under the verse and adds a "Full Chapter" button. Those aren't part of this ticket.

Before / after

Before After
VOTD card (default), 390px
VOTD card (lg), 390px
VOTD card, no icon/share/logo, 390px
Arabic app, Arabic Scripture, 390px
RTL Scripture in an LTR app, 390px
LTR Scripture in an RTL app, 390px

Desktop widths look the same as phone, just wider, so they're left out.

Testing

  • New unit tests: copyright shows on default and lg with the logo hidden (both fail on main), follows ltr and rtl Scripture direction, and is hidden on a passage error.
  • pnpm --filter @youversion/platform-react-ui test: 686 passed. Typecheck, oxlint, and prettier clean.
  • Storybook play tests for VerseOfTheDay in Chromium: 7 passed, including all three RTL stories and their lockup alignment checks.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no actionable new issues were found.

Summary

Adds Bible translation credit below the verse on both VerseOfTheDay sizes.

  • Verse of the Day cards show the Bible version’s credit beneath the verse.
  • Verse references stay lined up with the Verse of the Day label.

Both earlier findings are addressed. Tests and browser captures were not run; dependencies are not installed.

Reviews (5) · Last reviewed commit: "Merge branch 'main' into ype-6850-votd-c..." · Reviewed by Greptile

Every card size now shows the Bible version's copyright under the verse,
including when the Bible App logo is hidden. The copyright follows the
Scripture's direction so it lines up with the verse in LTR and RTL.

Amp-Thread-ID: https://ampcode.com/threads/T-01a23ca3-c820-726a-ae34-44d89cc806f4
@changeset-bot

changeset-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7280e44

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

The reference took the Scripture's direction for alignment, so with mixed
directions it drifted away from the sun icon and eyebrow. It now aligns
with the interface and only its text runs in the Scripture's direction.

Amp-Thread-ID: https://ampcode.com/threads/T-01a23ca3-c820-726a-ae34-44d89cc806f4
Drop the exact Arabic eyebrow assertion, which a wording-only translation
update would break. The lockup check now measures the rendered text of the
eyebrow and reference and checks the sun sits right before them, and the
RTL stories wait for the copyright element instead of fixture wording.

Amp-Thread-ID: https://ampcode.com/threads/T-01a23ca3-c820-726a-ae34-44d89cc806f4

@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 non-blocking comment inline.

@cameronapak
cameronapak merged commit 67b762c into main Dec 4, 2026
25 checks passed
@cameronapak
cameronapak deleted the ype-6850-votd-copyright branch December 4, 2026 10:34
cameronapak pushed a commit that referenced this pull request Dec 4, 2026
The copyright line added in #518 appeared at full height when the verse
arrived, outside AnimatedHeight, so content below jumped 24px at once
(CLS 0.049 at 390px on Slow 4G). Keeping one empty line in its place while
loading brings that to 0.014, the remaining difference being the verse's
own length versus the typical-verse reservation.

Amp-Thread-ID: https://ampcode.com/threads/T-01a23831-2d77-77fd-9e5e-e91ef59406bf
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