Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

status-ahlab-org

Public static wrapper for https://status.ahlab.org — the AHL System Status board.

This repo is intentionally tiny. It's a single page that embeds the gated Apps Script dashboard (private repo ahl-status-appscript) in a full-bleed <iframe>, plus a branded loading splash, social card and PWA manifest. All health checks, admin tokens and the @ahlab.org sign-in gate live inside the embedded app — nothing sensitive is in this repo.

index.html            full-bleed <iframe> of the Apps Script /exec URL + splash
og-card.html          source for og-image.png (1200×630)
og-image.png          social share card, served at /og-image.png
CNAME                 status.ahlab.org
manifest.webmanifest  PWA metadata

The social card

Pasting the URL into WhatsApp/Slack/iMessage renders og-image.png — a 1200×630 branded card, not the bare lab logo (which chat apps blow up to full width). Edit og-card.html, then regenerate:

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
  --headless=new --hide-scrollbars --window-size=1200,630 \
  --screenshot="og-image.png" "$(pwd)/og-card.html"

Chat apps cache previews aggressively — after deploying, re-scrape via the Facebook Sharing Debugger or append a throwaway ?v=2 to the URL to see the new card.

Why an iframe and not fetch()

A domain-gated Apps Script app needs the visitor's Google session to enforce the @ahlab.org gate; a cross-origin background fetch() from a static origin can't carry it. The iframe does — and inside it the dashboard talks to its server via google.script.run (Apps Script's internal bridge, not a cross-origin request), so there is no CORS.

Deploy

GitHub Pages serves this repo's main branch root.

git add -A && git commit -m "" && git push    # that's the deploy

CNAME pins the custom domain. Point status.ahlab.org at augmented-human-lab.github.io in DNS and set the custom domain in the repo's Pages settings (done once).

Changing the embedded app

The embedded /exec URL is hard-coded in index.html (two spots). It must match the fixed deployment ID in the ahl-status-appscript repo's deploy.js. That repo always releases with node deploy.js, which keeps the /exec URL stable — so this file rarely changes.

About

AHL System Status — public static wrapper at status.ahlab.org

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages