diff --git a/CHANGELOG.md b/CHANGELOG.md index f983cd9..b6c7110 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- **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. - **Laser pointer** (v52, PDF app and HTML overlay). Tap the pen or highlighter color you already have selected, and its ring turns black, red, black. What you draw now stays for two seconds after you lift the pen, then fades away by itself. It is never saved, printed or added to Undo. Tap the color again, or pick another color or tool, to go back to writing. Your palm still erases. diff --git a/app/index.html b/app/index.html index 151f2df..82a4921 100644 --- a/app/index.html +++ b/app/index.html @@ -5,7 +5,7 @@
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? · v54
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 v54
+OverBoard v55
diff --git a/app/sw.js b/app/sw.js index 530b63f..cddb165 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 = '911d716dff20'; +const VERSION = 'a802f2e8d7cf'; const FILES = { - "../overlay/ink_overlay.html": "658c92c6773cccf9", + "../overlay/ink_overlay.html": "92230cd9904a53a0", "../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": "9460c8776a417eb4", + "index.html": "360ec9956137d366", "ink.js": "3dc693cb202efe0c", "libs.js": "bedbbbc2c8495fdf", "main.js": "e842901e26803484", "manifest.json": "416c107c34c8610b", "notebook.js": "7346e40dda6ff149", "offline.js": "6504935b2738711a", - "report/index.html": "8885a58fbb345993", + "report/index.html": "b346bb2f11dfa1d2", "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": "fe7d8c7110d62f35", + "version.json": "b35efdc4d68f7af2", "viewer.js": "1cffd9d5c7158958" }; // ===== END GENERATED ===== diff --git a/app/version.json b/app/version.json index d5ea20d..9c230fe 100644 --- a/app/version.json +++ b/app/version.json @@ -1,5 +1,5 @@ { - "v": "4831a1cabadf", + "v": "15090c822e13", "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 3504784..7131ba5 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@