Conversation
Introduces a new Task model in the Prisma schema and corresponding Zod validation schemas. Implements server actions for creating, updating, and deleting tasks using Prisma. Updates the task mutation drawer to use these actions and provide user feedback with toast notifications.
Adds optional className, thClassName, and tdClassName properties to the ColumnMeta interface in @tanstack/react-table, enabling custom styling for table columns.
Introduces @tanstack/react-query for data fetching and caching. Refactors the tasks table to use server-side pagination, sorting, and filtering via new getTasksFn and seedTasksFn server actions. Adds a unique 'code' field to tasks, updates Prisma schema and Zod schema, and updates UI to display and filter by task code. Wraps the app in QueryClientProvider for react-query support.
Applied authenticatedMiddleware to all task server actions for security. Enhanced task label update and delete flows with optimistic UI updates and toast notifications. Updated UI components to use task code instead of ID in dialogs and ensured query invalidation after mutations for up-to-date task lists.
Added the suppressHydrationWarning prop to elements in NavUser, ProfileDropdown, and the root HTML element to address hydration mismatches between server and client rendering. This helps prevent React hydration warnings for user-specific data rendered on the server.
Implemented server actions and UI logic for bulk updating status/priority and deleting multiple tasks. Updated the data table bulk actions and multi-delete dialog to use react-query mutations and server functions for improved feedback and state management.
Implemented CSV export for selected tasks and CSV import dialog with validation and feedback. Added new server actions for importing and exporting tasks, including schema validation and code generation logic. Updated task schema to support import, and improved code generation for task creation and seeding to ensure unique codes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for betterdash failed.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis pull request introduces a comprehensive task management system powered by React Query. It adds a Prisma Task model, creates nine server actions for CRUD and bulk operations, refactors task components to fetch data from the server instead of props, integrates React Query for state management and cache invalidation, and adds new validation schemas and import capabilities. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~55 minutes Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (18)
Comment |
|
Note Docstrings generation - SUCCESS |
Docstrings generation was requested by @nabeel-workspace. * #3 (comment) The following files were modified: * `src/components/layout/nav-user.tsx` * `src/components/profile-dropdown.tsx` * `src/features/tasks/components/data-table-bulk-actions.tsx` * `src/features/tasks/components/data-table-row-actions.tsx` * `src/features/tasks/components/tasks-dialogs.tsx` * `src/features/tasks/components/tasks-import-dialog.tsx` * `src/features/tasks/components/tasks-multi-delete-dialog.tsx` * `src/features/tasks/components/tasks-mutate-drawer.tsx` * `src/features/tasks/components/tasks-table.tsx` * `src/features/tasks/index.tsx` * `src/routes/__root.tsx`
Summary by CodeRabbit
New Features
UI/UX Improvements
✏️ Tip: You can customize this high-level summary in your review settings.