From eec36d8523d924eceb532d44fa03bdd0e3b53147 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 5 Nov 2025 15:59:07 +0000 Subject: [PATCH 1/3] Transitioned from Plan to Build mode Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 11347396-5194-4273-8085-18c90f19ace5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/ofL5rPP From 42d9e863daa8dd45fffd6a157dbc03aad8e7725f Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 5 Nov 2025 16:08:58 +0000 Subject: [PATCH 2/3] Add a separator to distinguish past and future scheduled posts Introduces a visual separator in the calendar list view to differentiate between past and future scheduled posts, enhancing chronological organization. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: 31687f99-9e96-4b22-9fd0-04c5a51141bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/YZ4cngz --- client/src/components/calendar-list-view.tsx | 32 ++++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/client/src/components/calendar-list-view.tsx b/client/src/components/calendar-list-view.tsx index b8e8577..9cb2fad 100644 --- a/client/src/components/calendar-list-view.tsx +++ b/client/src/components/calendar-list-view.tsx @@ -88,18 +88,37 @@ export default function CalendarListView({ scheduledPosts, onEditPost, onDeleteP Aucune publication programmée ) : ( - sortedDates.map((dateStr) => { + sortedDates.map((dateStr, index) => { const posts = groupedPosts[dateStr]; const isExpanded = expandedDates.has(dateStr); const dateObj = parseISO(dateStr); const isDateToday = isToday(dateStr); + + // Check if we need to show the separator (first past date) + const isPastDate = dateStr < today; + const prevDate = index > 0 ? sortedDates[index - 1] : null; + const prevWasFutureOrToday = prevDate ? (prevDate >= today) : false; + const showSeparator = isPastDate && prevWasFutureOrToday; return ( -
+
+ {showSeparator && ( +
+
+ + Publications passées + +
+
+ )} +
)}
+
); }) )} From 2715fafd260d63d438c972993b0529197b4f466e Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 5 Nov 2025 16:11:25 +0000 Subject: [PATCH 3/3] Add visual separator for past posts in mobile calendar list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a visual separator in the mobile calendar list view to distinguish between future and past posts. This improves clarity by adding a centered text "PUBLICATIONS PASSÉES" with horizontal lines when transitioning from future to past dates. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 62fdad9a-3a42-490a-b7c9-f7074578df71 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/YZ4cngz --- replit.md | 1 + 1 file changed, 1 insertion(+) diff --git a/replit.md b/replit.md index 90b27d1..8e67deb 100644 --- a/replit.md +++ b/replit.md @@ -11,6 +11,7 @@ Preferred communication style: Simple, everyday language. ## Recent Changes ### November 5, 2025 +- **Mobile Calendar Visual Separator**: Added visual separator between future and past dates in mobile calendar list view. A horizontal divider with centered text "PUBLICATIONS PASSÉES" now appears before the first past date when both future/today and past dates exist. The separator uses gray horizontal lines on both sides of uppercase text, providing clear visual distinction between upcoming posts and past posts. The separator only appears when transitioning from future to past dates - it does not show when only past or only future dates exist. - **Mobile Calendar List Sorting Fix**: Fixed illogical date ordering in mobile calendar list view. Problem: After displaying today's date first, remaining dates were sorted using simple localeCompare, mixing past and future dates together. Solution: Implemented intelligent chronological sorting in `calendar-list-view.tsx` with three-tier logic: (1) Today's date always appears first, (2) Future dates display in ascending chronological order (soonest first), (3) Past dates appear last in descending order (most recent first). The sorting uses ISO date string comparison (yyyy-MM-dd) which preserves chronological order. This provides intuitive navigation where users see today, then upcoming posts in order, then recent past posts. ### October 31, 2025