Skip to content

Add repo sidebar activity cards for PRs, issues, and discussions#81

Merged
stylessh merged 1 commit intomainfrom
stylessh/repo-sidebar-cards
Apr 12, 2026
Merged

Add repo sidebar activity cards for PRs, issues, and discussions#81
stylessh merged 1 commit intomainfrom
stylessh/repo-sidebar-cards

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • Adds a side panel outside the main content card on the repo overview page with floating activity cards showing the latest 5 open PRs, issues, and discussions (when enabled)
  • Portal-based architecture lets any page inject content into the layout-level side panel slot without coupling to the layout
  • Animated show/hide with spring-based width transition and a toggle button on the content card edge
  • Open counts fetched cheaply via per_page=1 + Link header parsing (REST) and GraphQL totalCount (discussions), with issue count corrected to exclude PRs
  • New types: DiscussionSummary, DiscussionsResult, and RepoOverview extended with openPullCount, openIssueCount, hasDiscussions

Test plan

  • Navigate to a repo overview page and verify PR, issue, and discussion cards appear in the right sidebar
  • Verify counts match GitHub's actual open PR/issue/discussion counts
  • Toggle the sidebar with the arrow button on the card edge — animation should be smooth
  • Navigate away from the repo page and verify the sidebar disappears
  • Test on a repo without discussions enabled — discussion card should not render
  • Test on xl and smaller breakpoints — sidebar should only show on xl+

Portal-based side panel outside the main content card shows latest 5 open
PRs, issues, and discussions (when enabled) for the current repo. Includes
animated show/hide with spring transitions, a toggle button on the card
edge, and open counts from lightweight API calls (per_page=1 + Link header
parsing for REST, GraphQL totalCount for discussions).
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
diffkit cdf9b42 Commit Preview URL

Branch Preview URL
Apr 12 2026, 09:50 PM

@stylessh stylessh merged commit 9dff7ac into main Apr 12, 2026
4 checks passed
stylessh added a commit that referenced this pull request Apr 18, 2026
Portal-based side panel outside the main content card shows latest 5 open
PRs, issues, and discussions (when enabled) for the current repo. Includes
animated show/hide with spring transitions, a toggle button on the card
edge, and open counts from lightweight API calls (per_page=1 + Link header
parsing for REST, GraphQL totalCount for discussions).
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