feat(tasks): optimize task retrieval and performance metrics logging
- Updated `getList` and `getTasksOnly` methods to skip expensive progress calculations by default, enhancing performance. - Introduced logging for performance metrics, including method execution times and warnings for deprecated methods. - Added new `getTaskProgressStatus` endpoint to provide basic progress stats without heavy calculations. - Implemented performance optimizations in the frontend, including lazy loading and improved rendering for task rows. - Enhanced task management slice with reset actions for better state management. - Added localization support for task management messages in multiple languages.
This commit is contained in:
@@ -26,6 +26,10 @@ import ProjectViewHeader from './project-view-header';
|
||||
import './project-view.css';
|
||||
import { resetTaskListData } from '@/features/tasks/tasks.slice';
|
||||
import { resetBoardData } from '@/features/board/board-slice';
|
||||
import { resetTaskManagement } from '@/features/task-management/task-management.slice';
|
||||
import { resetGrouping } from '@/features/task-management/grouping.slice';
|
||||
import { resetSelection } from '@/features/task-management/selection.slice';
|
||||
import { resetFields } from '@/features/task-management/taskListFields.slice';
|
||||
import { fetchLabels } from '@/features/taskAttributes/taskLabelSlice';
|
||||
import { deselectAll } from '@/features/projects/bulkActions/bulkActionSlice';
|
||||
import { tabItems } from '@/lib/project/project-view-constants';
|
||||
@@ -60,6 +64,10 @@ const ProjectView = () => {
|
||||
dispatch(deselectAll());
|
||||
dispatch(resetTaskListData());
|
||||
dispatch(resetBoardData());
|
||||
dispatch(resetTaskManagement());
|
||||
dispatch(resetGrouping());
|
||||
dispatch(resetSelection());
|
||||
dispatch(resetFields());
|
||||
}, [dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user