1# A shelf's tab on an owner's page shows that shelf's repos alone, in one2# panel named for it with its count, newest first; "all" brings back every3# repo.4. "$(dirname "$0")/../lib.sh"5user dami6for r in chess go notes blog; do7 repo "dami/$r"8 clone dami "dami/$r" "$T/w/$r"9 tick 360010 at "$T/w/$r" commit "first"11 push_as dami "$T/w/$r" origin main12done13printf 'games\n' >"$FORGE_ROOT/dami/chess.git/category"14printf 'games\n' >"$FORGE_ROOT/dami/go.git/category"15printf 'tools\n' >"$FORGE_ROOT/dami/notes.git/category"16export FORGE_STRICT=117build18i=$FORGE_WWW/dami/index.html19page() { node --no-warnings "$T_HOME/test/page.ts" shelves "$i" "$@"; }20eq "$(page click '[data-shelves] a[data-shelf="games"]')" "games 2: go chess"21eq "$(page click '[data-shelves] a[data-shelf="tools"]')" "tools 1: notes"22eq "$(page click '[data-shelves] a[data-shelf="games"]' click '[data-shelves] a[data-shelf=""]')" "all 4: blog notes go chess"