feat(web): The Grove — contributor graph, leaderboard, VN i18n & fonts (v0.9.0)#11
Merged
Conversation
Phase 6 "The Grove": a second-brain view of the repo's shared memory plus a full Vietnamese localization and a Vietnamese-friendly type system. - Grove tab: d3-force + canvas graph (root/trunk + branches + contributors + facts), bamboo-themed, hover/click-to-drill into Branch detail. - Contributor leaderboard with weighted value score (pins x1, graduated x3) and playful badges/streaks (Gardener of the week, Most rooted, Longest streak, First sprout). - Shareable grove card (canvas -> PNG) and a growth time-lapse scrubber. - Solo/unshared fallback: contributors backfilled from `git log` authors. - New read-only endpoints /api/contributors and /api/graph, fed by a read-only .tre-mem/ JSONL reader (author already lives in the committed JSONL — no schema migration). - i18n: EN/VI toggle (persisted, auto-detect), casual/fun Vietnamese voice across every surface; localized timeAgo. - Type system: Baloo 2 (cute rounded display) + Be Vietnam Pro (VN-native body) with VN-capable system fallbacks; fixes diacritic stacking on the old serif. - Fix: .shell grid had 3 children but 2 rows — the nav row ballooned on low-content pages. Now `auto auto 1fr` so main absorbs the slack. Tests: sync-read + web-grove (pure aggregators + HTTP). 326 passing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # web/styles.css
Owner
Author
|
Merged latest
Full gate green locally: format, lint, typecheck, 326 tests, build. |
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.
Phase 6 — "The Grove" 🎋
Turns the dashboard's team-memory data into an Obsidian-style second brain: the repo trunk, its branches, and the contributors who grew it — plus a "best contributor" leaderboard, a full Vietnamese localization, and a Vietnamese-friendly type system.
Built on the realization that contributor identity already lives in the committed
.tre-mem/JSONL (author, set attre share/graduate time) — so no schema migration was needed.What's new
d3-force+ hand-rolled canvas graph. Nodes: root/trunk, branches, contributors, facts (pins = young shoots, graduated = mature culms). Bamboo palette from theme tokens (light/dark aware). Hover tooltips; click a branch/fact to drill into Branch detail, click a contributor to highlight their shoots.tre-memwordmark.git logauthors so a fresh repo is never empty (?fallback=git, flaggedgit-fallback).timeAgo..shellgrid had 3 children but only 2 rows, so the nav ballooned on low-content pages; nowauto auto 1fr.Surfaces / files
src/sync/read.ts(read-only JSONL reader),src/web/grove.ts(pure aggregators + graph builders + badges),branchAuthors()insrc/git/identity.ts, two routes insrc/web/api.ts.web/i18n.tsx,web/views/{Grove,Leaderboard,GraphCanvas,ShareCard}.tsx, Grove tab inweb/app.tsx, Overview promo banner, fonts inscripts/build-web.mjs+web/styles.css.d3-force(sim only, ~13 kb bundled). Fonts load from Google Fonts CDN.Test plan
pnpm format:check && lint && typecheck && test && build— all greentest/sync-read.test.ts,test/web-grove.test.ts) — covers value-score weighting, null-author bucketing, badges, graph shape, empty case/api/contributors+/api/graphagainst this repo (real author, 13-node graph)web/i18n.tsxfor tone/typos🤖 Generated with Claude Code