refactor(enhanced-kanban): update state management for editable section

- Changed the source of `editableSectionId` from `boardReducer` to `enhancedKanbanReducer` for improved state organization.
- Added `setEditableSection` and `deleteSection` actions to manage the editable section state within the enhanced kanban slice.
This commit is contained in:
shancds
2025-07-02 12:28:34 +05:30
parent d56eaa9f02
commit c9d9134049
2 changed files with 19 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ import { useSelector } from 'react-redux';
import {
deleteSection,
IGroupBy,
} from '@features/board/board-slice';
} from '@features/enhanced-kanban/enhanced-kanban.slice';
import { statusApiService } from '@/api/taskAttributes/status/status.api.service';
import { phasesApiService } from '@/api/taskAttributes/phases/phases.api.service';
import logger from '@/utils/errorLogger';
@@ -31,7 +31,7 @@ const DeleteStatusDrawer: React.FC = () => {
const { projectView } = useTabSearchParam();
const [form] = Form.useForm();
const { t } = useTranslation('task-list-filters');
const { editableSectionId, groupBy } = useAppSelector(state => state.boardReducer);
const { editableSectionId, groupBy } = useAppSelector(state => state.enhancedKanbanReducer);
const isDelteStatusDrawerOpen = useAppSelector(
state => state.deleteStatusReducer.isDeleteStatusDrawerOpen
);