Update event types in EventManagement and EventsPageSection components: Replace existing event types with new categories (ATELIER, KATA, PRESENTATION, LEARNING_HOUR) to better reflect current offerings. Adjust related functions and seed data to ensure consistency across the application.

This commit is contained in:
Julien Froidefond
2025-12-10 05:48:23 +01:00
parent a69613a232
commit a6c329ff15
8 changed files with 56 additions and 55 deletions

View File

@@ -10,7 +10,7 @@ interface Event {
date: string | Date;
name: string;
description: string;
type: "SUMMIT" | "LAUNCH" | "FESTIVAL" | "COMPETITION" | "CODE_KATA";
type: "ATELIER" | "KATA" | "PRESENTATION" | "LEARNING_HOUR";
room?: string | null;
time?: string | null;
maxPlaces?: number | null;
@@ -24,15 +24,13 @@ interface EventsPageSectionProps {
const getEventTypeColor = (type: Event["type"]) => {
switch (type) {
case "SUMMIT":
case "ATELIER":
return "from-blue-600 to-cyan-500";
case "LAUNCH":
case "KATA":
return "from-yellow-600 to-amber-500";
case "PRESENTATION":
return "from-purple-600 to-pink-500";
case "FESTIVAL":
return "from-pixel-gold to-orange-500";
case "COMPETITION":
return "from-red-600 to-orange-500";
case "CODE_KATA":
case "LEARNING_HOUR":
return "from-green-600 to-emerald-500";
default:
return "from-gray-600 to-gray-500";
@@ -41,16 +39,14 @@ const getEventTypeColor = (type: Event["type"]) => {
const getEventTypeLabel = (type: Event["type"]) => {
switch (type) {
case "SUMMIT":
return "Sommet";
case "LAUNCH":
return "Lancement";
case "FESTIVAL":
return "Festival";
case "COMPETITION":
return "Compétition";
case "CODE_KATA":
return "Code Kata";
case "ATELIER":
return "Atelier";
case "KATA":
return "Kata";
case "PRESENTATION":
return "Présentation";
case "LEARNING_HOUR":
return "Learning Hour";
default:
return type;
}