Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OverBoard PDF</title>
<meta name="description" content="OverBoard: write on any PDF on your smartboard. Runs in the browser; nothing is uploaded.">
<meta name="ob-version" content="23f14fb8996f">
<meta name="ob-version" content="b347310590d3">
<meta name="theme-color" content="#145da0">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="icons/favicon.ico" sizes="32x32">
Expand Down Expand Up @@ -47,7 +47,7 @@ <h2 data-t="open_again">Open again</h2>
<p class="note"><span data-th="start_note">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 <i>_board.html</i> copy you can write on.</span>
<br><a href="https://github.com/BPMData/OverBoard" data-t="about">About OverBoard</a> · <a href="report/?from=start" target="_blank" data-t="board_help">Board not working?</a> · <span id="ob-release" title="OverBoard version">v57</span></p>
<br><a href="https://github.com/BPMData/OverBoard" data-t="about">About OverBoard</a> · <a href="report/?from=start" target="_blank" data-t="board_help">Board not working?</a> · <span id="ob-release" title="OverBoard version">v58</span></p>
<p class="note ob-langpick"><label><span aria-hidden="true">🌐</span> <select id="ob-lang" aria-label="Language" data-ta="language" data-tt="language" title="Language"></select></label></p>
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion app/report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1 data-t="r_h1">Is OverBoard not working on your board?</h1>
<p data-th="r_intro2">If something doesn't work the way the page asks, that's fine. <b>That's exactly what I need to know.</b> Just keep going.</p>
<p class="mute small" data-th="r_privacy">Nothing is sent until you press <b>Send</b> at the very end, and you'll see everything first. No worksheets, PDFs or ink are ever included.</p>
<div class="row"><button class="go big" data-go="start" data-t="r_start">Start</button></div>
<p class="mute small" style="margin-top:28px">OverBoard <span id="ob-release" title="OverBoard version">v57</span></p>
<p class="mute small" style="margin-top:28px">OverBoard <span id="ob-release" title="OverBoard version">v58</span></p>
</div></div>
</section>

Expand Down
10 changes: 5 additions & 5 deletions app/sw.js
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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 =====
Expand Down
2 changes: 1 addition & 1 deletion app/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"v": "23f14fb8996f",
"v": "b347310590d3",
"js": [
"embed.js",
"export.js",
Expand Down
24 changes: 15 additions & 9 deletions docs/REPORTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>Exit ticket</h2>
<div class="lines"><div></div><div></div><div></div><div></div></div>
<div class="foot">OverBoard · page 2 / 2 · Your ink saves in this browser only. Nothing is uploaded.</div>
</div>
<!-- ===== INK OVERLAY START (v57) =====
<!-- ===== INK OVERLAY START (v58) =====
Smartboard writing layer. Paste this whole block just before </body> in any .html file.
SMART BOARD: pen tip writes. Palm, fist or side of hand erases (the board reports it as an eraser).
Finger (and the round end of the SMART pen) scrolls the page; the "Finger" button switches it to drawing if you lose the pen.
Expand Down
2 changes: 1 addition & 1 deletion overlay/ink_overlay.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- ===== INK OVERLAY START (v57) =====
<!-- ===== INK OVERLAY START (v58) =====
Smartboard writing layer. Paste this whole block just before </body> in any .html file.
SMART BOARD: pen tip writes. Palm, fist or side of hand erases (the board reports it as an eraser).
Finger (and the round end of the SMART pen) scrolls the page; the "Finger" button switches it to drawing if you lose the pen.
Expand Down
Loading
Loading