Skip to content

feat: Better Top Repositories — auto-expand and pin-to-top#6

Merged
rrbe merged 4 commits intomainfrom
worktree-precious-enchanting-galaxy
Apr 14, 2026
Merged

feat: Better Top Repositories — auto-expand and pin-to-top#6
rrbe merged 4 commits intomainfrom
worktree-precious-enchanting-galaxy

Conversation

@rrbe
Copy link
Copy Markdown
Owner

@rrbe rrbe commented Apr 13, 2026

Summary

  • Auto-expand the "Top repositories" sidebar list until at least 20 repos are shown (max 5 clicks)
  • Works on Dashboard, Feed page (/feed), and the navigation drawer on any page
  • Pin-to-top: hover over any repo to reveal a pin icon; click to pin it to the top of the list. Pinned repos persist via chrome.storage.local
  • Stabilizes sidebar scrollbar gutter (scrollbar-gutter: stable) to prevent layout shift when the list expands
  • Adds isDashboardPage() detector and a new toggleable feature flag (feature-better-top-repos) in extension settings
  • Feature screenshot added to README and README_CN

Test plan

  • Load extension and visit github.com dashboard
  • Verify "Top repositories" auto-expands beyond the default 10
  • Toggle the feature off in settings and verify it stops auto-expanding
  • Navigate away and back to dashboard, verify it expands again
  • Hover over a repo and click the pin icon — repo moves to top
  • Refresh page — pinned repos remain at top
  • Click a pinned repo's icon to unpin — repo returns to original position
  • Verify feature works on /feed page
  • Verify feature works in the navigation drawer (hamburger menu)

🤖 Generated with Claude Code

Auto-click the "Show more" button on the GitHub dashboard to load all
repos instead of the default 10. Adds a toggleable feature flag in
the extension settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rrbe rrbe force-pushed the worktree-precious-enchanting-galaxy branch from 7166cd4 to 83621ed Compare April 14, 2026 01:37
Allow users to pin favorite repos to the top of the "Top repositories"
sidebar list. Pinned repos show a filled pin icon and are reordered
above unpinned ones. Also stabilizes scrollbar gutter to prevent
layout shift when the list expands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rrbe rrbe changed the title feat: auto-expand Top Repositories on dashboard feat: Better Top Repositories — auto-expand and pin-to-top Apr 14, 2026
rrbe and others added 2 commits April 14, 2026 10:15
- Track injection per <li> instead of per <ul> so repos loaded after
  "Show more" also get pin icons
- Shrink pin icon from 16px to 12px for subtlety
- Use transparent background with GitHub-native hover colors
- Add CLAUDE.md guideline: avoid modifying GitHub's original DOM

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d to 20

- Rename dashboard-top-repos to better-top-repos across all files
- Remove isDashboardPage() gate so feature works on feed page and
  navigation drawer wherever "Top repositories" appears
- Keep clicking "Show more" until >= 20 repos or max 5 clicks
- Add feature screenshot to README and README_CN

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rrbe rrbe merged commit fd992eb into main Apr 14, 2026
@rrbe rrbe deleted the worktree-precious-enchanting-galaxy branch April 14, 2026 02:26
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