Skip to content

✨ UI Enhancement: Improve Contributors Page Layout & Responsiveness#411

Open
arpit2006 wants to merge 5 commits into
GitMetricsLab:mainfrom
arpit2006:enhance/contribution-section
Open

✨ UI Enhancement: Improve Contributors Page Layout & Responsiveness#411
arpit2006 wants to merge 5 commits into
GitMetricsLab:mainfrom
arpit2006:enhance/contribution-section

Conversation

@arpit2006
Copy link
Copy Markdown

@arpit2006 arpit2006 commented May 22, 2026

Pull Request

Related Issue

Closes: #409
Reference: #409


Description

Refined the Contributors page to create a more polished, premium, and responsive user experience.

✨ Improvements Made

  • Added a stronger page hero section with improved visual hierarchy
  • Introduced a Top 3 podium layout for highlighting leading contributors
  • Kept remaining contributors organized in a clean responsive grid
  • Improved card spacing, elevation, hover effects, and border styling
  • Standardized avatar sizing and framing for better visual consistency
  • Enhanced typography, spacing, and button styling for improved readability and contrast

How Has This Been Tested?

  • Verified the updated Contributors page using the editor error checker
  • Ran ESLint on Contributors.tsx
  • Ran a production build using:
npm run build

Note: Repository-wide lint and test runs still contain pre-existing failures unrelated to this change set.


Screenshots (if applicable)

w1 w2 w3

Type of Change

  • Bug fix
  • New feature
  • Code style update
  • Breaking change
  • Documentation update

Summary by CodeRabbit

  • New Features

    • Added metric widgets to dashboard (Weekly Commits, Active Repos, Contribution Matrix, Views, Trend, PRs).
    • Introduced top contributors podium display with ranking and GitHub profile links.
    • Added feature summary highlighting (Public API, Multi-user, Live insights).
  • Style

    • Redesigned hero section and dashboard layout.
    • Updated contributors page with summary section and improved visual hierarchy.
    • Refined spacing and positioning of dashboard elements.

Review Change Stack

@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit a4a0471
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a109ee7c80b8500087cceb9
😎 Deploy Preview https://deploy-preview-411--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 22, 2026

📝 Walkthrough

Walkthrough

Hero component redesigned with updated layout, CTA, and dashboard mock UI. Contributors page redesigned with ranking system, top-3 podium showcase, metric summary, and GitHub profile links integrated into contributor cards.

Changes

Hero Component Visual Redesign

Layer / File(s) Summary
Hero layout and left-column CTA
src/components/Hero.tsx
Hero section container classes, dark-mode styling, and left-column typography/call-to-action area updated with new "GitHub activity, refined" headline copy, revised button/link paths (/track, /about), and redesigned feature tile block.
Dashboard mock UI and metric widgets
src/components/Hero.tsx
Right-side dashboard mock container resized and refactored with updated "Weekly Commits" and "Active Repos" widget markup; "Contribution Matrix" grid cells updated with new class composition; new "Views", "Trend", and "PRs" metric tiles added with revised visual styles.
Floating Git icons and glow effects
src/components/Hero.tsx
Floating Git icon (branch/commit/pull request) positions and absolute offsets repositioned; icon sizing classes and card styling updated; center neon glow blur and size styling adjusted.

Contributors Page Redesign with Ranking System

Layer / File(s) Summary
Data computation and MUI imports
src/pages/Contributors/Contributors.tsx
MUI imports expanded to add Avatar, Typography, Button, Box, Progress, Alert, Chip, Stack components; new derived data computed: contributors sorted by contributions count, top 3 extracted as podiumContributors, remaining contributors calculated, and aggregated metrics (totalContributions, averageContributions) computed with zero fallback.
Loading and error state UI
src/pages/Contributors/Contributors.tsx
Loading and error render branches replaced with styled JSX wrappers using new layout containers and typography; dedicated "Loading contributors" layout and error alert presentation added.
Hero section and top-3 podium showcase
src/pages/Contributors/Contributors.tsx
Main page render overhauled with new hero section: "Community pulse" chip, headline/subtitle, summary pills displaying contributors count/total contributions/average per person; optional "Top 3 podium" card renders rank-specific podium tiles with avatar sizing, rank badges, and profile navigation links.
Remaining contributors grid
src/pages/Contributors/Contributors.tsx
Contributor grid redesigned to display remainingContributors with per-card rank chip, contribution count, avatar/login display, internal profile link, and external GitHub button using contributor.html_url.
Summary pill styling constants
src/pages/Contributors/Contributors.tsx
New local styling constants added: summaryPillStyles (layout/spacing), summaryValueStyles (summary value typography), and summaryLabelStyles (summary label typography) used by hero summary pill UI.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related issues

