From dbea2b64d5d2cc1284b530d9b5dcba9bfe899af7 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 11:59:31 +0000 Subject: [PATCH 1/2] Report script can also file AllAboard's problem reports AllAboard's server can now send its 'Something not working?' reports to the same Google script. They need a shared secret (ALLABOARD_TOKEN), open an issue in the AllAboard repository and email the reports inbox. Off until that secret is set. OverBoard reports work exactly as before. Co-Authored-By: Claude Opus 5.5 --- app/index.html | 4 +- app/report/index.html | 2 +- app/sw.js | 10 ++--- app/version.json | 2 +- docs/REPORTS.md | 13 ++++++ index.html | 2 +- overlay/ink_overlay.html | 2 +- tools/report-relay.gs | 89 +++++++++++++++++++++++++++++++++++++++- 8 files changed, 112 insertions(+), 12 deletions(-) diff --git a/app/index.html b/app/index.html index c939fa2..c158594 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? · v53

+
About OverBoard · Board not working? · v54

diff --git a/app/report/index.html b/app/report/index.html index fd2f1e4..e664a2d 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 v53

+

OverBoard v54

diff --git a/app/sw.js b/app/sw.js index 6cc96fa..c94fae4 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 = 'ad523d024e67'; +const VERSION = '00b53b971c87'; const FILES = { - "../overlay/ink_overlay.html": "ccbeec7f9a193362", + "../overlay/ink_overlay.html": "658c92c6773cccf9", "../shared/ink-core.js": "b65c19035e241559", "../shared/strings.js": "b247836e7165abf0", "../shared/toolbar.css": "a611595b897560c5", @@ -17,14 +17,14 @@ const FILES = { "icons/icon-512.png": "46ca8bd2d6a32612", "icons/maskable-512.png": "c7d41ed2fa4ad874", "image.js": "d396b7d4f5aced4e", - "index.html": "07e71eee1c4df161", + "index.html": "028f091c32174707", "ink.js": "3dc693cb202efe0c", "libs.js": "c09f60186ab9029a", "main.js": "ed783dc63ed7a6dd", "manifest.json": "416c107c34c8610b", "notebook.js": "7346e40dda6ff149", "offline.js": "6504935b2738711a", - "report/index.html": "480150bf36208394", + "report/index.html": "8885a58fbb345993", "store.js": "155ec064f6ffe569", "textlayer.js": "383ad22e91afb648", "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": "7b8de4a25ae70b82", + "version.json": "559e566e0ca16040", "viewer.js": "1cffd9d5c7158958" }; // ===== END GENERATED ===== diff --git a/app/version.json b/app/version.json index 85c577e..5bcf619 100644 --- a/app/version.json +++ b/app/version.json @@ -1,5 +1,5 @@ { - "v": "a4543e5866fb", + "v": "bb87949c1a7c", "js": [ "embed.js", "export.js", diff --git a/docs/REPORTS.md b/docs/REPORTS.md index 6e5d5b2..a9b42ed 100644 --- a/docs/REPORTS.md +++ b/docs/REPORTS.md @@ -57,6 +57,19 @@ To check it's live: open the Web app URL in a browser. It should show `{"ok":tru Edit the code, save, then **Deploy ▸ Manage deployments ▸ ✏️ (edit) ▸ Version: New version ▸ Deploy**. This keeps the same URL, so the page doesn't need to change. (A *New deployment* gets a new URL.) +## AllAboard reports (optional) + +The same script also files AllAboard's **Something not working?** reports, so both apps share one inbox, one GitHub key and one deployment. AllAboard's server sends each report with a shared secret; the script opens an issue in the AllAboard repository (label `user-report`) and emails the private part to the reports inbox with `[AllAboard]` in the subject. No thank-you or follow-up emails for these. Without the steps below, the script turns AllAboard reports away and AllAboard shows its copy / download / email fallback. + +1. **Let the key reach AllAboard.** On GitHub, open the `OverBoard reports` token ([fine-grained tokens](https://github.com/settings/personal-access-tokens)) ▸ **Edit** ▸ *Repository access* ▸ also tick **AllAboard** ▸ **Update**. Issues: *Read and write* already covers it. (Or make a separate AllAboard-only token and add it as the script property `ALLABOARD_GITHUB_TOKEN`.) +2. In the AllAboard repository, **Issues ▸ Labels ▸ New label** `user-report` (optional: without it, issues are opened unlabeled). +3. **Make a secret.** Any long random string, for example from `openssl rand -hex 32`. In the script's **Project Settings ▸ Script properties**, add `ALLABOARD_TOKEN` with that value. +4. Paste in the new `tools/report-relay.gs`, save, and run **checkSetup**. The log should say "AllAboard reports are on". +5. **Deploy ▸ Manage deployments ▸ ✏️ ▸ Version: New version ▸ Deploy** (same URL as before). +6. In the AllAboard repository, add two Actions secrets: `REPORT_RELAY_URL` (this script's Web app URL) and `REPORT_RELAY_TOKEN` (the same secret as `ALLABOARD_TOKEN`). The next AllAboard deploy picks them up. + +AllAboard reports count toward the same 20-an-hour, 40-a-day limits. + ## 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. diff --git a/index.html b/index.html index 5b43e8b..3504784 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.
-