T-021: Project pages on the site: changelog, board, inbox
Goal
Evan can see the daily changelog, the ticket board and his inbox from the deployed app, on his phone.
Scope
- A
/log/section of the site built fromCHANGELOG.md,tickets/README.md,INBOX.mdanddocs/updates/at deploy time, including the images in the updates. - A link to it from the viewer.
- Phone-friendly, readable, fast. No framework needed.
Done when
- ☐ Deployed and screenshotted at phone width in
docs/media/T-021/.
Result
Preview: log-pages.alife-kz9.pages.dev/log (viewer with the new Log link at
log-pages.alife-kz9.pages.dev). Production is untouched; it gets /log/ on the
next scripts/deploy-web.sh after merge.
scripts/build-log.py <out_dir>: a static generator in Python 3.9 standard library, with its own small markdown renderer. Builds in about 0.2 s. Pages: home (open inbox items first, then the newest changelog day, latest update, what is running, board bar), inbox, changelog, board, one page per ticket, updates list and one page per update.scripts/deploy-web.shruns it intodist/logon every deploy, and has--branch NAMEfor preview deployments.crates/viewer/web/index.html: one "Log" link, top right. Nothing else changed there.- Home page is 14 KB, served as 4.9 KB with brotli, one request (CSS and JS inline).
- Images in updates: relative, repo and absolute paths (from any checkout) all resolve.
Copies go to
/log/files/<repo path>; big PNG/JPEG files also get a 1400 px JPEG for display. Checked with a sample update (not committed), screenshotdocs/media/T-021/update-sample-local.png.docs/updates/does not exist yet; the Updates page says so. - "NEW" and "MOVED" markers for things that changed since the last visit on that phone, and
"Today / Yesterday / N days ago" labels computed on the phone. Checked by building twice
with a changed
CHANGELOG.mdand one Chrome profile (docs/media/T-021/changelog-new-marker-local.png). - Full description and conventions:
docs/VIEWER.md, section "Project pages".
Screenshots at 390×844 in docs/media/T-021/: home.png, inbox.png, inbox-dark.png,
changelog.png, board.png, ticket-T-002.png, updates.png, viewer-link.png.
Not done or uncertain: not opened on a real phone; all checks are headless Chrome at phone width. Links to non-page repo files go to GitHub, which needs Evan signed in because the repo is private.