435535339581d43c2bf7410788ea6aa07524c64d
PushEvent payloads carry `created`, `forced`, `distinct_size`, and `ref` flags that I wasn't consulting — the result on the timeline was "pushed 0 commits" for what were actually branch creations (distinct_size 0 because the commits already existed elsewhere) and force-pushes that didn't change the resulting tree. * created=true → "created branch X in repo" + GitBranchCreate icon * forced + size>0 → "force-pushed N commits to repo:branch" * forced + size==0 → "force-pushed repo:branch" * normal + size>0 → "pushed N commits to repo:branch" (unchanged) * normal + size==0 → "pushed to repo:branch" (no awkward "0 commits") Also: drop the instagram, facebook, and steel-horse-adventures links from the UI header — those represent personae the user no longer wants to surface from rob.tn. Tests: +3 in presentation/github.rs covering the new push branches — 21 total green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
moments
Personal activity timeline for rob.tn. Polls public sources (GitHub, Gitea, hg-edge.mozilla.org, bugzilla.mozilla.org), stores raw payloads in Postgres, and serves a reshaped timeline to a static React frontend.
Successor to the now-defunct grenade-events-react, which depended on MongoDB Stitch (retired by MongoDB in September 2022).
Layout
crates/
moments-entities/ # types and DTOs
moments-core/ # ingestion + reshape logic
moments-data/ # postgres adapter + migrations
moments-api/ # axum read-only HTTP API (binary)
moments-worker/ # ingestion daemon (binary)
ui/ # vite + react + swc + ts frontend
asset/ # systemd, nginx, firewalld, manifest.yml
script/deploy.sh
Architectural conventions follow grenade/architecture/generic.md.
Local development
cargo build --workspace
cargo run -p moments-api # serves on 127.0.0.1:8080
cargo run -p moments-worker # one-shot ingest tick (until --interval is wired up)
The API expects a Postgres reachable at DATABASE_URL. For magrathea, that's an mTLS connection using the host cert. For local dev against a throwaway database:
DATABASE_URL=postgres://localhost/moments cargo run -p moments-api
Migrations live in crates/moments-data/migrations/ and run automatically on API startup.
Deployment
See asset/manifest.yml and script/deploy.sh.
Description
Languages
Rust
61.4%
TypeScript
24.3%
Shell
12.1%
CSS
1.4%
HTML
0.8%