Skip to content

feat(home): add a Taopedia At A Glance statistics band - #1972

Open
jason020818 wants to merge 1 commit into
e35ventura:testfrom
jason020818:feat/home-glance-static
Open

feat(home): add a Taopedia At A Glance statistics band#1972
jason020818 wants to merge 1 commit into
e35ventura:testfrom
jason020818:feat/home-glance-static

Conversation

@jason020818

Copy link
Copy Markdown
Contributor

What & why — Refs #521

The landing page surfaces topics, core articles, subnets, and recent changes, but it never shows the overall scale of the wiki. A reader can't tell whether the knowledge base is broad or thin without leaving for Special:Statistics — the hero only mentions the article count in passing.

This adds a compact, purely static Taopedia At A Glance band directly under the hero with the three headline figures the directory already tracks — Articles, Topics, and Subnets — each linking to its Special: directory.

  • Counts come straight from the same build-time artifacts the linked pages use (the slug map, the category index, and the shared buildSubnets() roster), so the band can never disagree with Special:AllPages, Special:Categories, or Special:Subnets.
  • Topics uses the same "categories with at least one article" definition Special:Statistics reports.
  • No interaction behavior is introduced — no hover, focus, transition, or script changes anywhere in the diff. The entire visible effect is the static band shown below, so static before/after screenshots fully demonstrate the change.

Screenshots

  • Page URL: / (homepage)
  • Viewport: 1280 px wide
  • Action taken: none — the band renders statically on page load
  • Expected before: no scale information under the hero
  • Expected after: the At A Glance band under the hero, showing the live build-time counts (figures naturally track the content as it grows; the screenshots demonstrate the layout)

Before:

before

After:

after

The new band, close up:

band

Target Branch

  • This PR targets test

Testing

  • astro build renders the band on / (verified in dist/index.html)
  • node scripts/check-home-links.js passes (no bare-slug article links introduced)
  • Each figure reads from the same build artifact as the Special: page it links to (slug map → Special:AllPages, category index → Special:Categories, buildSubnets() → Special:Subnets), so the band can never disagree with them
  • The diff contains no :hover/:focus/transition/script changes — the change is fully demonstrated by the static screenshots above

The landing page surfaces topics, articles, subnets, and recent changes,
but never the overall scale of the wiki — a reader can't tell whether the
knowledge base is broad without leaving for Special:Statistics. The hero
mentions only the article count in passing.

Add a compact, purely static At A Glance band directly under the hero
with the three headline figures the directory already tracks: Articles,
Topics, and Subnets, each linking to its Special: directory. The counts
come straight from the same build-time artifacts those pages use (the
slug map, the category index, and the shared buildSubnets() roster), so
the band can never disagree with Special:AllPages, Special:Categories,
or Special:Subnets. Topics uses the same 'categories with at least one
article' definition Special:Statistics reports. No interaction styles
or scripts are introduced.

Refs e35ventura#521
@jason020818
jason020818 requested a review from e35ventura as a code owner July 2, 2026 19:46
@taopedia-site-maintainer taopedia-site-maintainer Bot added ui-ux Visual design, layout, or usability work other Maintenance, deployment, tooling, validation, or repo work outside preferred categories labels Jul 2, 2026
@taopedia-site-maintainer

Copy link
Copy Markdown

Verdict: Needs visual approval

PR #1972: feat(home): add a Taopedia At A Glance statistics band

Engineering:

  • Review type: Visual/product review
  • CI: All required CI checks passed: build
  • Cross-repo build: pass
  • Risk: medium
  • Changed files: 1
  • Changed lines: 67

Changed files:

  • src/pages/index.astro

Guardrails:

  • Visual layout/style/rendering files changed; visual approval required.

Decision surface:

  • Checks and cross-repo build passed; this is waiting on visual approval only.
  • If the after screenshots look correct, comment /merge.
  • If they look wrong or the change should not ship, comment /close.

What to check:

  • Homepage: changed article/search modules, link targets, and first-screen layout.

Preview links:

  • Production reference: https://taopedia.org
  • No automatic Netlify preview is available. Comment /preview to create on-demand before/after draft deploys for this PR.

Cross-repo validation:

  • pass merged checkout: PR head eaac399 merges cleanly into test. Build/render is validated by the required GitHub Actions build check.

Human decision:

  • Review only the visual evidence shown above for product fit.
  • Comment /merge to merge if this should ship.
  • Comment /close to close if this should not ship.

Automated review by Taopedia Site Maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

other Maintenance, deployment, tooling, validation, or repo work outside preferred categories ui-ux Visual design, layout, or usability work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant