From 5558ce95dc46e0d8dcbbad534513312a071cd94b Mon Sep 17 00:00:00 2001 From: BryanMurphy <123925276+BPMData@users.noreply.github.com> Date: Fri, 27 Nov 2026 21:55:49 -0500 Subject: [PATCH] v58: report script also files AllHail and OverHeard reports The report script already filed AllAboard's "Something not working?" reports. It now does the same for AllHail and OverHeard, so all four apps share one script, one inbox and one GitHub key. - Each app has its own secret (ALLABOARD_TOKEN, ALLHAIL_TOKEN, OVERHEARD_TOKEN), so one app can't send reports as another. An app whose secret isn't set is turned away, as before. - Issues go to that app's repository (optional ..._REPO and ..._GITHUB_TOKEN properties change that). - Email subjects start with [AllAboard], [AllHail] or [OverHeard]. - checkSetup says, for each app, whether its reports are on. - AllAboard reports work exactly as before. Board reports are unchanged. docs/REPORTS.md explains the setup. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + app/index.html | 4 +- app/report/index.html | 2 +- app/sw.js | 10 ++-- app/version.json | 2 +- docs/REPORTS.md | 24 ++++++---- index.html | 2 +- overlay/ink_overlay.html | 2 +- tools/report-relay.gs | 99 +++++++++++++++++++++++++--------------- 9 files changed, 90 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6c7110..981c5b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- **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. - **Laser pointer sound** (v53, PDF app and HTML overlay). Turning on the laser pointer now plays a short, quiet, low laser sound, so it is clear what just happened. Turning it off is silent. diff --git a/app/index.html b/app/index.html index 38be0d1..e628eb1 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? · v57

+
About OverBoard · Board not working? · v58

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

+

OverBoard v58

diff --git a/app/sw.js b/app/sw.js index 514e955..a0d0b2d 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 = '7fe8533e26b7'; +const VERSION = '5cd8fde5cc12'; const FILES = { - "../overlay/ink_overlay.html": "c5bf9bb4b9c3f306", + "../overlay/ink_overlay.html": "75118ad6cd334aba", "../shared/ink-core.js": "b65c19035e241559", "../shared/strings.js": "d18490c777454e35", "../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": "a84b8ba6079dded4", + "index.html": "da9940d284c8ce94", "ink.js": "79d0b39c073d56dc", "libs.js": "3b92080779974cfa", "main.js": "f6b5c9c39dfdea92", "manifest.json": "798bbad3d5e46dc6", "notebook.js": "ab3ff1706ec424b3", "offline.js": "e620a1ba2b6ea506", - "report/index.html": "c3feff0ccfadc356", + "report/index.html": "8772ed1901df2337", "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": "7ccd57db1a87e6ae", + "version.json": "98836bcea77ed203", "viewer.js": "f1e96f64aec11170" }; // ===== END GENERATED ===== diff --git a/app/version.json b/app/version.json index 730f969..5690aeb 100644 --- a/app/version.json +++ b/app/version.json @@ -1,5 +1,5 @@ { - "v": "23f14fb8996f", + "v": "b347310590d3", "js": [ "embed.js", "export.js", diff --git a/docs/REPORTS.md b/docs/REPORTS.md index a9b42ed..55f36b2 100644 --- a/docs/REPORTS.md +++ b/docs/REPORTS.md @@ -57,18 +57,24 @@ 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) +## App reports: AllAboard, AllHail and OverHeard (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. +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. -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. +| App | Secret (script property) | Repository (default) | Optional properties | +| --- | --- | --- | --- | +| AllAboard | `ALLABOARD_TOKEN` | BPMData/AllAboard | `ALLABOARD_REPO`, `ALLABOARD_GITHUB_TOKEN` | +| AllHail | `ALLHAIL_TOKEN` | BPMData/AllHail | `ALLHAIL_REPO`, `ALLHAIL_GITHUB_TOKEN` | +| OverHeard | `OVERHEARD_TOKEN` | BPMData/OverHeard | `OVERHEARD_REPO`, `OVERHEARD_GITHUB_TOKEN` | -AllAboard reports count toward the same 20-an-hour, 40-a-day limits. +To turn an app on: + +1. **Let the key reach the app.** On GitHub, open the `OverBoard reports` token ([fine-grained tokens](https://github.com/settings/personal-access-tokens)) ▸ **Edit** ▸ *Repository access* ▸ also tick the app's repository ▸ **Update**. Issues: *Read and write* already covers it. (Or make a separate token for that app and add it as its `…_GITHUB_TOKEN` property.) +2. **Add the app's secret** under **Project Settings ▸ Script properties**, with the name from the table. The value is the app's relay secret, which is kept in Google Cloud Secret Manager in project `loyal-rookery-403218` (`allaboard-report-relay-token`, `allhail-report-relay-secret`, `overheard-report-relay-secret`); each app's deploy gives it to the app's server, so the value never goes in GitHub or the Cloud Run console. +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. ## Good to know diff --git a/index.html b/index.html index 3df0cf5..6058971 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.
-