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.
This pull request introduces a comprehensive set of changes to improve the data table functionalities and user interface in the dashboard. The most important changes include the addition of new data table components, enhancements to existing tables, and the introduction of a back button for better navigation.
Data Table Enhancements:
src/app/dashboard/challenges/[id]/columns.tsx
: Added new column definitions for the challenges table, including selection checkboxes, sortable name column, and action buttons for viewing and removing entries. (src/app/dashboard/challenges/[id]/columns.tsxR1-R87)src/app/dashboard/challenges/[id]/data-table.tsx
: Introduced a new data table component with sorting, filtering, pagination, and row selection capabilities. (src/app/dashboard/challenges/[id]/data-table.tsxR1-R139)src/app/dashboard/challenges/[id]/invite/columns.tsx
: Added column definitions for the invite table, similar to the challenges table, with selection checkboxes, sortable name column, and action buttons. (src/app/dashboard/challenges/[id]/columns.tsxR1-R87)src/app/dashboard/challenges/[id]/invite/data-table.tsx
: Implemented a data table component for the invite page, including sorting, filtering, pagination, and row selection functionalities. (src/app/dashboard/challenges/[id]/invite/data-table.tsxR1-R138)User Interface Improvements:
src/app/dashboard/challenges/[id]/page.tsx
: Enhanced the single challenge page by integrating the data table and adding a card layout for participant management. (src/app/dashboard/challenges/[id]/page.tsxR3-R63, src/app/dashboard/challenges/[id]/page.tsxL41-R97)src/app/dashboard/challenges/[id]/invite/page.tsx
: Created a new invite users page with a data table for managing participants and a back button for navigation. (src/app/dashboard/challenges/[id]/invite/page.tsxR1-R70)Navigation Enhancements:
src/components/ui/back-button.tsx
: Introduced a reusable back button component to improve navigation within the dashboard.