Merge pull request #221 from shancds/fix/project-drawer-issues

fix(enhanced-kanban): update subtask placeholder text for clarity
This commit is contained in:
Chamika J
2025-07-02 12:23:30 +05:30
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ const EnhancedKanbanCreateSubtaskCard = ({
onKeyUp={e => e.stopPropagation()}
onKeyPress={e => e.stopPropagation()}
onBlur={handleInputBlur}
placeholder={t('kanbanBoard.addSubTaskPlaceholder')}
placeholder={t('newSubtaskNamePlaceholder')}
className={`enhanced-kanban-create-subtask-input ${themeMode === 'dark' ? 'dark' : ''}`}
disabled={creatingTask}
autoFocus

View File

@@ -89,7 +89,7 @@ const EnhancedKanbanCreateTaskCard: React.FC<EnhancedKanbanCreateTaskCardProps>
// Real-time socket event handler
const eventHandler = (task: IProjectTask) => {
dispatch(addTaskToGroup({ sectionId, task: { ...task, id: task.id || nanoid(), name: task.name || newTaskName.trim() } }));
// Only reset the form - the global handler will add the task to Redux
socket?.off(SocketEvents.QUICK_TASK.toString(), eventHandler);
resetForNextTask();
};

View File

@@ -194,10 +194,11 @@ const EnhancedKanbanGroup: React.FC<EnhancedKanbanGroupProps> = React.memo(({
};
const handleBlur = async () => {
setIsEditable(false);
if (name === editName) return;
if (name === 'Untitled section') {
dispatch(fetchEnhancedKanbanGroups(projectId ?? ''));
}
setIsEditable(false);
if (!projectId || !group.id) return;