A Linear-style completion tracker for the UWE iPGCE module, combining curated assessment requirements with scraped PebblePad workbook content.
Live site: enable GitHub Pages (Settings → Pages → GitHub Actions) after pushing to main. The app is served at https://<username>.github.io/pppad/.
- Curated requirements — School permission, Assessment A/B, teaching log, Panopto, AI policy, and formative items with checklists, deadlines, and contacts.
- Scraped cross-reference — Each task links to matching PebblePad page excerpts from
out/pebblepad-walk-*.json. - Progress tracking — Task status, per-item checklists, and notes stored in your browser (
localStorage). - Linear-inspired UI — Dark theme, shadcn-style components, compact sidebar navigation.
Use capture-dom (not walk) to crawl the same links as walk and save page.content() HTML per page plus a manifest:
npm install
npm run build
# Recommended for PebblePad workbooks (hash routes + v3/atlas subdomains):
npm run scrape:htmlOr explicitly:
npm run dev -- capture-dom \
--preserve-hash \
--shared-host-suffix pebblepad.co.uk \
--log-queue \
-o ./outWorkflow:
- A Chromium window opens with your saved profile (
~/.pebblepad-req-profileby default). - Log in and navigate to your workbook starting page.
- Return to the terminal and press Enter once.
- The tool follows in-scope links and writes rich captures per page:
out/pebblepad-dom-<timestamp>/
manifest.json
pages/
p001-<pageId>/
page.html # full DOM (may show empty student form UI)
content.txt # readable text: workbook + linked PDF/DOCX extracts
snapshot.json # links, heuristics, extraction metadata
summary.json
linked-docs/ # downloaded briefs as .txt (when found on the page)
Important: PebblePad often shows This form is yet to be completed in HTML for unfilled student forms. The real brief is usually in linked Word/PDF files — those are downloaded into linked-docs/ and merged into content.txt. Viewer (#/viewer/...) routes are not crawled as separate pages; documents are harvested from workbook pages instead.
Check manifest.json → captureQuality per page: rich, placeholder-only, etc.
Single page only: npm run dev -- capture-dom --single
Text/requirements report (no HTML): npm run dev -- walk --help
After a new walk or capture-dom session, refresh the web scrape index:
npm run build:scrape # from repo root — walk index + unified DOM text assets
# or: cd web && npm run build:scrapeThis writes web/public/unified-scrape.json and copies text only (content.txt, linked-docs/) into web/public/scrape/<session>/ for GitHub Pages. Full HTML (~100MB+) stays in out/ and is not deployed.
On each task, open the Sources tab (or pick a page in the Scrape library under the sidebar):
| Tab | What it shows |
|---|---|
| Readable | Raw content.txt — workbook text plus linked brief extracts |
| Page | Reconstructed view in the tracker’s dark theme (workbook + linked docs) |
| Linked docs | Individual files from linked-docs/ |
| Walk | Heuristic excerpt from the older walk JSON scrape |
cd web
npm install
npm run devFor local dev with root path / instead of /pppad/:
VITE_BASE_PATH=/ npm run devProduction build (uses /pppad/ base by default):
cd web && npm run build- Create a GitHub repo and push this project to
main. - Settings → Pages → Build and deployment → Source: GitHub Actions.
- Push to
main; the workflow in.github/workflows/deploy-pages.ymlbuildsweb/and deploys.
If your repository name is not pppad, set VITE_BASE_PATH in .github/workflows/deploy-pages.yml to match /<repo-name>/.
The built scrape text assets under web/public/scrape/ and web/public/unified-scrape.json are included in the deploy (run npm run build:scrape before committing if you refresh captures).
GitHub Pages cannot run a database server. Progress sync uses a private GitHub Gist in your own account (via OAuth). You only need a GitHub OAuth App — no Supabase, Firebase, or files on your computer.
- GitHub → Settings → Developer settings → OAuth Apps → New OAuth App
- Application name:
IPGCE Tracker(anything) - Homepage URL:
https://YOUR_USER.github.io/pppad/ - Authorization callback URL: same as homepage (must match exactly)
- Application name:
- Copy the Client ID (not the client secret — the SPA uses PKCE).
- Repo Settings → Secrets → Actions →
VITE_GITHUB_CLIENT_ID= that client ID. - Local dev:
web/.env.localwithVITE_GITHUB_CLIENT_ID=...
On the live site, click Save to GitHub, authorize gist scope, and progress is stored in a private gist named ipgce-tracker-progress-v1. You can open it from the Gist link in the header.
- Without sign-in: progress stays in the browser (
localStorage) on that device only. - With sign-in: progress lives in a private gist under your GitHub user. Scrape content in
web/public/is public static data — no PebblePad login is stored.