feat(changelog): real-data activity feed for landing page#34
Merged
nicholasalanbrown merged 6 commits intomainfrom Mar 1, 2026
Merged
feat(changelog): real-data activity feed for landing page#34nicholasalanbrown merged 6 commits intomainfrom
nicholasalanbrown merged 6 commits intomainfrom
Conversation
- Add scripts/generate-changelog.ts: diffs utilities/ISOs/RTOs/BAs against a .snapshot and writes data/changelog.json with structured recentlyUpdated + newlyAdded entries - Add types/changelog.ts: ChangelogEntry and Changelog types - Update lib/data.ts: import changelog.json, export getChangelog() - Update app/(shell)/page.tsx: consume real changelog instead of hardcoded RECENT_UPDATES / NEWLY_ADDED arrays; relative timestamps computed from isoTimestamp at render time; avatar colors derived deterministically from entity name - Add data/changelog.json: initial seed (first run, all entities new) - Update .gitignore: ignore data/.snapshot/ (large, local-only) - Add package.json script: generate:changelog Run `npm run generate:changelog` after any sync script to update the feed. On each run it diffs current data vs snapshot, prepends new entries to the existing changelog, and updates the snapshot.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Appends generate:changelog to the sync-all pipeline so changelog.json is updated automatically every time sync:all runs. No manual step needed. Also adds sync:all to package.json scripts (was missing).
Hand-crafted entries using real entity slugs/names from the dataset. All entities exist in utilities.json / isos.json / balancing-authorities.json. Update details match what sync scripts actually produce. Will be overwritten by real diffs on next sync:all run.
- New app/(shell)/changelog/page.tsx: full feed of all changelog entries, merged and sorted newest-first, grouped by calendar date. Stats bar (updated/added/total), date dividers, entry badges (New/Updated). - layout.tsx: add Changelog nav item between API and About - page.tsx: fix both 'View all changes' and 'View changelog' links to point to /changelog instead of GitHub
Detail pages (grid-operators, balancing-authorities, ev-charging,
power-plants, pricing-nodes — all [slug] routes): maxWidth={1200}
Content pages (about, changelog): maxWidth={900}
List pages with full-width filter+table layouts left unchanged —
they need to stretch to fill available space.
Uses PageLayout maxWidth prop (number, px) from @texturehq/edges.
…actor)
- Detail pages: take main's version (StatList refactor + maxWidth={896})
which supersedes our maxWidth={1200} addition
- Landing page: merge both import sets — keep changelog imports (getChangelog,
ChangelogEntry) + add useGlobalSearch from main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the hardcoded
RECENT_UPDATES/NEWLY_ADDEDarrays on the landing page with a real diff-based changelog feed.How it works
scripts/generate-changelog.ts— diffs currentdata/utilities.json,isos.json,rtos.json, andbalancing-authorities.jsonagainst a local snapshot (data/.snapshot/, gitignored). Emits structured changelog entries for updated and newly-added entities, merges with the existingdata/changelog.json, and updates the snapshot.data/changelog.json— tracked in git; updated manually after syncs. Schema:{ updatedAt, recentlyUpdated[], newlyAdded[] }. Each entry has:kind,entityType,name,slug,detail(human-readable description of what changed),isoTimestamp.Landing page — consumes
getChangelog()fromlib/data.ts. Relative timestamps computed at render time fromisoTimestamp. Avatar colors derived deterministically from entity name.Update workflow
After running any sync script:
Notes
data/.snapshot/is gitignored — it lives locally on the machine running syncs.