feat(task-management): implement context menu for task actions

- Added a context menu to the TaskRow component, allowing users to perform actions such as assigning tasks, archiving, deleting, and moving tasks between statuses, priorities, and phases.
- Introduced TaskContextMenu component to handle context menu logic and interactions.
- Enhanced task row styling for improved hover effects and visibility in both light and dark modes.
- Updated task management slice to include new actions for handling task assignments and conversions.
This commit is contained in:
chamiakJ
2025-07-03 07:42:43 +05:30
parent ecd4d29a38
commit e41cead10b
8 changed files with 552 additions and 10 deletions

View File

@@ -13,6 +13,13 @@ import {
} from '@/api/tasks/tasks.api.service';
import logger from '@/utils/errorLogger';
export enum IGroupBy {
STATUS = 'status',
PRIORITY = 'priority',
PHASE = 'phase',
MEMBERS = 'members',
}
// Entity adapter for normalized state
const tasksAdapter = createEntityAdapter<Task>({
sortComparer: (a, b) => a.order - b.order,
@@ -616,7 +623,7 @@ const taskManagementSlice = createSlice({
},
// Reset action
resetTaskManagement: (state) => {
resetTaskManagement: state => {
return tasksAdapter.getInitialState(initialState);
},
toggleTaskExpansion: (state, action: PayloadAction<string>) => {