From 1a7f284cc6dd2dae3edc75d473008fdbd3f06353 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 21 Aug 2025 11:37:01 +0000 Subject: [PATCH] Extend year selection to include a decade of future options Update `Publicities.tsx` to generate year options from 2025 to 2035, modifying the `yearOptions` array generation logic. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen --- client/src/pages/Publicities.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Publicities.tsx b/client/src/pages/Publicities.tsx index 07e3ec9..42e1fb0 100644 --- a/client/src/pages/Publicities.tsx +++ b/client/src/pages/Publicities.tsx @@ -34,9 +34,9 @@ export default function Publicities() { // Seuls les admins peuvent modifier/supprimer const canModify = user?.role === 'admin'; - // Generate year options (current year + 5 years ahead) + // Generate year options (2025 to 2035) const currentYear = new Date().getFullYear(); - const yearOptions = Array.from({ length: 6 }, (_, i) => currentYear + i); + const yearOptions = Array.from({ length: 11 }, (_, i) => currentYear + i); const { data: publicities = [], isLoading } = useQuery({ queryKey: ['/api/publicities', selectedYear, selectedStoreId],