8356
Wx
www-xonecas-io / files
www-xonecas-io / tickets / 1027-the-mocks-have-a-activity-page-lets-make-it-real.md
2.6 KB
1--- 2id: 1027 3title: the mocks have a /activity page lets make it real 4type: feature 5status: done 6priority: p2 7created: 2026-11-08T04:27:16Z 8updated: 2026-11-08T20:16:26Z 9source: human 10area: site 11moves: 2026-11-08T04:28:43Z inbox doing drag; 2026-11-08T04:34:24Z doing review agent; 2026-11-08T20:16:26Z review done drag 12--- 13 14 15## Notes 16 17- 2026-11-08 04:27Z (agent): Triage: type feature (it was bug), priority p2, area site. No typos to fix. 18 19 The mock is the 'Activity' page in the 1001 attachments ('02 layout in 20 style, light and dark'). Its caption: 'Years as heat, 2026 by month, then the commit feed by day.' The mocks also have 'Activity' in the header nav, after Overview and Projects. 1010 removed that nav link because no page existed; this ticket brings it back. The data is already there: per-month counts (homepage wall) and each project's commit log (commit pages, 1009). 20 21- 2026-11-08 04:34Z (agent): Done. /activity is real, following the 1001 mock ('Years as heat, 2026 by month, then the commit feed by day'), built from the site's own components. 'Activity' is back in the header nav. 22 23 - /activity/ is the latest year; /activity/<year>/ exists for every year 2011-2026, 2019 included ('No commits in 2019.'). 24 - Left: Years, each a heat bar and count, linking to its page, the current one in accent. Main: the year's total in the big block, 'commits in <year>', the 12-month strip with counts, then the feed grouped by day ('Sat 7 Nov', N commits). Each row uses the style guide's commit-row: project tile, name, hash linking to the commit page, subject. The date per row is dropped there, since the day heading says it. 25 - 'My commits' uses the same rule as every other count (project.Me authors, each hash once), so the totals match the homepage wall. 26 - internal/site/activity.go (new), templates/activity.html (new). writeCommits now returns its log, so Build collects the feed without reading git twice. commit-row's hash is a link when it has one. build_test checks the page lists a commit; its test source needed Commits: 1, or readLog skipped it. 27 28 CHECKED: go vet, go test pass. Every year page's headline count equals its feed rows (2026: 2057 = 2057; all 16 years match, 0 mismatches). agent-browser: clicked 2011 in Years, which opened /activity/2011/ (55 days, 2011 marked); clicked a hash, which opened its commit page. Screenshots at 1440 light and 390 dark, no sideways scroll. 29 30 NOT CHECKED / WATCH OUT: the 2026 page is 1.9 MB of HTML (132 KB gzipped) for 2057 rows; no paging. On phones the header now wraps to three rows (logo / nav and theme button / search), because three nav links no longer fit beside the logo at 390px.