From 01864e60819c803d6e01eb6ecbd60628d2a4f6fb Mon Sep 17 00:00:00 2001 From: Yannick Le Duc Date: Tue, 26 Aug 2025 15:13:51 +0200 Subject: [PATCH] =?UTF-8?q?-=20param=C3=A8tre=20"random"=20de=20l'affichag?= =?UTF-8?q?e=20des=20propositions=20=C3=A0=20True=20par=20d=C3=A9faut=20-?= =?UTF-8?q?=20am=C3=A9liorations=20UX/UI=20mineures=20de=20la=20page=20de?= =?UTF-8?q?=20vote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/supabase-schema.sql | 2 +- .../campaigns/[id]/vote/[participantId]/page.tsx | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/database/supabase-schema.sql b/database/supabase-schema.sql index 6952077..4c31384 100644 --- a/database/supabase-schema.sql +++ b/database/supabase-schema.sql @@ -220,7 +220,7 @@ CREATE POLICY "Admins can manage settings" ON settings -- Paramètres par défaut INSERT INTO settings (key, value, category, description) VALUES -('randomize_propositions', 'false', 'display', 'Afficher les propositions dans un ordre aléatoire lors du vote'); +('randomize_propositions', 'true', 'display', 'Afficher les propositions dans un ordre aléatoire lors du vote'); -- ======================================== -- FONCTIONS UTILITAIRES diff --git a/src/app/campaigns/[id]/vote/[participantId]/page.tsx b/src/app/campaigns/[id]/vote/[participantId]/page.tsx index 2133554..00747e7 100644 --- a/src/app/campaigns/[id]/vote/[participantId]/page.tsx +++ b/src/app/campaigns/[id]/vote/[participantId]/page.tsx @@ -286,7 +286,6 @@ export default function PublicVotePage() {
-

Description

{campaign?.description}

{isRandomOrder && (
@@ -312,7 +311,17 @@ export default function PublicVotePage() { ) : (
{propositions.map((proposition) => ( -
+
0 + ? 'border-indigo-400 shadow-lg bg-indigo-100' + : 'bg-white border-gray-200' + }`} + > +
+ Proposition +