diff --git a/src/App.jsx b/src/App.jsx index ae41543..a4947b6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -356,12 +356,13 @@ const AppInner = () => { setProject((current) => (current ? updater(current) : current)); }; - const updateChunk = (chunkId, patch) => { + // `touch: false` saves a change without counting it as an edit (so it doesn't reset "last edited" for recalls and summaries). + const updateChunk = (chunkId, patch, { touch = true } = {}) => { updateProject((current) => ({ ...current, chapters: current.chapters.map((ch) => ({ ...ch, - chunks: ch.chunks.map((c) => (c.id === chunkId ? { ...c, ...patch, editedAt: Date.now() } : c)), + chunks: ch.chunks.map((c) => (c.id === chunkId ? { ...c, ...patch, ...(touch ? { editedAt: Date.now() } : {}) } : c)), })), })); }; diff --git a/src/components/study/CompareSheet.jsx b/src/components/study/CompareSheet.jsx index d02226e..47476fd 100644 --- a/src/components/study/CompareSheet.jsx +++ b/src/components/study/CompareSheet.jsx @@ -5,8 +5,9 @@ import { useApp } from '../../context/AppContext.js'; import { loadProjectById } from '../../utils/projectStorage.js'; import { formatChunkReference, getChunkVerseEntries } from '../../utils/bibleUtils.jsx'; import { READER_TRANSLATIONS, fetchChapter, translationName } from '../../utils/bibleText.js'; -import { alignVerses, translationSpans } from '../../utils/compareTranslations.js'; -import { ownShare, pastedWords, withPaste } from '../../utils/ownWork.js'; +import { alignVerses, differencesFor, markRanges, translationSpans } from '../../utils/compareTranslations.js'; +import { ownShare, pastedWords } from '../../utils/ownWork.js'; +import { usePasteCheck } from './PastePrompt.jsx'; const FIELDS = [['observation', 'Observe'], ['interpretation', 'Interpret'], ['application', 'Apply']]; @@ -48,6 +49,7 @@ const OIA = [ // They are the same notes as on the Study page, and long pastes are tagged the same way. function OiaBoxes({ chunk, updateChunk }) { const share = ownShare(chunk); + const pasteCheck = usePasteCheck(chunk, updateChunk); return (

Your notes{share !== null ? ` · ${share}% your own words` : ''}

@@ -58,9 +60,10 @@ function OiaBoxes({ chunk, updateChunk }) {