From d131b8be7bac2fe7ccdd42de0fa4e53d43d18de7 Mon Sep 17 00:00:00 2001
From: BryanMurphy <123925276+BPMData@users.noreply.github.com>
Date: Sat, 28 Nov 2026 00:25:34 -0500
Subject: [PATCH] v60: plan for splitting app/main.js into smaller files
docs/plans/APP_MAIN_SPLIT.md is a step-by-step plan (for Codex to follow
exactly) that splits the PDF app's app/main.js into 12 smaller files
without changing anything the app does. No app code changes in this commit.
Co-Authored-By: Claude Opus 5.5 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.
- Open again
About OverBoard · Board not working? · v59
About OverBoard · Board not working? · v60
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: