Add loading skeletons and empty states#172
Open
suyashhhh26 wants to merge 3 commits into
Open
Conversation
Author
|
Hi @Ritesh2332 @aqilaziz @Ritesh2332 @Bihan-Banerjee @prasiddhapal @utksh1 I have implemented loading skeletons, reusable loading indicators, and improved empty states across the Dashboard, Scans, and Reports pages to enhance the overall user experience during loading and no-data scenarios. The PR also includes:
I noticed that merging is currently blocked because at least one approving review is required from a reviewer with write access. Please review the PR whenever possible. Looking forward to your feedback. |
utksh1
requested changes
May 22, 2026
Owner
utksh1
left a comment
There was a problem hiding this comment.
CI is failing (formatting-hygiene and frontend-checks). Please fix the failing checks and re-push. After CI is green, I can re-review for merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Loading Skeletons and Empty States for Scan Dashboard UI
Overview
This PR improves the overall user experience of the scan-related pages by adding loading skeletons, reusable loading indicators, and informative empty states. These enhancements provide smooth visual feedback while API data is loading and improve the interface when no data is available.
Changes Made
1. Added Reusable Loading Components
LoadingSkeletonCreated a reusable skeleton component with multiple variants:
This helps display placeholder layouts while data is being fetched.
LoadingIndicatorAdded animated loading indicators with multiple styles:
Provides consistent loading animations across the application.
2. Added Empty State Component
EmptyStateImplemented a configurable empty state component for:
Features:
Also fixed Hugeicons import issues related to empty state icons.
3. Added
useLoadingStateHookCreated a custom hook for handling loading behavior efficiently.
Features:
4. Integrated Components into Pages
Updated the following pages:
Each page now:
Benefits
Testing
Verified Functionality
Testing Steps
Files Changed
frontend/src/components/LoadingSkeleton.tsxfrontend/src/components/EmptyState.tsxfrontend/src/components/LoadingIndicator.tsxfrontend/src/hooks/useLoadingState.tsfrontend/src/pages/Dashboard.tsxfrontend/src/pages/Scans.tsxfrontend/src/pages/Reports.tsxType of Change
closes #53