Closed EehMauro closed 1 year ago
You have exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 7 minutes and 11 seconds before requesting another review.
To re-trigger a review, convert this PR to a draft and then mark it as ready for review again. Alternatively, you can push a new commit to this PR.
This update introduces a loading state to the application, enhancing user experience by providing visual feedback during data fetching. The changes span across the Table
component and pages that utilize it, ensuring consistent behavior throughout the application.
File | Summary |
---|---|
src/components/Table/Table.tsx |
Introduced a loading prop to conditionally render a loading spinner. Updated table's initial state and pagination based on showAllRows . Added handling for empty data. |
src/pages/.../index.tsx |
Added a loading state variable to track data fetching status. This state is passed to the Table component. |
src/pages/certification/.../fullReportTable.helper.tsx |
Removed CSS classes defining background and border colors from FailedTaskDetails component. |
🐇💻
In the land of code, where the brackets lie, A spinner spins, while the data we pry. No more blank stares, at an empty screen, For now we signal, when the data's unseen! 🔄🎉
Added two fixes -
Summary by CodeRabbit
New Feature:
Table
component. This provides visual feedback to users when data is being fetched, improving user experience by clearly indicating that the process is ongoing.Refactor:
Table
component to conditionally render all rows based on theshowAllRows
prop. This enhances table flexibility and usability.FailedTaskDetails
component infullReportTable.helper.tsx
. The impact of this change will depend on the overall styling context.Chore:
loading
intestingHistory/index.tsx
to manage the loading status of the data. This improves code readability and maintainability.