From ef597816333bbbc6f74d7deca69fd678c5cc775b Mon Sep 17 00:00:00 2001 From: poignatov Date: Fri, 9 Jan 2026 14:17:17 +0300 Subject: [PATCH] =?UTF-8?q?v3.5.4:=20=D0=A1=D0=BA=D1=80=D1=8B=D1=82=D1=8C?= =?UTF-8?q?=20=D0=B4=D0=B0=D1=82=D1=83=20=D0=BF=D0=BE=D0=B4=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BA=D0=BE=D0=BC=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=20=D0=B2=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BC=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/TaskList.jsx | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 444877d..65afb3b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.5.3 +3.5.4 diff --git a/play-life-web/package.json b/play-life-web/package.json index a4f00e9..a22da68 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "3.5.3", + "version": "3.5.4", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/TaskList.jsx b/play-life-web/src/components/TaskList.jsx index 9f462e2..7b5f4ef 100644 --- a/play-life-web/src/components/TaskList.jsx +++ b/play-life-web/src/components/TaskList.jsx @@ -423,7 +423,7 @@ function TaskList({ onNavigate, data, loading, backgroundLoading, onRefresh }) { return groups }, [tasks]) - const renderTaskItem = (task) => { + const renderTaskItem = (task, isCompleted = false) => { const hasProgression = task.has_progression || task.progression_base != null const hasSubtasks = task.subtasks_count > 0 const showDetailOnCheckmark = hasProgression || hasSubtasks @@ -510,7 +510,8 @@ function TaskList({ onNavigate, data, loading, backgroundLoading, onRefresh }) { )} - {task.next_show_at && (() => { + {/* Показываем дату только для выполненных задач */} + {isCompleted && task.next_show_at && (() => { const showDate = new Date(task.next_show_at) // Нормализуем дату: устанавливаем время в 00:00:00 в локальном времени const showDateNormalized = new Date(showDate.getFullYear(), showDate.getMonth(), showDate.getDate()) @@ -612,7 +613,7 @@ function TaskList({ onNavigate, data, loading, backgroundLoading, onRefresh }) { {/* Обычные задачи (включая бесконечные) */} {group.notCompleted.length > 0 && (
- {group.notCompleted.map(renderTaskItem)} + {group.notCompleted.map(task => renderTaskItem(task, false))}
)} @@ -630,7 +631,7 @@ function TaskList({ onNavigate, data, loading, backgroundLoading, onRefresh }) { {isCompletedExpanded && (
- {group.completed.map(renderTaskItem)} + {group.completed.map(task => renderTaskItem(task, true))}
)}