feat: WebSocket temps réel + Finance Workflow + corrections

- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics)
  * Backend: KafkaEventProducer, KafkaEventConsumer
  * Mobile: WebSocketService (reconnection, heartbeat, typed events)
  * DashboardBloc: Auto-refresh depuis WebSocket events

- Finance Workflow: approbations + budgets (backend + mobile)
  * Backend: entities, services, resources, migrations Flyway V6
  * Mobile: features finance_workflow complète avec BLoC

- Corrections DI: interfaces IRepository partout
  * IProfileRepository, IOrganizationRepository, IMembreRepository
  * GetIt configuré avec @injectable

- Spec-Kit: constitution + templates mis à jour
  * .specify/memory/constitution.md enrichie
  * Templates agent, plan, spec, tasks, checklist

- Nettoyage: fichiers temporaires supprimés

Signed-off-by: lions dev Team
This commit is contained in:
dahoud
2026-03-15 02:12:17 +00:00
parent bbc409de9d
commit e8ad874015
635 changed files with 58160 additions and 20674 deletions

View File

@@ -0,0 +1,62 @@
#!/bin/bash
# Script pour créer les topics Kafka pour UnionFlow
echo "===================================="
echo "Création des topics Kafka UnionFlow"
echo "===================================="
echo ""
echo "Topic 1/5: unionflow.finance.approvals"
docker exec kafka /opt/kafka/bin/kafka-topics.sh --create \
--topic unionflow.finance.approvals \
--bootstrap-server localhost:9092 \
--partitions 3 \
--replication-factor 1 \
--if-not-exists
echo "Topic 2/5: unionflow.dashboard.stats"
docker exec kafka /opt/kafka/bin/kafka-topics.sh --create \
--topic unionflow.dashboard.stats \
--bootstrap-server localhost:9092 \
--partitions 3 \
--replication-factor 1 \
--if-not-exists
echo "Topic 3/5: unionflow.notifications.user"
docker exec kafka /opt/kafka/bin/kafka-topics.sh --create \
--topic unionflow.notifications.user \
--bootstrap-server localhost:9092 \
--partitions 3 \
--replication-factor 1 \
--if-not-exists
echo "Topic 4/5: unionflow.members.events"
docker exec kafka /opt/kafka/bin/kafka-topics.sh --create \
--topic unionflow.members.events \
--bootstrap-server localhost:9092 \
--partitions 3 \
--replication-factor 1 \
--if-not-exists
echo "Topic 5/5: unionflow.contributions.events"
docker exec kafka /opt/kafka/bin/kafka-topics.sh --create \
--topic unionflow.contributions.events \
--bootstrap-server localhost:9092 \
--partitions 3 \
--replication-factor 1 \
--if-not-exists
echo ""
echo "===================================="
echo "Vérification des topics créés"
echo "===================================="
docker exec kafka /opt/kafka/bin/kafka-topics.sh --list --bootstrap-server localhost:9092
echo ""
echo "===================================="
echo "Détails des topics UnionFlow"
echo "===================================="
docker exec kafka /opt/kafka/bin/kafka-topics.sh --describe --bootstrap-server localhost:9092 | grep unionflow
echo ""
echo "✅ Topics Kafka créés avec succès !"