From 1de5afad54ede220686b9427a8e2ed1d7e84f2dd Mon Sep 17 00:00:00 2001 From: BryanMurphy <123925276+BPMData@users.noreply.github.com> Date: Fri, 27 Nov 2026 23:31:09 -0500 Subject: [PATCH] v59: one email per report, for all four apps - Report script: no more thank-you emails (OverBoard included). The report pages already say thank you once a report has gone through. - People who leave an email get the one "here's what we changed" email when their issue is closed as completed, now for AllAboard, AllHail and OverHeard reports too (checkForFixes looks in each app's repository). - Limits: 60 reports an hour, 70 a day, all four apps together. - Report page's last screen no longer promises a thank-you email (8 languages). - Docs updated. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 + README.md | 2 +- app/index.html | 4 +- app/report/index.html | 4 +- app/sw.js | 12 +- app/version.json | 2 +- docs/ARCHITECTURE.md | 2 +- docs/REPORTS.md | 14 +-- index.html | 18 +-- overlay/ink_overlay.html | 18 +-- shared/strings.js | 16 +-- tools/report-relay.gs | 252 +++++++++++++++++++++------------------ 12 files changed, 184 insertions(+), 162 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 981c5b5..b0b25e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- **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. - **AllAboard reports** (v55, report script only). The report script can also file AllAboard's "Something not working?" reports: an issue in the AllAboard repository and an email to the same reports inbox. It is off until the `ALLABOARD_TOKEN` script property is set (see docs/REPORTS.md). Nothing changes for teachers using OverBoard. - **PDFs open a little faster** (v54, PDF app). The PDF reader now gets ready while the start screen is up, instead of when you pick a file, and one reader is kept for every PDF you open, so Open again and adding a notebook page no longer start a new one each time. Checking which PDF it is (to find its ink) now happens while the PDF opens, not before. diff --git a/README.md b/README.md index 5b9e04f..28c7b45 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Worksheets built from fixed-size `.page` elements (like `
` at No accounts, no uploads; your ink stays on your machine. - OverBoard has no server. Ink, and PDFs you open in the app, are stored in your browser, and inside your own file if you choose. -- The one exception is **Board not working?**, and only when you press **Send** on its last screen, after it shows you everything it will send. It sends your board's brand and model, your browser, operating system and screen size, and what the board reported while you drew (pen, mouse or touch; size; pressure). Never worksheets, PDFs, ink or file names. It becomes a public GitHub issue; the optional email address and comments go only to OverBoard's reports inbox. A teacher who gives an email gets a thank-you right away and one more email when there's a fix to try, and nothing else. (Setup: [docs/REPORTS.md](docs/REPORTS.md).) +- The one exception is **Board not working?**, and only when you press **Send** on its last screen, after it shows you everything it will send. It sends your board's brand and model, your browser, operating system and screen size, and what the board reported while you drew (pen, mouse or touch; size; pressure). Never worksheets, PDFs, ink or file names. It becomes a public GitHub issue; the optional email address and comments go only to OverBoard's reports inbox. A teacher who gives an email gets one email when there's a fix to try, and nothing else. (Setup: [docs/REPORTS.md](docs/REPORTS.md).) - What does get downloaded: the web pages (kept in the browser for offline use) and the two open-source libraries the PDF app uses ([PDF.js](https://mozilla.github.io/pdf.js/) and [pdf-lib](https://pdf-lib.js.org/)), all from GitHub Pages (bpmdata.github.io). Your PDFs, worksheets and ink are never sent anywhere. (The board-probe diagnostic page also loads one script from cdnjs.) - The optional desktop installer is a Python script that runs on your computer and only edits the files you pick. diff --git a/app/index.html b/app/index.html index e628eb1..7d4981b 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? · v58

+
About OverBoard · Board not working? · v59

diff --git a/app/report/index.html b/app/report/index.html index 43a471f..e553c63 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 v58

+

OverBoard v59

@@ -175,7 +175,7 @@

Ready to send

Thank you!

Your report is on its way. I'll use it to make OverBoard work on your board.

- +

You can close this tab now.

diff --git a/app/sw.js b/app/sw.js index a0d0b2d..0cd6d7f 100644 --- a/app/sw.js +++ b/app/sw.js @@ -1,9 +1,9 @@ // ===== GENERATED by tools/build.py: every file the app needs, with the start of its SHA-256. Do not edit by hand. ===== -const VERSION = '5cd8fde5cc12'; +const VERSION = '38d801d59927'; const FILES = { - "../overlay/ink_overlay.html": "75118ad6cd334aba", + "../overlay/ink_overlay.html": "b538eb10d89ccc52", "../shared/ink-core.js": "b65c19035e241559", - "../shared/strings.js": "d18490c777454e35", + "../shared/strings.js": "f2394bc536e6ec28", "../shared/toolbar.css": "e1e1905491edf8e6", "app.css": "f54275874c206db2", "embed.js": "32fd8ff01c9241cf", @@ -17,14 +17,14 @@ const FILES = { "icons/icon-512.png": "46ca8bd2d6a32612", "icons/maskable-512.png": "c7d41ed2fa4ad874", "image.js": "a867d49b8c47a4a0", - "index.html": "da9940d284c8ce94", + "index.html": "057284487639a410", "ink.js": "79d0b39c073d56dc", "libs.js": "3b92080779974cfa", "main.js": "f6b5c9c39dfdea92", "manifest.json": "798bbad3d5e46dc6", "notebook.js": "ab3ff1706ec424b3", "offline.js": "e620a1ba2b6ea506", - "report/index.html": "8772ed1901df2337", + "report/index.html": "fdd2f74173d41e45", "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": "98836bcea77ed203", + "version.json": "d5dd7444774e3d8f", "viewer.js": "f1e96f64aec11170" }; // ===== END GENERATED ===== diff --git a/app/version.json b/app/version.json index 5690aeb..51d346c 100644 --- a/app/version.json +++ b/app/version.json @@ -1,5 +1,5 @@ { - "v": "b347310590d3", + "v": "b0b95bdc75b5", "js": [ "embed.js", "export.js", diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 382e2b5..7d9bb12 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -84,7 +84,7 @@ Added after v2: - **Steps:** finger, pen, palm wipe, board eraser, two fingers. One per screen, big text. `Next` always works, with or without input (also Enter / → for boards whose touch doesn't work at all); some steps have a "Skip: I don't have one". Feedback is always positive ("✓ Got it! I saw 2 lines", "✓ Something happened, but not a line"), never "wrong". A button press made with a palm (`pointerKind` = palm), or within 450 ms of a screen change, is ignored, so a wipe can't skip a step. - **Recording:** document-level capture listeners for pointer, touch, wheel, contextmenu and Safari gesture events, during the steps only (never on the typing screens). Per step: counts by `pointerType`, by OverBoard's `pointerKind`, by `buttons` (and `eraserButton` for `buttons & 32`), max width/height/pressure, tilt, pointers at once, lines (moved > 30 px) vs taps, events outside the pad, scroll/zoom/right-click/pinch. Up to 150 raw events per step (every pointer change, every 10th move). Device: user agent, `userAgentData` high-entropy values (OS version, model, architecture), screen, DPR, `maxTouchPoints`, pointer/hover media queries, cores, memory, installed or not. - **No SMART driver check** here: reaching the driver on `127.0.0.1` from a website triggers Chrome's local-network permission prompt. `tools/board-probe.html` still does it for developers. - - **Sending:** POST as `text/plain` (no CORS preflight) to `RELAY_URL`, a Google Apps Script web app (`tools/report-relay.gs`, setup in `docs/REPORTS.md`) running as overboard.reporting@gmail.com. It opens an issue labeled `board-report` (summary table plus the JSON, trimmed to fit GitHub's 65,536-character limit) with a fine-grained token kept in Script properties, and emails the full report as an attachment with Reply-To set to the teacher's address. `private` (email, comments) is removed before the issue. Honeypot field `website`; at most 20 reports an hour and 40 a day, 25 thank-you emails a day, and one thank-you per address a week (so a robot can't use up Gmail's ~100 emails a day or pester strangers). With no `RELAY_URL`, or on any failure, the page offers Download / Copy and the email address. + - **Sending:** POST as `text/plain` (no CORS preflight) to `RELAY_URL`, a Google Apps Script web app (`tools/report-relay.gs`, setup in `docs/REPORTS.md`) running as overboard.reporting@gmail.com. It opens an issue labeled `board-report` (summary table plus the JSON, trimmed to fit GitHub's 65,536-character limit) with a fine-grained token kept in Script properties, and emails the full report as an attachment with Reply-To set to the teacher's address. `private` (email, comments) is removed before the issue. Honeypot field `website`; at most 60 reports an hour and 70 a day across all four apps (so a robot can't use up Gmail's ~100 emails a day). No thank-you email: the page says thank you; the only email to the teacher is the one follow-up when the issue is closed as completed. With no `RELAY_URL`, or on any failure, the page offers Download / Copy and the email address. - **Brand logos:** set `logo: true` in `BRANDS` once `app/report/brands/.svg` exists. - **Languages and tooltips** (`shared/strings.js`, v24). One table, inlined into the overlay by `tools/build_overlay.py` like `ink-core.js` and imported by the app. Each key is `[en, es, zh, tl, vi, fr, pt, ar]` (order of `obLangs()`); `{name}` placeholders; a missing entry falls back to English. diff --git a/docs/REPORTS.md b/docs/REPORTS.md index 55f36b2..27a973a 100644 --- a/docs/REPORTS.md +++ b/docs/REPORTS.md @@ -4,9 +4,9 @@ The **Board not working?** page (`app/report/`) walks a teacher through a few to 1. opens a GitHub issue labeled **board-report**, with the board, the computer, and what the board sent for each step, 2. emails the full report to the reports inbox, with the teacher's email address and comments. Those two never go into the public issue. Press **Reply** on the email to answer the teacher, and -3. if the teacher gave an email: sends them a thank-you right away, and remembers their address (privately, in the script's settings) for one follow-up. +3. if the teacher gave an email: remembers their address (privately, in the script's settings) for one follow-up. There's no thank-you email: the report page itself says thank you once the report has gone through. -**The follow-up.** Once a day the script checks GitHub. When a report's issue has been **closed as completed**, it emails that teacher: a short paragraph about what changed (written by Claude Haiku from your comments on the issue and the titles of your pull requests that mention it), then fixed instructions for making sure OverBoard has reloaded, with the version number to look for. Both emails go out in the language the teacher used on the report page (one of OverBoard's 8). Then it forgets the address. An issue closed as **not planned** (or as a duplicate) sends nothing. +**The follow-up.** Once a day the script checks GitHub. When a report's issue has been **closed as completed**, it emails that teacher: a short paragraph about what changed (written by Claude Haiku from your comments on the issue and the titles of your pull requests that mention it), then fixed instructions for making sure OverBoard has reloaded, with the version number to look for. It goes out in the language the teacher used on the report page (one of OverBoard's 8). Then it forgets the address. An issue closed as **not planned** (or as a duplicate) sends nothing. So, when you fix a board problem: put `Fixes #12` in the pull request (merging it closes issue #12), and if you like, leave a one-line comment on the issue saying what changed in plain words. Haiku only reads comments from you and collaborators, never from strangers, and it never sees the teacher's email or private comments. @@ -51,7 +51,7 @@ To check it's live: open the Web app URL in a browser. It should show `{"ok":tru 1. **Claude API key** (optional, for Haiku's paragraph): at [console.anthropic.com](https://console.anthropic.com), add a few dollars of credit and create an API key. Add it as the script property `ANTHROPIC_API_KEY`. Each follow-up costs well under a cent. Without a key, follow-ups use a plain fixed paragraph instead. 2. In the editor, choose **installDailyCheck** in the function menu and press **▶ Run**. Google asks for permission again (this time to run on a schedule). The check now runs once a day around 3 pm. -3. To see what a follow-up looks like without emailing anyone: in the editor, open **previewFollowUp**, change `n = n || 1` to an issue number (and `lang || 'en'` to `'es'`, `'zh'`… to see another language), and press **▶ Run**. The preview goes to the reports inbox. +3. To see what a follow-up looks like without emailing anyone: in the editor, open **previewFollowUp**, change `n = n || 1` to an issue number (and `lang || 'en'` to `'es'`, `'zh'`… to see another language), and press **▶ Run**. For an app's issue, change `app` to `'AllAboard'`, `'AllHail'` or `'OverHeard'` as well. The preview goes to the reports inbox. ## Changing the script later @@ -59,7 +59,7 @@ Edit the code, save, then **Deploy ▸ Manage deployments ▸ ✏️ (edit) ▸ ## App reports: AllAboard, AllHail and OverHeard (optional) -The same script also files the **Something not working?** reports of AllAboard, AllHail and OverHeard, so all four apps share one inbox, one GitHub key and one deployment. Each app's server writes the issue and the email itself and sends them with that app's own secret; the script opens the issue in that app's repository and emails the private part to the reports inbox with `[AllAboard]`, `[AllHail]` or `[OverHeard]` at the start of the subject. No thank-you or follow-up emails for these. An app whose secret isn't set here is turned away, and that app shows its own copy / download / email fallback. +The same script also files the **Something not working?** reports of AllAboard, AllHail and OverHeard, so all four apps share one inbox, one GitHub key and one deployment. Each app's server writes the issue and the email itself and sends them with that app's own secret; the script opens the issue in that app's repository and emails the private part to the reports inbox with `[AllAboard]`, `[AllHail]` or `[OverHeard]` at the start of the subject. If the person gave an email address, they get the same one follow-up as teachers when the issue is **closed as completed** (in English: a Haiku paragraph from your comments and pull request titles, then how to reload the app), and nothing else. The daily check looks in each app's repository for this, with the same token. An app whose secret isn't set here is turned away, and that app shows its own copy / download / email fallback. | App | Secret (script property) | Repository (default) | Optional properties | | --- | --- | --- | --- | @@ -74,12 +74,12 @@ To turn an app on: 3. Paste in the new `tools/report-relay.gs` if it changed, save, and run **checkSetup**. The log says, for each app, whether its reports are on and where its issues go. 4. **Deploy ▸ Manage deployments ▸ ✏️ ▸ Version: New version ▸ Deploy** (same URL as before). Adding or changing a script property alone doesn't need a new version. -The apps' servers read this script's Web app URL from Secret Manager too (`…-report-relay-url`). App reports count toward the same 20-an-hour, 40-a-day limits as board reports. +The apps' servers read this script's Web app URL from Secret Manager too (`…-report-relay-url`). App reports count toward the same 60-an-hour, 70-a-day limits as board reports. ## Good to know -- **Limits.** A gmail.com account can send about 100 emails a day, so the script keeps well under that even if a robot floods it: at most 20 reports an hour and 40 a day (more is turned away, and the page offers Download / Copy instead), at most 25 thank-you emails a day, and only one thank-you per email address a week. A teacher who sends a second report that week still gets the follow-up when it's fixed. The counts are kept in Script properties as `day:…` and `thanked:…` (a scrambled form of the address); the daily check deletes old ones. To change a limit, edit the numbers near the top of the script. +- **Limits.** A gmail.com account can send about 100 emails a day, so the script keeps well under that even if a robot floods it: at most 60 reports an hour and 70 a day across all four apps (more is turned away, and the page offers Download / Copy instead). The only emails to the people who reported something are the one-time follow-ups, which go out only when you close an issue as completed. The counts are kept in Script properties as `day:…`; the daily check deletes old ones. To change a limit, edit the numbers near the top of the script. - **Spam.** The page has a hidden box that people never see and robots fill in. Reports with it filled are thrown away (the robot is told it worked). The email address is in the page, so the inbox may get some ordinary spam. -- **Teachers' addresses** are kept only in the script's settings (Project Settings ▸ Script properties, as `contact:12` and so on), until their report is closed, or for a year at most. You can delete one there to stop its follow-up. +- **Teachers' addresses** are kept only in the script's settings (Project Settings ▸ Script properties, as `contact:12` for OverBoard and `contact:ALLHAIL:21` and so on for the apps), until their report is closed, or for a year at most. You can delete one there to stop its follow-up. - **When the token expires,** issues stop being made but the emails still arrive, each saying why the issue failed. Make a new token (step 1) and replace `GITHUB_TOKEN` (step 2.4). No new deployment is needed. - **What's in a report:** browser and operating system, screen size, touch support, CPU cores and memory (Chrome), the OverBoard version, and for each step what kind of input the browser saw (pen, mouse, touch), its buttons, size and pressure, plus up to 150 sample events. Never worksheets, PDFs, ink, file names or the page they were on. diff --git a/index.html b/index.html index 6058971..94ce660 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@

Exit ticket

OverBoard · page 2 / 2 · Your ink saves in this browser only. Nothing is uploaded.
-