1# An owner's page has their activity grid between the shelf tabs and the2# list: a year of days, a button each named with its date and commits,3# coloured by its share of the busiest day, the panel's head strip the4# year's total. It counts commits on the default branches of their public5# repos, from the lake (forge lake), and is there without JS.6. "$(dirname "$0")/../lib.sh"7. "$(dirname "$0")/../activity-fixture.sh"8p=$FORGE_WWW/dami/index.html9has "$p" '<section class="panel activity-panel"><header class="panel-head"><b class="act-total">8 commits</b><span>in the last year</span></header>'10has "$p" 'aria-label="2026-09-01: 3 commits" title="2026-09-01: 3 commits"'11has "$p" 'class="l3 a0" data-day="2026-09-01" data-n="3"'12has "$p" 'class="l4 a0" data-day="2026-09-03" data-n="5"'13has "$p" 'aria-label="2026-09-02: 0 commits"'14# 53 weeks to today, Sunday first, each day marked with its week's age15# (so a narrow grid can leave out the oldest).16has "$p" 'class="l0 a52" data-day="2025-08-31"'17eq "$(grep -o 'data-day="[0-9-]*"' "$p" | tail -n 1)" 'data-day="2026-09-03"'18eq "$(grep -o 'class="l[0-4] a52"' "$p" | wc -l | tr -d ' ')" 719# The same with JS, from the page's data and the activity.json beside it.20eq "$(node --no-warnings "$T_HOME/test/page.ts" activity "$p")" "8 commits in the last year21 2026-09-01: 3 commits l322 2026-09-03: 5 commits l423all 3: notes go chess24address: "