Closed Innocent-Akim closed 2 weeks ago
The pull request introduces several modifications across multiple files related to the timesheet feature. Key changes include the refinement of the ITimesheetFilter
interface to specify the initDate
property, the transition from useDailyPlan
to useTimesheet
for data management in the page.tsx
file, and the enhancement of the useTimesheet
hook to include a new groupByDate
function. Additionally, the DataTableTimeSheet
component is updated to improve rendering and interactivity, incorporating new components and modifying existing functionalities.
File | Change Summary |
---|---|
apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetFilter.tsx |
Updated ITimesheetFilter interface; changed initDate from optional TimesheetFilterDateProps to a Pick type with specific properties. |
apps/web/app/[locale]/timesheet/[memberId]/page.tsx |
Removed useDailyPlan import; added useTimesheet import; changed TimesheetView data prop from sortedPlans to timesheet ; initialized dateRange state with current date. |
apps/web/app/hooks/features/useTimesheet.ts |
Added groupByDate function to group timesheet items by date; modified return type of timesheet to be processed through groupByDate . |
apps/web/lib/features/integrations/calendar/table-time-sheet.tsx |
Updated DataTableTimeSheet component to enhance rendering; modified column definitions; added TaskActionMenu , TaskDetails , and StatusTask components; improved modal handling logic. |
TimesheetCard
component is related as it is part of the timesheet feature, which may interact with the TimesheetFilter
component.TimesheetFilter
interface and its functionality.TimesheetFilterDate
component enhances the filtering capabilities, which is directly relevant to the changes in the TimesheetFilter
.TimesheetFilter
to include an initDate
property, which is directly related to the main PR's changes to the ITimesheetFilter
interface.TimesheetFilter
for querying logs based on date ranges.feature
, WEB
, Ever Teams
🐰 In the meadow, where timesheets play,
A filter was crafted in a new way.
With dates now picked, and tasks aligned,
The rabbits rejoice, their work well-defined.
Hopping through code, with joy we embrace,
A cleaner flow in our happy workspace! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Please include a summary of the changes and the related issue.
Type of Change
Checklist
Previous screenshots
Please add here videos or images of previous status
Current screenshots
Please add here videos or images of previous status
Summary by CodeRabbit
Release Notes
New Features
TaskActionMenu
,TaskDetails
, andStatusTask
.Bug Fixes
Documentation