Skip to content

feat(ui): implement reusable metric cards and skeleton loaders for dashboard optimization#529

Open
DebasmitaBose0 wants to merge 1 commit into
sreerevanth:mainfrom
DebasmitaBose0:feature/ELUSoC_2026-ui-enhancements-fresh
Open

feat(ui): implement reusable metric cards and skeleton loaders for dashboard optimization#529
DebasmitaBose0 wants to merge 1 commit into
sreerevanth:mainfrom
DebasmitaBose0:feature/ELUSoC_2026-ui-enhancements-fresh

Conversation

@DebasmitaBose0

Copy link
Copy Markdown
Contributor

Summary

Enhances the main frontend dashboard by introducing reusable components (MetricCard) and smooth pulsing loaders (SkeletonLoader) to mitigate layout shifts and improve visual aesthetics during slow database or telemetry network fetches.

Proposed Changes

  • [NEW] SkeletonLoader.tsx : Declares a reusable loading element displaying a modern pulsing linear-gradient shimmer layout.
  • [NEW] MetricCard.tsx : Extracts metrics rendering into a modular, reusable container component capable of rendering standard metrics or transitioning to skeleton-loader states.
  • [NEW] dashboard_components.css : Implements glassmorphism card backgrounds, transition shifts, color indicators for positive/negative trends, and custom shimmer keyframe animations.
  • [NEW] dashboard_demo.tsx : Implements a standalone demo page illustrating the loading states and the responsive metric-card grid setup.
  • [MODIFY] index.tsx : Integrates the Next.js router instance and hooks up a navigation link in the main header to access the demo view.

Verification Plan

Verified that the Next.js application compiles and loads routes successfully.

Closes #519

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@DebasmitaBose0, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b348bd1c-0a84-4259-b304-ea4b4f725cce

📥 Commits

Reviewing files that changed from the base of the PR and between 4361d01 and 1e09e04.

📒 Files selected for processing (5)
  • frontend/components/MetricCard.tsx
  • frontend/components/SkeletonLoader.tsx
  • frontend/pages/dashboard_demo.tsx
  • frontend/pages/index.tsx
  • frontend/styles/dashboard_components.css
✨ 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.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🧪 PR Test Results

Check Result
Tests (pytest tests/) ✅ success
Lint (ruff check .) ❌ failure
Coverage (agentwatch) 73.43%

Python 3.12 · commit 1e09e04

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.

[FEATURE]: ELUSoC_2026: Enhance Dashboard with Reusable Components and skeleton loaders for Visual Optimization

1 participant