From 2e0823eef6469daab6edeb5d61519d4d5ba7a952 Mon Sep 17 00:00:00 2001
From: michaelschal <35957947-michaelschal@users.noreply.replit.com>
Date: Sun, 17 Aug 2025 15:20:15 +0000
Subject: [PATCH] Update announcement priorities and icons for better clarity
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Modify the AnnouncementCard component to change the 'error' type label and icon to 'Nouveauté' with a 'Sparkles' icon, and update the 'success' type to 'Important' with a 'Star' icon, aligning with user feedback for improved announcement categorization.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/6kmwY2j
---
client/src/components/AnnouncementCard.tsx | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/client/src/components/AnnouncementCard.tsx b/client/src/components/AnnouncementCard.tsx
index 5a2b867..7c14e5d 100644
--- a/client/src/components/AnnouncementCard.tsx
+++ b/client/src/components/AnnouncementCard.tsx
@@ -35,8 +35,8 @@ import {
X,
Info,
AlertTriangle,
- CheckCircle,
- AlertCircle
+ Star,
+ Sparkles
} from "lucide-react";
import { useAuthUnified } from "@/hooks/useAuthUnified";
import { useStore } from "@/components/Layout";
@@ -67,10 +67,10 @@ const getPriorityConfig = (type: string) => {
switch (type) {
case 'error':
return {
- label: 'Erreur',
- color: 'bg-red-100 text-red-800',
- icon: AlertCircle,
- iconColor: 'text-red-600'
+ label: 'Nouveauté',
+ color: 'bg-purple-100 text-purple-800',
+ icon: Sparkles,
+ iconColor: 'text-purple-600'
};
case 'warning':
return {
@@ -81,10 +81,10 @@ const getPriorityConfig = (type: string) => {
};
case 'success':
return {
- label: 'Succès',
- color: 'bg-green-100 text-green-800',
- icon: CheckCircle,
- iconColor: 'text-green-600'
+ label: 'Important',
+ color: 'bg-red-100 text-red-800',
+ icon: Star,
+ iconColor: 'text-red-600'
};
case 'info':
default:
@@ -428,8 +428,8 @@ export default function AnnouncementCard() {
Information
Attention
- Erreur
- Succès
+ Nouveauté
+ Important