Possibly related PRs

  • GitMetricsLab/github_tracker#316: Extensive src/components/Hero.tsx layout/styling overhaul including hero grid split, neon cyber-grid background, dashboard mock UI with contribution matrix, and floating Git icon positioning directly ties to hero redesign foundation introduced in this prior PR.

Suggested labels

level:advanced, quality:clean, type:feature

Poem

🐰 A hero shines with metric glow,
Contributors ranked in podium row,
Dashboard widgets dance with light,
Floating icons spin just right,
UI refined from old to new! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: UI enhancements to the Contributors page focusing on layout and responsiveness.
Description check ✅ Passed The description follows the template with all required sections completed: related issue, detailed improvements, testing methods, screenshots, and change type selection.
Linked Issues check ✅ Passed All core objectives from issue #409 are addressed: improved hero section, top 3 podium layout, responsive grid, better card styling, avatar standardization, typography hierarchy, and enhanced hover/focus states.
Out of Scope Changes check ✅ Passed Changes are limited to Contributors.tsx and Hero.tsx updates directly supporting the issue requirements; no unrelated functionality or scope creep detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/components/Hero.tsx (1)

9-12: ⚖️ Poor tradeoff

Consider performance impact of multiple heavy blur effects.

The combination of several large blur effects (blur-[120px], blur-[160px], blur-[90px]) may impact rendering performance on lower-end devices. If performance issues are observed, consider reducing blur intensity or the number of layered effects.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/Hero.tsx` around lines 9 - 12, In the Hero component, locate
the decorative absolute divs that use blur-[120px], blur-[160px], and
blur-[90px] and reduce their rendering cost: either lower the blur radii (e.g.,
to ~40–60px), remove one of the layered blur elements (one of the three divs),
or conditionally disable heavy blurs for constrained devices by adding a CSS
media/query or prefers-reduced-motion check; update the className strings on
those divs (the ones with blur-[120px], blur-[160px], blur-[90px]) accordingly
so the visual effect remains but with lower GPU/paint cost.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/Hero.tsx`:
- Line 65: The Tailwind class p-4.5 used in the Hero component's container div
is non-standard; update the class string in the JSX (the div with className
starting "relative z-10 w-full max-w-lg ...") to use a valid spacing utility
such as p-4 or p-5, or if you need the exact 4.5 spacing keep the rest of the
classes and replace p-4.5 with an arbitrary value p-[1.125rem]; ensure you only
change the spacing token in that className on the Hero component.

In `@src/pages/Contributors/Contributors.tsx`:
- Around line 37-38: The code currently always renders a 3-slot podium and a
separate grid, which breaks when there are fewer than 3 contributors; update the
rendering logic to only render the podium when rankedContributors.length >= 3
(use podiumContributors = rankedContributors.slice(0,3) only for that case) and
otherwise render the standard grid using the full rankedContributors array (do
not allocate empty podium slots); also compute remainingContributors =
rankedContributors.slice(3) only when the podium is shown so the grid receives
the correct items.

---

Nitpick comments:
In `@src/components/Hero.tsx`:
- Around line 9-12: In the Hero component, locate the decorative absolute divs
that use blur-[120px], blur-[160px], and blur-[90px] and reduce their rendering
cost: either lower the blur radii (e.g., to ~40–60px), remove one of the layered
blur elements (one of the three divs), or conditionally disable heavy blurs for
constrained devices by adding a CSS media/query or prefers-reduced-motion check;
update the className strings on those divs (the ones with blur-[120px],
blur-[160px], blur-[90px]) accordingly so the visual effect remains but with
lower GPU/paint cost.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e39bffda-4c1e-40b2-b562-967ae93b1b97

📥 Commits

Reviewing files that changed from the base of the PR and between 9d34c19 and a4a0471.

📒 Files selected for processing (2)
  • src/components/Hero.tsx
  • src/pages/Contributors/Contributors.tsx

Comment thread src/components/Hero.tsx
Comment thread src/pages/Contributors/Contributors.tsx
@arpit2006
Copy link
Copy Markdown
Author

@mehul-m-prajapati , Requesting Review!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 UI Enhancement Issue: Improve Contributors Page Layout & Responsiveness

1 participant