← back to AbramsEgo

build-queue/done/05-git-activity-feed.md

15 lines

# AbramsEgo task 05 — git activity feed across ~/Projects

Read SPEC.md first. Build panel 6's git activity feed.

1. `server.js`: add an authed `GET /api/activity` that scans the ~25 most-recently-modified
   git repos under `~/Projects` and returns their latest 1-2 commits (repo, short hash, subject,
   author-date ISO), merged and sorted newest-first, capped at 40 rows. Cache in the snapshot
   with stale-while-revalidate (this shells out to git — keep it off the hot path).
2. `public/index.html`: render an "Activity" feed. Each commit row is an admin card → show
   the commit date+time per Steve's hard rule (🕓, toLocaleString, full ISO in title=).
3. Verify: `pm2 restart abramsego`, curl `/api/activity` non-empty, feed renders newest-first.
   Commit `feat: cross-repo git activity feed`.

Local only. Read-only git (log/for-each-ref). No deploy/publish.