Highlight translation differences, first-draft snapshot, verse notes, paste check

- Compare translations can highlight the words that differ from the first
  translation (toggle remembered).
- A copy of your notes is kept the first time commentary is shown; "First draft,
  before commentary" under More shows what changed since. Saving it doesn't
  count as editing the chunk.
- Notes on single verses: a pencil next to each verse in Study, and a note line
  under each verse in Compare. They merge per verse across devices.
- Pasting 15+ words into a note asks "Is this from AI?"; "I wrote it" counts the
  words as yours again.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-14 12:56:57 -04:00
1 parent 3a28ffa51a
commit 648c3206df
14 files changed
+232 -27

No files matched your search

+10
View File
@@ -51,3 +51,13 @@ export function chunksNeedingWork(chunks) {
// Commentary and study aids stay folded away until you've written this much of your own Observe notes.
export const OBSERVE_FIRST_MIN = 15;
export const observeFirstDone = (chunk) => ownWords(chunk, 'observation') >= OBSERVE_FIRST_MIN;
// "No, I wrote it": take one remembered paste back out, so those words count as your own again.
export function withoutPaste(chunk, field, pasted) {
const text = (pasted ?? '').trim();
const all = chunk?.aiPastes ?? {};
const list = [...(all[field] ?? [])];
const at = list.lastIndexOf(text);
if (at >= 0) list.splice(at, 1);
return { ...all, [field]: list };
}