Skip to content

[FEAT] Activity feed — recent commits and PR events #33

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Summary

Add a chronological activity feed showing the user's most recent GitHub events (commits, PR opens/merges, issue closes).

What to build

  • New API route: GET /api/activity
    • Fetch from GET /users/{login}/events?per_page=30
    • Filter to: PushEvent, PullRequestEvent, IssuesEvent
    • Map each to { type, repo, message, date, url }
  • New component: src/components/ActivityFeed.tsx
    • Render a scrollable list (max height ~320px)
    • Each entry: icon (commit/PR/issue), repo name, short message, relative time (e.g. "2h ago")
    • Use date-fns/formatDistanceToNow (already a dependency)

Where to add

New row at the bottom of src/app/dashboard/page.tsx, full width.

Acceptance criteria

  • Shows last 20 events
  • Three event types with distinct icons
  • Relative timestamps
  • Links open in new tab
  • Loading skeleton

Difficulty

Medium — straightforward API + list component.

Metadata

Metadata

Labels

enhancementNew feature or requestgssoc26GSSoC 2026 contributionlevel2GSSoC Level 2 - Medium complexity (25 points)mediumMedium difficulty task~4hEstimated 4 hours

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions