Skip to content

UI: show excluded repositories on region pages#132

Open
stepanic wants to merge 1 commit into
ashkulz:gh-pagesfrom
stepanic:feature/ui-excluded-repos
Open

UI: show excluded repositories on region pages#132
stepanic wants to merge 1 commit into
ashkulz:gh-pagesfrom
stepanic:feature/ui-excluded-repos

Conversation

@stepanic

Copy link
Copy Markdown

Summary

Renders the excluded_repos list (emitted by the counter) on each region page, so it's transparent which repositories are excluded from the contribution counts and why.

Companion to the code PR #131, which adds repository exclusion and publishes excluded_repos: in the per-location YAML.

Details

  • Adds a conditional block in _layouts/default.html that lists the excluded repositories (linked to GitHub) with a short explanation.
  • The block only renders when location.excluded_repos is present, so pages whose data hasn't been regenerated yet are completely unaffected.

Testing

  • Rendered the Liquid fragment against real generated YAML (croatia): the excluded repo is listed and linked.
  • Verified the block renders nothing when excluded_repos is absent (backward compatible).

🤖 Generated with Claude Code

@stepanic stepanic force-pushed the feature/ui-excluded-repos branch 2 times, most recently from 7083762 to 5c085c2 Compare June 25, 2026 15:17
- Moves the excluded-repositories notice to the top of each region page (right
  under the title) so it's immediately visible, and shows the count of excluded
  repos in the heading.
- Shows the per-user amount removed ("−N excluded") next to a user's contributions
  when their count was reduced by an excluded repository, making it clear why a
  user is ranked where they are.

Both are conditional on the new fields emitted by the counter (excluded_repos and
per-user excluded), so pages whose data predates this are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@stepanic stepanic force-pushed the feature/ui-excluded-repos branch from 5c085c2 to aa2f96b Compare June 25, 2026 15:23
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