Closed Innocent-Akim closed 2 days ago
The changes introduced in this pull request involve the addition and modification of several components related to timesheet management in a web application. A new AddTaskModal
component is implemented for creating tasks, while existing components such as FilterWithStatus
, TimesheetFilter
, and FrequencySelect
have been updated to enhance their functionality and support new data structures. Additionally, the useTimesheet
hook has been extended to include new grouping features, and various interfaces and types have been introduced or modified to accommodate these changes.
File | Change Summary |
---|---|
apps/web/app/[locale]/timesheet/[memberId]/components/AddTaskModal.tsx |
Introduced AddTaskModal component for task creation with localization and state management for task details. |
apps/web/app/[locale]/timesheet/[memberId]/components/FilterWithStatus.tsx |
Expanded FilterStatus to include 'In review' and 'Draft'; updated logic for dynamic button data construction. |
apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetFilter.tsx |
Replaced AddManualTimeModal with AddTaskModal ; updated to pass new data prop for filtering tasks. |
apps/web/app/[locale]/timesheet/[memberId]/page.tsx |
Updated TimeSheet component to include statusTimesheet and refactored filtering logic for timesheet data. |
apps/web/app/hooks/features/useTimesheet.ts |
Added grouping functionalities with new groupByWeek and groupByMonth functions; included statusTimesheet . |
apps/web/lib/features/integrations/calendar/table-time-sheet.tsx |
Enhanced localization with useTranslations ; updated rendering logic for timesheet dates based on grouping. |
apps/web/app/[locale]/timesheet/[memberId]/components/FrequencySelect.tsx |
Integrated local storage for frequency selection; updated state management for frequency options. |
apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetAction.tsx |
Introduced DailyTable constant for grouping options; no changes to button configurations. |
apps/web/app/hooks/features/useTimelogFilterOptions.ts |
Added state management for timesheetGroupByDays to the hook, enhancing its functionality. |
apps/web/app/interfaces/ITask.ts |
Introduced new type TimesheetFilterByDays for frequency options. |
apps/web/app/stores/time-logs.ts |
Added new atom timesheetGroupByDayState for managing grouping state of timesheet data. |
TimesheetFilter
and FrequencySelect
components relate to UI elements for filtering timesheet data, core to AddTaskModal
functionality.TimesheetFilterDate
component aligns with date management features in AddTaskModal
.TimesheetFilter
to include initDate
enhance filtering capabilities relevant to task creation in AddTaskModal
.TimeSheetFilterPopover
for managing filter states could relate to the modal's task management functionalities.EditTaskModal
to include dataTimesheet
improve task editing UI, directly related to AddTaskModal
.AddTaskModal
.AddTaskModal
.🐰 In the meadow where tasks are made,
A modal blooms, no need to be afraid.
With filters and statuses, all in a row,
Creating and grouping, watch the workflow grow!
So hop along, let’s add with glee,
For every task, there’s a place to be! 🌼
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint (1.23.1)
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.apps/web/app/[locale]/timesheet/[memberId]/components/FilterWithStatus.tsx
Oops! Something went wrong! :( ESLint: 8.46.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/apps/web/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
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. #3043
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
Improvements
Bug Fixes