From a441a3d1e78af987e5545cb765f528b7a463e4d7 Mon Sep 17 00:00:00 2001 From: poignatov Date: Tue, 10 Mar 2026 15:48:09 +0300 Subject: [PATCH] =?UTF-8?q?6.6.1:=20=D0=A1=D0=BA=D1=80=D1=8B=D1=82=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D1=88=D0=B5=D0=B4=D1=88=D0=B8=D1=85?= =?UTF-8?q?=20=D0=B4=D0=B0=D1=82=20=D0=B2=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/ShoppingList.jsx | 22 ++++++++++++++----- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 826f5ce..09a7391 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.6.0 +6.6.1 diff --git a/play-life-web/package.json b/play-life-web/package.json index cc34ca5..98d30c0 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.6.0", + "version": "6.6.1", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/ShoppingList.jsx b/play-life-web/src/components/ShoppingList.jsx index 5a4a6f5..a96ebb9 100644 --- a/play-life-web/src/components/ShoppingList.jsx +++ b/play-life-web/src/components/ShoppingList.jsx @@ -638,7 +638,19 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia {hasFuture && isFutureExpanded && (
- {group.future.map(item => ( + {group.future.map(item => { + let dateDisplay = null + if (item.next_show_at) { + const itemDate = new Date(item.next_show_at) + const now = new Date() + now.setHours(0, 0, 0, 0) + const target = new Date(itemDate.getFullYear(), itemDate.getMonth(), itemDate.getDate()) + if (target > now) { + dateDisplay = formatDateForDisplay(item.next_show_at) + } + } + + return (
{item.name}
-
- {formatDateForDisplay(item.next_show_at)} -
+ {dateDisplay && ( +
{dateDisplay}
+ )}
@@ -683,7 +695,7 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia
- ))} + )})} )}