Skip to content

Load the full Agent Score leaderboard after the page loads - #1200

Merged
InlinePizza merged 2 commits into
mainfrom
better-agent-score
Oct 25, 2026
Merged

InlinePizza merged 2 commits into
mainfrom
better-agent-score

Conversation

@InlinePizza

Copy link
Copy Markdown
Contributor

Proposed changes

The Agent Score leaderboard showed the top 24 sites and nothing else, so visitors had no way to tell that many more sites had been scored. The leaderboard now shows the top 24 first. When totalSites is larger than that, the page fetches up to 1,000 entries and replaces the list, without a click. If that second request fails, the top 24 stay on screen. When more than 1,000 sites have been scored, a note under the list reads "Showing the top 1,000 of N scored sites."

The leaderboard container no longer has aria-live. With it, a screen reader would read out the whole list when the full load finishes, which can be 1,000 links.

The mock API's limit cap goes from 100 to 1000 to match the backend.

Merge order: deploy the backend change on the better-agent-score branch of Promptless/promptless first. That change raises the leaderboard's maximum limit from 100 to 1000. Until it ships, the full load returns only 100 sites.

Checklist

  • Instructions and examples match the current product behavior.
  • Links and image references are valid.
  • Changed pages render correctly.

astro check reports 0 errors. I haven't checked the page in a browser. The local mock serves 11 sites, which is fewer than 24, so the full load never runs against it.

The leaderboard showed only the top 24 sites with no sign that more had
been scored. A button under the list now shows the total site count and
loads up to the API's 1000-entry limit. The mock API's limit cap matches.
The top 24 sites render first, then the page replaces them with up to
the API's 1000-entry limit without a click. The list drops aria-live so
screen readers don't announce up to 1000 links.
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
promptless-docs Ready Ready Preview Oct 25, 2026 2:44pm UTC

Request Review

@InlinePizza
InlinePizza merged commit d485c7d into main Oct 25, 2026
3 checks passed
@promptless

promptless Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Promptless documentation updates

This branch was successfully deployed

1 active deployment
Preview — ab350ddd Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant