Skip to content

feat: add weekly productivity summary dashboard - #2717

Open
karthikeyakakarlapudi2007 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
karthikeyakakarlapudi2007:feature/weekly-productivity-summary
Open

karthikeyakakarlapudi2007 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
karthikeyakakarlapudi2007:feature/weekly-productivity-summary

Conversation

@karthikeyakakarlapudi2007

Copy link
Copy Markdown

Description

This PR introduces the Weekly Productivity Summary feature to DevTrack, providing users with a consolidated overview of their weekly development activity and productivity trends.

Features Implemented

  • Added a dedicated Weekly Productivity Summary section to the dashboard.

  • Displayed key weekly metrics such as:

    • Total commits
    • Pull requests
    • Issues created
    • Repositories contributed to
  • Added comparison between current week and previous week statistics.

  • Included productivity insights such as contribution trends and activity patterns.

  • Added responsive UI to ensure seamless experience across desktop, tablet, and mobile devices.

  • Maintained consistency with the existing DevTrack design system.

Testing Performed

  • Verified weekly statistics calculations.
  • Tested comparison logic for current and previous week data.
  • Ensured responsive behavior across different screen sizes.
  • Confirmed that existing dashboard functionality remains unaffected.
  • Verified that the project builds successfully without errors.

Related Issue

Closes #

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels Jun 23, 2026
@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) labels Jun 23, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Umbrella-io — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@karthikeyakakarlapudi2007

Copy link
Copy Markdown
Author

Hi @Umbrella-io,

This PR implements the Weekly Productivity Summary feature as discussed in the issue.

Implemented:

  • Weekly productivity summary section
  • Weekly statistics and insights
  • Comparison with previous week's activity
  • Responsive UI consistent with the existing design
  • Documentation updates where applicable

Kindly review the PR and provide your valuable feedback. I would be happy to make any required changes.

Thank you.

@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

Thanks for the contribution! We are currently in a code cleanup sprint and not accepting new features. Please see the discussion for details: #2651

This PR will be revisited once the sprint ends. In the meantime, contributions to testing, refactoring, bug fixes, or documentation are welcome.

@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

New UI/feature PRs are on hold during the code quality sprint — see discussion #2651. PRs for tests, refactoring, bug fixes, docs, and performance are welcome.

@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

New feature/UI PRs are on hold during the code-quality sprint — see discussion #2651. We'll revisit after the sprint; tests, refactors, and bug-fix PRs are the priority right now.

@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

I merged this onto current main and rendered it — it's the weekly-summary implementation I want to keep (focused: 8 files, clean theme-aware components, proper skeleton/error states, responsive grid). But it has two bugs that need fixing first, and the second one is serious:

1. Syntax error — the route doesn't compile. src/app/api/metrics/weekly-summary/route.ts has an extra } around line 344 (the for (let i = 6…) loop closes one brace too many), which orphans the returntsc fails with TS1005 / TS1128. Remove the extra closing brace.

2. Dashboard-crashing shape mismatch. In WeeklyProductivitySummary.tsx the local type declares issues: { thisWeek: number; lastWeek: number } (line ~16) and passes issues={data.issues.thisWeek} to WeeklyStatsCard (which renders {issues} as a number). But the route actually returns issues.thisWeek as { opened, closed } (an object). At runtime React throws "Objects are not valid as a React child (found: object with keys {opened, closed})" and the entire dashboard falls back to the error boundary ("Something went wrong") — I've attached what it renders. TypeScript misses it because the fetch response is untyped. Fix by rendering a number (e.g. data.issues.thisWeek.opened, or opened+closed) and correcting the local type to match the route's {opened, closed} shape.

Fix those two, get pnpm type-check green and confirm the dashboard renders, and I'll merge — this is the version I'm going with for the weekly cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants