Problem: Users frequently want to share or save a specific verse — in a message, a document, or social media. They shouldn't have to manually select, copy, and type out the reference.
Solution: A one-click "Copy Verse" action in the verse context menu that copies both the verse text and its reference in a clean, shareable format.
Not included: Copying multiple verses at once, or copying with formatting (bold, italic). This copies plain text only.
When a user clicks "Copy Verse" from the verse context menu, the verse text and its reference are copied to the clipboard in a standard format.
User flow:
Copy format: "In the beginning God created the heavens and the earth. (Genesis 1:1)"
The book name uses the current UI language — so in Dutch mode, it would be: "In den beginne schiep God den hemel en de aarde. (Genesis 1:1)"
Edge cases:
No dedicated UI — this action lives entirely within the verse context menu. The menu item shows:
TODO: Add a brief toast notification ("Copied!") after successful copy.
Implementation: In handleContextAction on the read page:
const text = `${verse.text} (${localBookName} ${verse.chapter}:${verse.verse})`;
navigator.clipboard.writeText(text).catch(() => {});
localBookName is the book name in the current UI language (EN or NL)navigator.clipboard.writeText() with a silent catch on failureFiles:
apps/web/src/routes/(app)/read/[[book]]/[[chapter]]/+page.svelte — handleContextAction, line ~231Current: DONE Milestone: v1 Priority: Medium — frequently used utility
History:
Dependencies: