Fix #137: calm owners page + star counts #141
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!141
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-137"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owners page was cards-in-cards (intro card + one big card per owner); every repo row now also shows its star count.
Calm layout (
web/src/pages/Owners.jsx, 12 §2.3.1): per-owner.cardsections flatten to adivide-ydivider stack with a quietertext-smowner heading. Intro card, newest-first order, caps (MAX_OWNERS50 /MAX_REPOS_PER_OWNER10), and overflow links (+N more →, showing-newest-N) from #117 are unchanged. Links stay plain anchors (keyboard flow unchanged); shared.muted/emerald-link classes carry dark + light.Star counts (new
web/src/components/StarCount.jsx+web/src/lib/stars.js): every repo row on/and/:ownerrenders(N ⭐)beside the link via the existingGET …/api/social(07 §7, no backend change) under the sharedsocial:{o}/{r}30 suseDatakey — single-flighted, LRU-capped, so the two pages share fetches and repeat visits within the TTL cost zero GETs. Links render first with a muted(…)placeholder, so counts never block page render; worst case stays bounded by the #117 caps (50×10 = 500 GETs cold, each independent). Headless cover:web/test/unit/stars.test.js(fmtStars+SOCIAL_TTLcontract).Scope audit: org page has no repo listing; starred lists are SDK-only (no listing UI yet); repo chrome already shows its count via the star toggle — so
/+/:owneris everywhere a repo list renders.Verification:
node --testfull unit suite 313/313 green; real-browser drive (isolated headless-shell on own CDP port, scratch binary + filesystem store, seeded acme/{demo,web} + jane/blog) — owners + owner pages in dark and light, star counts render, zero console errors. Note: ⭐ renders as tofu in the minimal headless-shell font set; fine on real systems. No new npm deps; no backend change (Go gates N/A).