diff --git a/CHANGELOG.md b/CHANGELOG.md index b0b25e0..53fe4c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- **Plan for tidying the PDF app's code** (v60, docs only). `docs/plans/APP_MAIN_SPLIT.md` describes, step by step, how to split `app/main.js` into smaller files without changing anything the app does. Nothing changes for teachers yet. + - **One email per report, for all four apps** (v59, report script and the report page's last screen). No more thank-you emails: the report page already says thank you once the report has gone through, so the email was a waste of Gmail's ~100 a day. People who leave an email now get just the one "here's what we changed" email when their issue is closed as completed, and that now works for AllAboard, AllHail and OverHeard reports too, not just OverBoard's. The report limits go up to 60 an hour and 70 a day (all four apps together). - **AllHail and OverHeard reports** (v58, report script only). The report script now files AllHail's and OverHeard's "Something not working?" reports the same way as AllAboard's: an issue in that app's repository and an email to the same reports inbox. Each app has its own secret (`ALLHAIL_TOKEN`, `OVERHEARD_TOKEN`), so one app can't send reports as another, and each is off until its secret is set (see docs/REPORTS.md). AllAboard reports work as before. Nothing changes for teachers using OverBoard. diff --git a/app/index.html b/app/index.html index 7d4981b..17657ad 100644 --- a/app/index.html +++ b/app/index.html @@ -5,7 +5,7 @@ OverBoard PDF - + @@ -47,7 +47,7 @@

Open again

Your PDF and your ink stay in this browser on this computer. Nothing is uploaded. Have a Word file? In Word, choose File → Save as PDF, then drop the PDF here. Have an HTML worksheet? Drop it here to get a _board.html copy you can write on. -
About OverBoard · Board not working? · v59

+
About OverBoard · Board not working? · v60

diff --git a/app/report/index.html b/app/report/index.html index e553c63..647ac27 100644 --- a/app/report/index.html +++ b/app/report/index.html @@ -98,7 +98,7 @@

Is OverBoard not working on your board?

If something doesn't work the way the page asks, that's fine. That's exactly what I need to know. Just keep going.

Nothing is sent until you press Send at the very end, and you'll see everything first. No worksheets, PDFs or ink are ever included.

-

OverBoard v59

+

OverBoard v60

diff --git a/app/sw.js b/app/sw.js index 0cd6d7f..d5f899c 100644 --- a/app/sw.js +++ b/app/sw.js @@ -1,7 +1,7 @@ // ===== GENERATED by tools/build.py: every file the app needs, with the start of its SHA-256. Do not edit by hand. ===== -const VERSION = '38d801d59927'; +const VERSION = 'f7d570a4ef8d'; const FILES = { - "../overlay/ink_overlay.html": "b538eb10d89ccc52", + "../overlay/ink_overlay.html": "b19a861c912cbb4c", "../shared/ink-core.js": "b65c19035e241559", "../shared/strings.js": "f2394bc536e6ec28", "../shared/toolbar.css": "e1e1905491edf8e6", @@ -17,14 +17,14 @@ const FILES = { "icons/icon-512.png": "46ca8bd2d6a32612", "icons/maskable-512.png": "c7d41ed2fa4ad874", "image.js": "a867d49b8c47a4a0", - "index.html": "057284487639a410", + "index.html": "fac8c0a6e92e1448", "ink.js": "79d0b39c073d56dc", "libs.js": "3b92080779974cfa", "main.js": "f6b5c9c39dfdea92", "manifest.json": "798bbad3d5e46dc6", "notebook.js": "ab3ff1706ec424b3", "offline.js": "e620a1ba2b6ea506", - "report/index.html": "fdd2f74173d41e45", + "report/index.html": "61a7af1c0d94cd25", "store.js": "5487f91114ab7c30", "textlayer.js": "32d43c22f725a2d8", "vendor/pdf-lib@1.17.1/LICENSE.md": "f2c9fc00fdb66eb9", @@ -217,7 +217,7 @@ const FILES = { "vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-BoldItalic.ttf": "a224075ac17495ad", "vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-Italic.ttf": "832b4406dbef2362", "vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-Regular.ttf": "f8ace1f892b2bd9d", - "version.json": "d5dd7444774e3d8f", + "version.json": "6357dd9f0ebe11c5", "viewer.js": "f1e96f64aec11170" }; // ===== END GENERATED ===== diff --git a/app/version.json b/app/version.json index 51d346c..bde0858 100644 --- a/app/version.json +++ b/app/version.json @@ -1,5 +1,5 @@ { - "v": "b0b95bdc75b5", + "v": "b6934d09ddff", "js": [ "embed.js", "export.js", diff --git a/docs/plans/APP_MAIN_SPLIT.md b/docs/plans/APP_MAIN_SPLIT.md new file mode 100644 index 0000000..ab38b0b --- /dev/null +++ b/docs/plans/APP_MAIN_SPLIT.md @@ -0,0 +1,768 @@ +# Plan: Split `app/main.js` into focused modules + +> **For Codex 6.1 Terra:** Read `CLAUDE.md`, `docs/ARCHITECTURE.md` (the "PDF app (v2)" part) and this whole plan first. Do exactly what each step says and nothing else. +> **Behavior-preserving refactor only.** Nothing a teacher sees or does may change. Keep every DOM id, `data-act` / `data-t` / `data-tt` / `data-ta` / `data-paper` / `data-color` / `data-period` attribute, button text and tooltip, every `localStorage` / `sessionStorage` / IndexedDB key (`ink-width`, `ink-hl-width`, `ink-hl-color`, `ink-custom`, `ink-hl-mode`, `ink-hl-strength`, `ink-cover-color`, `ink-smooth`, `ink-finger`, `ob-lang`, `ob-unsaved:`, `ob-open`, `ob-timer-sound`), every keyboard shortcut (Ctrl/⌘+Z / Y / R / Shift+Z, F5 and Ctrl/⌘+Shift+R swallowed, Ctrl/⌘+F, Escape, Select's Ctrl/⌘+C / V / Delete / Backspace), the `history.state.obPdf` steps, and `window.__overboard` (`viewer`, `ink`, `doc`, `data`, `flush`), which the Playwright tests use. +> **Do not change** `shared/` (`ink-core.js`, `strings.js`, `toolbar.css`), `overlay/`, `index.html`, `app/index.html`, `app/sw.js`, `app/version.json`, or any other file in `app/` except `app/main.js`, the new files listed below and two comments in `app/ink.js` (Phase 9). `app/sw.js` and `app/version.json` change only by running `python3 tools/build.py`. +> **Keep the loading model.** The app is plain ES modules with no build step: `app/index.html` loads `main.js` with `