diff --git a/public/components/notes.html b/public/components/notes.html index 61533c7..6ba4fa1 100644 --- a/public/components/notes.html +++ b/public/components/notes.html @@ -1,6 +1,5 @@
-

My Notes

-

A quiet place for your thoughts — jot ideas, paste references, or dictate and let AI tidy it up. Only you can see these.

+

Notes

-
-

Hello 👋

-

Pick a note on the left, or start a fresh one. You can type, paste, or tap Dictate to let AI clean up your voice into a polished note.

+
-
-
Press Ctrl+S to save
-
Dictate turns your voice into a clean note
-
Encrypted at rest — only you can read them
-
diff --git a/public/js/notes.js b/public/js/notes.js index 361ebfc..05e8cc0 100644 --- a/public/js/notes.js +++ b/public/js/notes.js @@ -190,9 +190,7 @@ } if (filtered.length === 0) { listEl.innerHTML = '
' - + (_search - ? 'No notes match "' + esc(_search) + '".' - : 'No notes yet. Tap New note to create one.') + + (_search ? 'No matches' : '') + '
'; return; } @@ -223,7 +221,7 @@ $('notes-reader-meta').textContent = 'Created ' + formatWhen(note.created_at) + ' · Updated ' + formatWhen(note.updated_at); var body = $('notes-reader-body'); - body.innerHTML = note.body ? sanitizeHtml(note.body) : '

This note is empty. Tap Edit to add content.

'; + body.innerHTML = note.body ? sanitizeHtml(note.body) : ''; setView('reader'); renderList(); @@ -235,7 +233,7 @@ _activeId = null; _dirty = false; $('note-title').value = ''; - $('note-meta').textContent = 'New note — will save automatically once you type.'; + $('note-meta').textContent = ''; $('btn-note-delete').style.display = 'none'; mountTiptap($('note-body-editor'), ''); updateStatus('', ''); diff --git a/public/sw.js b/public/sw.js index 0c9d6c2..0a20185 100644 --- a/public/sw.js +++ b/public/sw.js @@ -4,7 +4,7 @@ // API calls always fresh (critical for medical data accuracy) // ============================================================ -var CACHE_NAME = 'pedscribe-v12-notes2'; +var CACHE_NAME = 'pedscribe-v12-notes3'; var SHELL_ASSETS = [ '/', '/index.html',