Skip to content

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

Closed
jason020818 wants to merge 1 commit into
e35ventura:testfrom
jason020818:feat/home-at-a-glance
Closed

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

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 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.
  • Reuses the existing card styling — minimal new CSS, no new dependencies.

Screenshots

Homepage / at 1280px viewport. The band shows the live build-time counts, so the figures naturally track the content as it grows — the screenshots demonstrate the layout.

Before (no scale shown under the hero):

before

After (At A Glance band under the hero):

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 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 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. Reuses the existing card
styling.

Refs e35ventura#521
@jason020818
jason020818 requested a review from e35ventura as a code owner July 2, 2026 19:36
@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: Close

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

This PR changes hover-driven on-screen behavior. Code analysis confirms the visible effect only appears during the interaction, so static before/after screenshots cannot demonstrate it (an identical-looking pair is not valid evidence). A short screen recording or GIF is required.

Visual PRs need evidence in the PR description so the maintainer can review the change quickly and reliably. A deploy preview link alone is not enough.

Required evidence for resubmission:

  • Page URL.
  • Viewport width, especially for responsive changes.
  • Action taken (the hover that reveals the change).
  • Expected before behavior.
  • Expected after behavior.
  • A short video/GIF that shows the change happening during the interaction. Static screenshots alone are not accepted for this PR.

Changed files:

  • src/pages/index.astro

CI: Checks still pending: build

Please open a new focused PR with the required evidence attached.


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